emerge python # ver 2.2.2 Gentoo x86 didn't work. Here is my gcc info bash-2.05b# gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs Configured with: /var/tmp/portage/gcc-3.2.2/work/gcc-3.2.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext Thread model: posix gcc version 3.2.2 Here are my make.conf lines with CFlags settings showing which work and which don't: #Sham ---- -save-temps is not compatible with -pipe #CFLAGS="-march=athlon -O3 -save-temps" #---------------------------------------------Start Testing Sham #Python Won't compile like this. #CFLAGS="-march=athlon -O3 -save-temps" #Python 2.2.2 compiles fine with a blank CFLAGS #CFLAGS NOT SET #Python wouldn't compile like this either. #CFLAGS="-O3 -save-temps" #Python wouldn't compile like this either. #CFLAGS="-march=athlon -O2 -save-temps" #Python wouldn't compile like this either. #CFLAGS="-march=athlon -save-temps" #Python wouldn't compile like this either. #CFLAGS="-save-temps" #Python compile SUCCESS. #CFLAGS="" #Python COMPILE SUCCESS. CFLAGS="-march=athlon -O3" In conclusion, gcc gave the following errors with the -save-temps at the end of CFLAGS: gcc -c -DNDEBUG -march=athlon -O3 -save-temps -I. -I./Include -DHAVE_CONFIG_H -o Parser/acceler.o Parser/acceler.c In file included from Include/pymem.h:7, from Include/pgenheaders.h:24, from Parser/acceler.c:13: Include/pyport.h:462:2: #error "could not set LONG_MAX in pyport.h" make: *** [Parser/acceler.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from Include/Python.h:62, from Modules/python.c:3: Include/pyport.h:480:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." make: *** [Modules/python.o] Error 1 !!! ERROR: dev-lang/python-2.2.2 failed. !!! Function src_compile, Line 67, Exitcode 2 !!! Parallel make failed bash-2.05b# Reproducible: Always Steps to Reproduce: 1. Use CFLAGS of CFLAGS="-march=athlon -O3 -save-temps" in make.conf 2. emerge python Actual Results: ... Cut for brevity ... gcc -c -DNDEBUG -march=athlon -O3 -save-temps -I. -I./Include -DHAVE_CONFIG_H -o Parser/acceler.o Parser/acceler.c In file included from Include/pymem.h:7, from Include/pgenheaders.h:24, from Parser/acceler.c:13: Include/pyport.h:462:2: #error "could not set LONG_MAX in pyport.h" make: *** [Parser/acceler.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from Include/Python.h:62, from Modules/python.c:3: Include/pyport.h:480:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." make: *** [Modules/python.o] Error 1 !!! ERROR: dev-lang/python-2.2.2 failed. !!! Function src_compile, Line 67, Exitcode 2 !!! Parallel make failed bash-2.05b# Expected Results: Should have emerged properly...
Apparently python will not compile with a CFLAGS with a trailing space either??? Is this possible? I think something fishy is going on. -Sham
Not maintaining python.
i'll take a look into this then .. btw, what does "sham" mean ? :)
what exactly does -save-temps do? according to the manpage it just creates temporary pre-processed source files during compliation. if it isn't useful, then i'm going to strip it for the python ebuild.
i don't think anyone uses -save-temps. if so, they shouldn't unless they don't have enough RAM .. which is weird in itself.