yaboot doesn't compile on FC16 (ppc64)

Nishanth Aravamudan nacc at linux.vnet.ibm.com
Fri Apr 6 05:48:15 EST 2012


On 05.04.2012 [10:48:45 -0700], Nishanth Aravamudan wrote:
> So I'm going to update the yaboot binary that ships with cobbler, as
> it's rather out of date (yaboot-1.3.14), but was hoping to build from
> source.
> 
> I get the following initially:
> 
> second/yaboot.c: In function 'setup_display':
> second/yaboot.c:1510:13: error: variable 'result' set but not used [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
> 
> If I fix this, I get more errors, etc. etc.
> 
> If I revert b1bdfaf8b8da39e0aa888643b1998a948f83e7dd ('make: Update
> CFLAGS to for -Werror.'), I get the following:
> 
> ld -Ttext 0x100000 -Bstatic -melf32ppclinux second/crt0.o second/yaboot.o second/cache.o second/prom.o second/file.o second/partition.o second/fs.o second/cfg.o second/setjmp.o second/cmdline.o second/fs_of.o second/fs_ext2.o second/fs_iso.o second/fs_swap.o second/iso_util.o lib/nonstd.o lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o second/md5.o second/fs_xfs.o second/fs_reiserfs.o -lext2fs `gcc -m32 -print-libgcc-file-name` -o second/yaboot
> ld: skipping incompatible /usr/lib64/libext2fs.a when searching for -lext2fs
> ld: cannot find -lext2fs
> 
> This is because, I think, there is no e2fsprogs-static.ppc in the FC16
> repositories. Should there be?

FWIW, it does build if I build on RHEL6.2 (after reverting the same
commit, that is).

Thanks,
Nish

-- 
Nishanth Aravamudan <nacc at us.ibm.com>
IBM Linux Technology Center



More information about the Yaboot-devel mailing list