Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21746 - Python 2.2.2 will not compile with CFLAGS -save-temps
Summary: Python 2.2.2 will not compile with CFLAGS -save-temps
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-27 00:25 UTC by Sham Rao
Modified: 2003-10-18 05:43 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 Sham Rao 2003-05-27 00:25:32 UTC
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...
Comment 1 Sham Rao 2003-05-27 01:14:11 UTC
Apparently python will not compile with a CFLAGS with a trailing space either???
Is this possible?  I think something fishy is going on.

-Sham
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-31 06:47:48 UTC
Not maintaining python.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-06-01 09:25:54 UTC
i'll take a look into this then .. btw, what does "sham" mean ? :)
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-06-12 16:58:53 UTC
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.
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-10-18 05:43:08 UTC
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.