Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 485592

Summary: =sys-boot/grub-2.00_p5107-r1 : does not respect CC
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: QA CC: base-system
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build log

Description Agostino Sarubbo gentoo-dev 2013-09-21 17:17:21 UTC
You receive this bug because this package does not respect my system's CC (x86_64-pc-linux-gnu-gcc) and calls directly /usr/bin/gcc(or similar)
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export CC
3)inherit toolchain-funcs and use emake CC="$(tc-getCC)"


From the build log:

checking for gcc... gcc

gcc -o build-grub-mkfont -I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/include  -DLOCALEDIR=\"/usr/share/locale\" -DGRUB_FILE=\"util/grub-mkfont.c\" -I. 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00 -I. -I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/include -I./include 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/lib/libgcrypt-grub/include 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/lib/libgcrypt-grub/src/ 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/gnulib -DGRUB_MKFONT=1 -DGRUB_UTIL=1 
/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/util/grub-mkfont.c /var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/unidata.c 
/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/kern/emu/argp_common.c 
/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/kern/emu/misc.c /var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/util/misc.c 
/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/gnulib/progname.c -I/usr/include/freetype2 -lfreetype -lz -lbz2 


gcc -o gentrigtables -I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/include  -DLOCALEDIR=\"/usr/share/locale\" -DGRUB_FILE=\"gentrigtables.c\" -I. 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core -I.. -I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/include -I../include 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/lib/libgcrypt-grub/include 
-I/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/lib/libgcrypt-grub/src/ 
/var/tmp/portage/sys-boot/grub-2.00_p5107-r1/work/grub-2.00/grub-core/gentrigtables.c -lm
Comment 1 Agostino Sarubbo gentoo-dev 2013-09-21 17:20:32 UTC
Created attachment 359188 [details]
build log
Comment 2 Mike Gilbert gentoo-dev 2013-09-21 17:41:44 UTC
+  21 Sep 2013; Mike Gilbert <floppym@gentoo.org> grub-2.00_p5107-r1.ebuild,
+  grub-9999.ebuild:
+  Export BUILD_CC before calling configure, bug 486592 by ago.
+