Compiling Python 2.0 in DEC Alpha?
Pekko Piirola
pekko at iki.fi
Tue Jan 23 08:43:04 EST 2001
I'm trying to compile python-2.0 in DEC Alpha, which is running
Digital UNIX V4.0F (Rev. 1229). After reading the README and the man
page of cc I figured out the commands I need to build the interpreter:
(I have already edited the Modules/Setup)
CC=cc OPT='-std -arch host -fast -D_REENTRANT -pthread' \
LDFLAGS='-pthread -lpthread -lmach -lexc -lc' \
./configure --prefix=/usr/local/contrib --with-dec-threads
make CC=cc OPT='-std -arch host -fast -D_REENTRANT -pthread' \
LDFLAGS='-pthread -lpthread -lmach -lexc -lc' 2>&1 | tee make.output-1
./configure runs nicely but make stops with the following error message:
--------------------- clip clip clip ----------------------
( .... some stuff deleted ... )
make[1]: Entering directory `/scratch/ppiirola/Python-2.0/Modules'
rm -f hassignal
for i in threadmodule.o gcmodule.o bsddbmodule.o regexmodule.o regexpr.o \
pcremodule.o pypcre.o posixmodule.o signalmodule.o _sre.o \
arraymodule.o cmathmodule.o mathmodule.o stropmodule.o structmodule.o \
timemodule.o operator.o _codecsmodule.o unicodedata.o unicodedatabase.o \
ucnhash.o _localemodule.o fcntlmodule.o pwdmodule.o grpmodule.o \
errnomodule.o selectmodule.o socketmodule.o mmapmodule.o md5module.o \
md5c.o shamodule.o rotormodule.o newmodule.o binascii.o parsermodule.o \
cStringIO.o cPickle.o config.o getpath.o main.o getbuildinfo.o; do \
if test "$i" = "signalmodule.o"; then \
echo yes >hassignal; break; \
fi; \
done
make[1]: Leaving directory `/scratch/ppiirola/Python-2.0/Modules'
cd Parser ; make OPT="-std -arch host -fast -D_REENTRANT -pthread" \
VERSION="2.0" prefix="/usr/local/contrib" exec_prefix="/usr/local/contrib" \
all
make[1]: Entering directory `/scratch/ppiirola/Python-2.0/Parser'
cc -std -arch host -fast -D_REENTRANT -pthread -I./../Include -I.. \
-DHAVE_CONFIG_H -c -o pgenmain.o pgenmain.c
cc: Error: ./../Include/pyport.h, line 390: #error \
"LONG_BIT definition appears wrong for platform (bad gcc config?)." \
(errormessage)
#error "LONG_BIT definition appears wrong for platform (bad gcc config?)."
-^
make[1]: *** [pgenmain.o] Error 1
make[1]: Leaving directory `/scratch/ppiirola/Python-2.0/Parser'
make: *** [Parser] Error 2
--------------------------- clip clip clip ----------------------
Does anyone have an idea what's going wrong or, better yet, how to
compile Python succesfully? Is there a bug in the source or in my
setup?
The compiler I'm using is DEC C V5.9-008 on Digital UNIX V4.0
(Rev. 1229), the make is GNU make 3.79.1 and the source is
downloaded straight from Python's server.
--
Pekko
More information about the Python-list
mailing list