Summary: | python-fchksum build hangs because of colorgcc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | giggles1 <bevdv> |
Component: | [OLD] Development | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | esigra |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
giggles1
2003-10-03 10:59:41 UTC
the answer for now is dont mess around with colorgcc + portage *** This bug has been marked as a duplicate of 2679 *** SpanKY: Note that giggles1 did ask how to turn off colorgcc in this build process, so it sounds like this is an unintentional colorgcc interaction. It's very strange that "colorgcc" even comes up in the output on the compile lines. I'm not very familar with the "python setup.py build" process, though, so if there's something to do with colorgcc secreted in there, that might explain things, but it didn't look like it to me. For instance, I tried reproducing the problem by setting CC to colorgcc and it didn't cause the build process to switch from using gcc explicitly. giggles1: You might try installing colorgcc 1.3.2-r4 (currently masked) to see if that makes the problem go away. Also, look around and see if the /usr/bin/wrappers dir is on the PATH in the global environment files, and if so, try removing it. i missed the unintentional factor ... /usr/bin/wrappers does not apply here since colorgcc uses /usr/lib/colorgcc/bin for its wrappers dir ... but the same idea applies, make sure your PATH doesnt have colorgcc in it ... also check the CC and CXX env variables to make sure they arent set to colorgcc Hi, I had added \usr\lib\colorgcc\bin to my path (I thought, on the urging
of the last colorgcc ebuild instructions..). However, even if I remove it,
the problem persists:
please env.d # echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/intel/compiler70/ia32/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/sun-j2sdk-1.4.1/bin:/opt/sun-j2sdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin:/usr/qt/2/bin:/opt/vmware/bin
please env.d # echo $CC
gcc
please env.d # ACCEPT_KEYWORDS=~x86 emerge python-fchksum
...
<same result>
BTW I do already have colorgcc-1.3.2-r4 installed. I also assumed this must
be hardwired somewhere deep in setup.py, etc. but I have not been able to
find it. I say this because even if I *unmerge* colorgcc I still get:
please env.d # ACCEPT_KEYWORDS=~x86 emerge python-fchksum
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-python/python-fchksum-1.7.1 to /
>>> md5 src_uri ;-) python-fchksum-1.7.1.tar.gz
>>> Unpacking source...
>>> Unpacking python-fchksum-1.7.1.tar.gz to /usr/local/portage/portage/python-fchksum-1.7.1/work
>>> Source unpacked.
['setup.py', 'build']
running build
running build_ext
building 'fchksum' extension
creating build
creating build/temp.linux-i686-2.2
colorgcc -DNDEBUG -fPIC -I/usr/include/python2.2 -c fchksum.c -o build/temp.linux-i686-2.2/fchksum.o
-march=athlon-mp -O2 -ftracer -ffast-math -pipe -fomit-frame-pointer
unable to execute colorgcc: No such file or directory
error: command 'colorgcc' failed with exit status 1
!!! ERROR: dev-python/python-fchksum-1.7.1 failed.
!!! Function src_compile, Line 20, Exitcode 1
!!! (no error message)
and just to double check:
please env.d # env |grep color
please env.d # env |grep wrapper
please env.d #
very strange. Any insights appreciated.
try logging in/out ... try `env-update ; source /etc/profile` ... try in a different terminal ;) Same result. 'grep' confirms that there is nothing in /etc/profile (or all of \etc\*) or /etc/env.d/* that mentions colorgcc or wrapper. Theres nothing in the output from 'env' either, and CC has been exported to 'gcc' as well. This is somewhere in the setup.py business, there's nowhere else it could be. FWIW re-emerging Python fixes this problem. |