Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18243 - yaboot ebuild ignores $CC
Summary: yaboot ebuild ignores $CC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Zach Welch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-26 14:09 UTC by Tom Ward
Modified: 2003-03-26 19:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Ward 2003-03-26 14:09:58 UTC
I'm using distcc with cross compilers, so I need to specify CC=$CHOST-gcc. The ebuild 
ignores this and uses straight gcc, causing failure. 

Reproducible: Always
Steps to Reproduce:
1. CC=powerpc-unknown-linux-gnu-gcc CXX=powerpc-unknown-linux-gnu-g++ emerge 
-u --nodeps yaboot 
 
Actual Results:  
Calculating dependencies ...done! 
>>> emerge (1 of 9) sys-apps/yaboot-1.3.10-r1 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-r1/work 
>>> Source unpacked. 
 * Applying yabootconfig-1.3.10.patch...                                                                                      
[ ok ] 
gcc -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 
gcc -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 
distcc[11606] (dcc_recursion_safeguard) CRITICAL! distcc seems to have invoked itself 
recursively! 
make: *** [second/yaboot.o] Error 111 
 
!!! ERROR: sys-apps/yaboot-1.3.10-r1 failed. 
!!! Function src_compile, Line 29, Exitcode 2 
!!! (no error message) 
 
 

Expected Results:  
Calculating dependencies ...done! 
>>> emerge (1 of 9) sys-apps/yaboot-1.3.10-r1 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-r1/work 
>>> Source unpacked. 
 * Applying yabootconfig-1.3.10.patch...                                                                                      
[ ok ] 
powerpc-unknown-linux-gnu-gcc -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 
powerpc-unknown-linux-gnu-gcc -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 
..... 

Fix: 
 
/usr/portage/sys-apps/yaboot/yaboot-1.3.10-r1.ebuild 
29/29 
-        emake ${MAKEOPTS}|| die 
---------------------------------------- 
+        emake ${MAKEOPTS} CC=${CC}|| die
Comment 1 Zach Welch (RETIRED) gentoo-dev 2003-03-26 19:50:35 UTC
This has been fixed and committed to portage.