when attempting to update yaboot to version 1.3.10-r2, the compile fails with the following errors: Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/yaboot-1.3.10-r2 to / >>> md5 ;-) yaboot-1.3.10.tar.gz >>> Unpacking source... >>> Unpacking yaboot-1.3.10.tar.gz to /var/tmp/portage/yaboot-1.3.10-r2/work >>> Source unpacked. * Applying yabootconfig-1.3.10.patch... [ ok ] Os -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char - DVERSION=\"1.3.10\" -DTEXTADDR=0x200000 -DDEBUG=0 -DMALLOCADDR=0x300000 - DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -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 /bin/sh: line 1: Os: command not found make: [second/crt0.o] Error 127 (ignored) Os -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char - DVERSION=\"1.3.10\" -DTEXTADDR=0x200000 -DDEBUG=0 -DMALLOCADDR=0x300000 - DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -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 /bin/sh: line 1: Os: command not found make: [second/yaboot.o] Error 127 (ignored) Os -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char - DVERSION=\"1.3.10\" -DTEXTADDR=0x200000 -DDEBUG=0 -DMALLOCADDR=0x300000 - DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -I ./include -DCONFIG_COLOR_TEXT - DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS - D__ASSEMBLY__ -c -o second/cache.o second/cache.S /bin/sh: line 1: Os: command not found make: [second/cache.o] Error 127 (ignored) and many more like it until make bails out. I would guess that there is a missing compiler variable in the ebuild. cd'ing to /var/tmp/portage/yaboot-1.3.10-r2/work/yaboot-1.3.10 and simply "make"ing from there works fine. Reproducible: Always Steps to Reproduce: 1. emerge yaboot 2. 3. Actual Results: s -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char - DVERSION=\"1.3.10\" -DTEXTADDR=0x200000 -DDEBUG=0 -DMALLOCADDR=0x300000 - DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -I ./include -DCONFIG_COLOR_TEXT - DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS - c -o second/fs_reiserfs.o second/fs_reiserfs.c /bin/sh: line 1: Os: command not found make: [second/fs_reiserfs.o] Error 127 (ignored) ld -Ttext 0x200000 -Bstatic 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/iso_util.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 lib/libext2fs.a ` -print-libgcc-file- name` -o second/yaboot /bin/sh: line 1: -print-libgcc-file-name: command not found ld: cannot open second/crt0.o: No such file or directory make: *** [yaboot] Error 1 !!! ERROR: sys-apps/yaboot-1.3.10-r2 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) Expected Results: installation of yaboot. Portage 2.0.47-r10 (default-ppc-1.0, gcc-2.95.3, glibc-2.2.5-r8) ================================================================= System uname: 2.4.19-r6 ppc GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="oss dvd xv gpm libwww jpeg nls mitshm esd gif imlib sdl oggvorbis gnome gtk X qt kde motif opengl mozilla png truetype ppc gdbm berkdb slang readline tcpd pam ssl perl python" COMPILER="" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" ACCEPT_KEYWORDS="ppc" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache"
I have looked at the ebuild for yaboot a bit more, and I think I found the problem. In the ebuild for yaboot-1.3.10-r2, when compared to yaboot-1.3.10-r1, there was one option changed: the line of "emake ${MAKEOPTS} || die" in 1.3.10-r1 was changed to " emake ${MAKEOPTS} CC="${CC}" || die" in 1.3.10-r2. I changed it back (removing the CC="${CC}" part), and yaboot emerged fine. So, unless you really meant to have the CC="${CC}" bit in there, I would propose the following patch to yaboot-1.3.10-r2.ebuild: 29c29 < emake ${MAKEOPTS} || die --- > emake ${MAKEOPTS} CC="${CC}" || die
there is something else wrong, it is working fine here. do you use any particulare gcc front-end? like distcc or gcc-color?
No, I've not changed anything about the compile environment at all. In fact, that may be the problem, as $CC isn't defined on my system (which seems to be the core of the problem here). Though, since I haven't changed anything about the environment regarding compiling, I'm not clear where I should have. thanks.
please try adding before the epatch line [-n ${CC}]||CC="gcc"
The make complained with: /usr/sbin/ebuild.sh: line 27: [-n: command not found but then went on to compile and install as expected.
sorry [ -n "${CC}" ] || CC="gcc"
that worked. yaboot made and installed without errors. Thanks.
ok, closing it then. Thanks for you help