Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX
5.3. Here are the settings:
export OBJECT_MODE=64
export AR="ar -X64"
export MAKE=/usr/bin/gmake
export CC="gcc"
export CFLAGS="-maix64 -O2 -g -mcpu=power5"
export LDFLAGS="-L/usr/lib64 -L/opt/freeware/lib64
-L/opt/freeware/64/lib -L/usr/X11R6/lib -L/opt/freeware/lib"
export CPPFLAGS="-I/opt/freeware/include -I/usr/lpp/X11/include/X11"
../Python-2.6.4/configure --with-gcc --disable-ipv6
--prefix=/usr/local/Python-2.6.4 > config_264.log 2>&1
make > make_264.log 2>&1
make fails very early with the following error
===========
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -O3 -Wall
-Wstrict-prototypes -I. -IInclude -I../Python-2.6.4/Includ
e -I/opt/freeware/include -I/usr/lpp/X11/include/X11 -DPy_BUILD_CORE -o
Modules/python.o ../Python-2.6.4/Modules/python.c
In file included from ../Python-2.6.4/Include/Python.h:58,
from ../Python-2.6.4/Modules/python.c:3:
../Python-2.6.4/Include/pyport.h:685:2: error: #error "LONG_BIT
definition appears wrong for platform (bad gcc/glibc config
?)."
make: The error code from the last command is 1.
===========
I would appreciate any help. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list