Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298583 - sys-apps/pciutils doesnt respect $CC
Summary: sys-apps/pciutils doesnt respect $CC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-27 23:08 UTC by ferret
Modified: 2009-12-29 06:08 UTC (History)
0 users

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 ferret 2009-12-27 23:08:26 UTC
make -j2 HOST=i686-pc-linux-gnu CROSS_COMPILE=i686-pc-linux-gnu- DNS=yes IDSDIR=/usr/share/misc MANDIR=/usr/share/man PREFIX=/usr SHARED=yes STRIP= ZLIB=yes 'OPT=-march=athlon64 -O2 -pipe -fomit-frame-pointer -m32' all 
cd lib && ./configure
Configuring libpci for your system... i686--linux  i686 linux
Looking for access methods... sysfs proc i386-ports dump
Checking for zlib support... yes (set manually)
Checking for DNS support... yes (set manually)
Checking whether to build a shared library... yes (set manually)
make -C lib all
i686-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fomit-frame-pointer -m32 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -march=athlon64 -O2 -pipe -fomit-frame-pointer   -c -o lspci.o lspci.c
make: i686-pc-linux-gnu-gcc: Command not found
make: *** [lspci.o] Error 127
make: *** Waiting for unfinished jobs....
make[1]: Entering directory `/var/tmp/portage/sys-apps/pciutils-3.1.4/work/pciutils-3.1.4/lib'
i686-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fomit-frame-pointer -m32 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC -fvisibility=hidden -march=athlon64 -O2 -pipe -fomit-frame-pointer   -c -o init.o init.c
make[1]: i686-pc-linux-gnu-gcc: Command not found
i686-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -fomit-frame-pointer -m32 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC -fvisibility=hidden -march=athlon64 -O2 -pipe -fomit-frame-pointer   -c -o access.o access.c
make[1]: i686-pc-linux-gnu-gcc: Command not found
make[1]: *** [init.o] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [access.o] Error 127
make[1]: Leaving directory `/var/tmp/portage/sys-apps/pciutils-3.1.4/work/pciutils-3.1.4/lib'
make: *** [lib/libpci.so.3.1.4] Error 2
 * ERROR: sys-apps/pciutils-3.1.4 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  48:  Called src_compile
 *   environment, line 2776:  Called die
 * The specific snippet of code:
 *       pemake OPT="${CFLAGS}" all || die
 * 
 * If you need support, post the output of 'emerge --info =sys-apps/pciutils-3.1.4',
 * the complete build log and the output of 'emerge -pqv =sys-apps/pciutils-3.1.4'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/pciutils-3.1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/pciutils-3.1.4/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/pciutils-3.1.4/work/pciutils-3.1.4'
Comment 1 ferret 2009-12-27 23:11:55 UTC
The following ebuild change fixes it and shouldn't negatively affect cross-compiling etc.


--- /usr/portage/sys-apps/pciutils/pciutils-3.1.4.ebuild	2009-12-27 23:06:18.000000000 +0000
+++ /home/ferret/pciutils-3.1.4.ebuild	2009-12-27 23:08:00.000000000 +0000
@@ -28,6 +28,7 @@
 	emake \
 		HOST="${CHOST}" \
 		CROSS_COMPILE="${CHOST}-" \
+		CC="${CC}" \
 		DNS="yes" \
 		IDSDIR="/usr/share/misc" \
 		MANDIR="/usr/share/man" \
Comment 2 SpanKY gentoo-dev 2009-12-29 06:08:37 UTC
neither the original reason nor proposed change are really correct

this should be ok:
http://sources.gentoo.org/sys-apps/pciutils/pciutils-3.1.4.ebuild?r1=1.8&r2=1.9