Spongetron | 27 Nov 2011 01:13
Picon

Unable to compile yaboot-1.3.14

I am trying to build my clfs system following "Cross-Compiled Linux
From Scratch - Version GIT-20111122-PowerPC". I am trying to build it
on my iBook G4 that runs Slackintosh 12.1 as a host system. I am stuck
at chapter "10.66. Yaboot-1.3.14". I am unable to comile yaboot. Here
is the output when trying to build with "make PREFIX=/usr"

root:/sources/yaboot-1.3.14# make PREFIX=/usr
gcc -Os  -nostdinc -Wall -isystem `gcc -print-file-name=include`
-fsigned-char -DVERSION=\"1.3.14\"	 -DTEXTADDR=0x200000 -DDEBUG=0
-DMALLOCADDR=0x300000 -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00C00000 -I
./include -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP
-DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS
-D__ASSEMBLY__  -c -o second/crt0.o second/crt0.S
gcc -Os  -nostdinc -Wall -isystem `gcc -print-file-name=include`
-fsigned-char -DVERSION=\"1.3.14\"	 -DTEXTADDR=0x200000 -DDEBUG=0
-DMALLOCADDR=0x300000 -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00C00000 -I
./include -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP
-DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o
second/yaboot.o second/yaboot.c
second/yaboot.c: In function 'setup_display':
second/yaboot.c:1569:13: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
second/yaboot.c: In function 'yaboot_text_ui':
second/yaboot.c:1368:9: warning: 'ph' may be used uninitialized in
this function [-Wuninitialized]
second/yaboot.c:1234:23: note: 'ph' was declared here
second/yaboot.c:1512:9: warning: 'ph' may be used uninitialized in
this function [-Wuninitialized]
second/yaboot.c:1378:23: note: 'ph' was declared here
gcc -Os  -nostdinc -Wall -isystem `gcc -print-file-name=include`
(Continue reading)

William Harrington | 27 Nov 2011 02:04
Picon

Re: Unable to compile yaboot-1.3.14


On Nov 26, 2011, at 18:13 PM, Spongetron wrote:

> undefined reference to `posix_memalign'

Did you build e2fsprogs without debugging?  You probably need  
debugging in e2fsprogs for yaboot to build.  Also, yaboot-1.3.14 is a  
bit old, may wanna grab 1.3.15 or 1.3.16. I haven't built a ppc  
system in over a year so I'm not sure if that will help.

-William
code monkey | 16 Jan 2012 02:50
Picon

Re: Unable to compile yaboot-1.3.14

I haven't been on here for a while so am just replying now...

I have encountered the same failure.   Updating to yaboot-1.3.17 seems
to fix it.   3.17 builds anyway (although you have to shut off Werror
in the Makefile because of a warning.)

I haven't actually tried running it so can't vouch for the new version
in that respect but it does fix the compile error.

Gmane