Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Building aboot-1.0_pre20040408 failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Namo-san
n00b
n00b


Joined: 22 Sep 2005
Posts: 12

PostPosted: Thu Nov 17, 2005 7:44 pm    Post subject: [SOLVED] Building aboot-1.0_pre20040408 failed Reply with quote

Code:
livecd / # emerge aboot
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-boot/aboot-1.0_pre20040408 to /
>>> md5 files   ;-) aboot-0.9-r1.ebuild
>>> md5 files   ;-) aboot-1.0_pre20040408.ebuild
>>> md5 files   ;-) files/aboot.conf
>>> md5 files   ;-) files/digest-aboot-0.9-r1
>>> md5 files   ;-) files/digest-aboot-1.0_pre20040408
>>> md5 src_uri ;-) aboot-1.0_pre20040408.tar.bz2
>>> Unpacking source...
>>> Unpacking aboot-1.0_pre20040408.tar.bz2 to /var/tmp/portage/aboot-1.0_pre20040408/work
>>> Source unpacked.
gcc  -I/var/tmp/portage/aboot-1.0_pre20040408/work/aboot-1.0_pre20040408/include -D__ASSEMBLY__ -traditional -c -o head.o head.S
head.S:173: warning: no newline at end of file
gcc  -I/var/tmp/portage/aboot-1.0_pre20040408/work/aboot-1.0_pre20040408/include -D__KERNEL__ -Os -Wall -fno-builtin -mno-fp-regs -ffixed-8 -c -o aboot.o aboot.c
gcc  -I/var/tmp/portage/aboot-1.0_pre20040408/work/aboot-1.0_pre20040408/include -D__KERNEL__ -Os -Wall -fno-builtin -mno-fp-regs -ffixed-8 -c -o cons.o cons.c
cons.c:23: error: conflicting types for 'dispatch'
cons.c:23: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/var/tmp/portage/aboot-1.0_pre20040408/work/aboot-1.0_pre20040408/include/cons.h:6: error: previous declaration of 'dispatch' was here
cons.c:23: error: conflicting types for 'dispatch'
cons.c:23: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/var/tmp/portage/aboot-1.0_pre20040408/work/aboot-1.0_pre20040408/include/cons.h:6: error: previous declaration of 'dispatch' was here
make: *** [cons.o] Error 1

!!! ERROR: sys-boot/aboot-1.0_pre20040408 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

livecd / #

What can be wrong?


Last edited by Namo-san on Wed Dec 07, 2005 6:48 pm; edited 2 times in total
Back to top
View user's profile Send private message
frozen_dude
n00b
n00b


Joined: 16 Oct 2005
Posts: 1
Location: Sweden

PostPosted: Fri Nov 18, 2005 2:16 am    Post subject: Reply with quote

Apparently the dispatch function is defined/prototyped both in cons.c and include/cons.h, but defined somewhat differently (enough to make the compiler fail). All you have to do is to remove one of the prototypes for this function.

Also, later on you'll notice it failing to define memset() in include/string.h, which was previously defined in another header.
This is bacause the linux/ext2_fs.h has a dependency on string.h, and below here you'll se the croped output of gcc $CFLAGS -H fs/ext2.c.
Code:

. /usr/include/linux/ext2_fs.h
.. /usr/include/linux/ext2_fs_sb.h
... /usr/include/linux/percpu_counter.h
.... /usr/include/linux/percpu.h
..... /usr/include/linux/string.h

I have not had the "upp-and-go" to do a proper fix for this, but since the two prototypes of memset are almost identical, you should *maybe* get the same result by omiting memset in the local include/string.h, after which it does seem to compile with only a few warnings (perhaps you need to add string.h to some other files?!?).

I've made a quick 'n dirty patch and ebuild to fix this: http://web.telia.com/~u66012098/dev/aboot-1.0_pre20040408-fix.diff and http://web.telia.com/~u66012098/dev/aboot-1.0_pre20040408-r1.ebuild
Simply put the ebuild in the sys-boot/aboot/ folder in the portage overlay (rtfm) and the patch in sys-boot/aboot/files/.
And build a digest with ebuild <path-to-portage-overlay>/sys-boot/aboot/aboot-1.0_pre20040408-r1.ebuild digest, and that should be it.
Back to top
View user's profile Send private message
Namo-san
n00b
n00b


Joined: 22 Sep 2005
Posts: 12

PostPosted: Fri Nov 18, 2005 1:20 pm    Post subject: Reply with quote

Thanks, your patch worked just nice!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum