<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>18765</bug_id>
          
          <creation_ts>2003-04-04 16:16 0000</creation_ts>
          <short_desc>yaboot not making (missing compile variable?)</short_desc>
          <delta_ts>2006-02-04 06:03:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>PPC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>spamblock@g-clef.net</reporter>
          <assigned_to>ppc@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>spamblock@g-clef.net</who>
            <bug_when>2003-04-04 16:16:07 0000</bug_when>
            <thetext>when attempting to update yaboot to version 1.3.10-r2, the compile fails with 
the following errors:

Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) sys-apps/yaboot-1.3.10-r2 to /
&gt;&gt;&gt; md5 ;-) yaboot-1.3.10.tar.gz
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking yaboot-1.3.10.tar.gz to /var/tmp/portage/yaboot-1.3.10-r2/work
&gt;&gt;&gt; Source unpacked.
 * Applying yabootconfig-1.3.10.patch...                                  [ ok ]
Os  -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char -
DVERSION=\&quot;1.3.10\&quot;   -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=\&quot;1.3.10\&quot;   -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=\&quot;1.3.10\&quot;   -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&apos;ing 
to /var/tmp/portage/yaboot-1.3.10-r2/work/yaboot-1.3.10 and simply &quot;make&quot;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=\&quot;1.3.10\&quot;   -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=&quot;http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;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&quot;
COMPILER=&quot;&quot;
CHOST=&quot;powerpc-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -pipe&quot;
CXXFLAGS=&quot;-O2 -pipe&quot;
ACCEPT_KEYWORDS=&quot;ppc&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;ccache&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spamblock@g-clef.net</who>
            <bug_when>2003-04-11 16:01:44 0000</bug_when>
            <thetext>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 &quot;emake ${MAKEOPTS} || die&quot; in 1.3.10-r1 was changed to &quot; emake ${MAKEOPTS} CC=&quot;${CC}&quot; || die&quot; in 1.3.10-r2.  I changed it back (removing the CC=&quot;${CC}&quot; part), and yaboot emerged fine.  So, unless you really meant to have the CC=&quot;${CC}&quot; bit in there, I would propose the following patch to yaboot-1.3.10-r2.ebuild:

29c29
&lt;       emake ${MAKEOPTS} || die
---
&gt;       emake ${MAKEOPTS} CC=&quot;${CC}&quot; || die
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lu_zero@gentoo.org</who>
            <bug_when>2003-04-11 19:44:03 0000</bug_when>
            <thetext>there is something else wrong, it is working fine here.

do you use any particulare gcc front-end?
like distcc or gcc-color?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spamblock@g-clef.net</who>
            <bug_when>2003-04-11 20:52:06 0000</bug_when>
            <thetext>No, I&apos;ve not changed anything about the compile environment at all.  In fact, that may be the problem, as $CC isn&apos;t defined on my system (which seems to be the core of the problem here).  Though, since I haven&apos;t changed anything about the environment regarding compiling, I&apos;m not clear where I should have.

thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lu_zero@gentoo.org</who>
            <bug_when>2003-04-11 21:44:24 0000</bug_when>
            <thetext>please try adding before the epatch line

[-n ${CC}]||CC=&quot;gcc&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spamblock@g-clef.net</who>
            <bug_when>2003-04-12 09:34:31 0000</bug_when>
            <thetext>The make complained with:
/usr/sbin/ebuild.sh: line 27: [-n: command not found

but then went on to compile and install as expected.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lu_zero@gentoo.org</who>
            <bug_when>2003-04-12 22:28:25 0000</bug_when>
            <thetext>sorry 

[ -n &quot;${CC}&quot; ] || CC=&quot;gcc&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spamblock@g-clef.net</who>
            <bug_when>2003-04-13 08:04:38 0000</bug_when>
            <thetext>that worked.  yaboot made and installed without errors.  Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lu_zero@gentoo.org</who>
            <bug_when>2003-04-13 11:19:05 0000</bug_when>
            <thetext>ok, closing it then.

Thanks for you help</thetext>
          </long_desc>
      
    </bug>

</bugzilla>