470,647 Members | 1,248 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

compiling python 2.4.1 on Linux_X86_64 using PGI compiler fails


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:
CC='pgcc' LDSHARED='pgcc -shared' OPT='-DNDEBUG -O' ./python -E ./setup.py build

Segmentation fault (core dumped)

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
--
ho**@GL-Group.com __ Address:
G / \ L Germanischer Lloyd
phone: +49-40-36149-7374 -+----+- Vorsetzen 35 P.O.Box 111606
fax : +49-40-36149-7320 \__/ D-20459 Hamburg D-20416 Hamburg
Jul 19 '05 #1
1 1691
Berthold Höllmann wrote:
Has anyone compiled python successfully using PGI compilers under 64
bit Linux. If yes, what are the neccesarry switches?


As a starting point, I would try to compile without optimization.

If the compiler has something similar to gcc's -fno-strict-aliasing,
you should pass that as well.

Regards,
Martin
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by A. B., Khalid | last post: by
29 posts views Thread by Maurice LING | last post: by
reply views Thread by pruebauno | last post: by
reply views Thread by stefvienna | last post: by
3 posts views Thread by Konrad Hinsen | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
8 posts views Thread by rays | last post: by
4 posts views Thread by Colin J. Williams | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.