Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485592 - =sys-boot/grub-2.00_p5107-r1 : does not respect CC
Summary: =sys-boot/grub-2.00_p5107-r1 : does not respect CC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-09-21 17:17 UTC by Agostino Sarubbo
Modified: 2013-09-21 17:41 UTC (History)
1 user (show)

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


Attachments
build log (grub-2.00_p5107-r1:20130921-151611.log.bz2,46.23 KB, text/bzip2)
2013-09-21 17:20 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
+