?
=?iso-8859-15?q?Berthold_H=F6llmann?=
I am trying to compile Python on an Opteron machine using the PGI C
compiler under Linux. I use:
CC=pgcc ./configure --prefix=/usr/local/gltools/python/Python-2.2.1 \
--exec-prefix=/usr/local/gltools/python/Python-2.2.1/$GL_ARCH \
--with-cxx=pgCC
but make fails with:
pgCC -Xlinker -export-dynamic -o python \
Modules/ccpython.o \
libpython2.4.a -lpthread -ldl -lpthread -lutil -lm
libpython2.4.a(posixmodule.o)(.text+0x38d6): In function `posix_tmpnam':
: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.4.a(posixmodule.o)(.text+0x3841): In function `posix_tempnam':
: warning: the use of `tempnam' is dangerous, better use `mkstemp'
case $MAKEFLAGS in \
*-s*) CC='pgcc' LDSHARED='pgcc -shared' OPT='-DNDEBUG -O' ./python -E ./setup.py -q build;; \
*) CC='pgcc' LDSHARED='pgcc -shared' OPT='-DNDEBUG -O' ./python -E ./setup.py build;; \
esac
make: *** [sharedmods] Error 139
and issuing the last command from the command line gives:
This is with PGI 5.2 and 6.0.
Has anyone compiled python successfully using PGI compilers under 64
bit Linux. If yes, what are the neccesarry switches?
Thanks
Berthold
compiler under Linux. I use:
CC=pgcc ./configure --prefix=/usr/local/gltools/python/Python-2.2.1 \
--exec-prefix=/usr/local/gltools/python/Python-2.2.1/$GL_ARCH \
--with-cxx=pgCC
but make fails with:
pgCC -Xlinker -export-dynamic -o python \
Modules/ccpython.o \
libpython2.4.a -lpthread -ldl -lpthread -lutil -lm
libpython2.4.a(posixmodule.o)(.text+0x38d6): In function `posix_tmpnam':
: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.4.a(posixmodule.o)(.text+0x3841): In function `posix_tempnam':
: warning: the use of `tempnam' is dangerous, better use `mkstemp'
case $MAKEFLAGS in \
*-s*) CC='pgcc' LDSHARED='pgcc -shared' OPT='-DNDEBUG -O' ./python -E ./setup.py -q build;; \
*) CC='pgcc' LDSHARED='pgcc -shared' OPT='-DNDEBUG -O' ./python -E ./setup.py build;; \
esac
make: *** [sharedmods] Error 139
and issuing the last command from the command line gives:
Segmentation fault (core dumped)CC='pgcc' LDSHARED='pgcc -shared' OPT='-DNDEBUG -O' ./python -E ./setup.py build
This is with PGI 5.2 and 6.0.
Has anyone compiled python successfully using PGI compilers under 64
bit Linux. If yes, what are the neccesarry switches?
Thanks
Berthold