homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bos
Recipients
Date 2005年01月17日.22:54:18
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I'm trying to build a 32-bit python on an x86_64 Linux box running Fedora Core 3.
Here's my configure command line:
CFLAGS=-m32 LDFLAGS=-m32 ../../../python/configure --prefix=/opt/python --enable-shared --enable-ipv6 --enable-profiling --enable-unicode=ucs4
When I try to do a make afterwards, the build immediately fails:
gcc -pthread -c -pg -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I../../../python/Include -fPIC -DPy_BUILD_CORE -o Modules/python.o ../../../python/Modules/python.c
In file included from ../../../python/Include/Python.h:55,
 from ../../../python/Modules/python.c:3:
../../../python/Include/pyport.h:612:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make: *** [Modules/python.o] Error 1
Notice the lack of "-m32" on the gcc command line. Sure enough, look in the Makefile and LDFLAGS is set correctly, with -m32, but CFLAGS makes no mention of it, nor does BASECFLAGS.
If I modify BASECFLAGS by hand, python itself builds OK, but then the shared libraries fail to link because LDSHARED is not having LDFLAGS passed in.
History
Date User Action Args
2008年01月20日 09:57:25adminlinkissue1104249 messages
2008年01月20日 09:57:25admincreate

AltStyle によって変換されたページ (->オリジナル) /