64bit Python builds on HP-UX ia64 and PA-RISC (Using GCC)

Laura Creighton lac at openend.se
Wed Sep 23 05:17:35 EDT 2015


In a message of Wed, 23 Sep 2015 09:03:21 +0100, James Matthews writes:
>Hi,
>
>I'm having some issues getting 64bit Python builds on HP-UX. I'm using the
>GCC version available from the HP website. I've also tried using HP's
>compiler but don't have much success either, even following the readme.
>These are the results I get:
>
>PA-RISC:
>
>./configure CC=/opt/hp-gcc64-4.7.1/bin/gcc
>make
>
>Traceback (most recent call last):
>  File "./setup.py", line 2240, in <module>
>    main()
>  File "./setup.py", line 2235, in main
>    'Lib/smtpd.py']
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/core.py", line 151, in setup
>    dist.run_commands()
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/dist.py", line 953, in
>run_commands
>    self.run_command(cmd)
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/dist.py", line 972, in
>run_command
>    cmd_obj.run()
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/command/build.py", line 127,
>in run
>    self.run_command(cmd_name)
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/cmd.py", line 326, in
>run_command
>    self.distribution.run_command(command)
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/dist.py", line 972, in
>run_command
>    cmd_obj.run()
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/command/build_ext.py", line
>337, in run
>    self.build_extensions()
>  File "./setup.py", line 251, in build_extensions
>    build_ext.build_extensions(self)
>  File "/tmp/jxm/Python-2.7.10/Lib/distutils/command/build_ext.py", line
>446, in build_extensions
>    self.build_extension(ext)
>  File "./setup.py", line 287, in build_extension
>    if not self.configure_ctypes(ext):
>  File "./setup.py", line 2041, in configure_ctypes
>    exec f in fficonfig
>  File "build/temp.hp-ux-B.11.31-9000-800-2.7/libffi/fficonfig.py", line
>33, in <module>
>    ffi_sources += ffi_platforms['PA64_HPUX']
>KeyError: 'PA64_HPUX'
>*** Error exit code 1
>
>During make I also get lots of errors like this: ./pyconfig.h:1188:0:
>warning: "_POSIX_C_SOURCE" redefined [enabled by default]
>
>
>ia64:
>
>./configure CC=/opt/hp-gcc-4.7.1/bin/gcc CFLAGS="-mlp64"
>Make
>
>./pyconfig.h:1188:0: warning: "_POSIX_C_SOURCE" redefined [enabled by
>default]
><command-line>:0:0: note: this is the location of the previous definition
>        /opt/hp-gcc-4.7.1/bin/gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall
>-Wstrict-prototypes  Parser/acceler.o  Parser/grammar1.o
>Parser/listnode.o  Parser/node.o  Parser/parser.o  Parser/parsetok.o
>Parser/bitset.o  Parser/metagrammar.o  Parser/firstsets.o
>Parser/grammar.o  Parser/pgen.o Objects/obmalloc.o  Python/mysnprintf.o
>Python/pyctype.o  Parser/tokenizer_pgen.o  Parser/printgrammar.o
>Parser/pgenmain.o -lnsl -lrt -ldld -ldl  -o Parser/pgen
>ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file
>Parser/acceler.o
>Fatal error.
>collect2: error: ld returned 1 exit status
>*** Error exit code 1
>Stop.
>*** Error exit code 1
>
>Seems to be a library mismatch?
>
>Any help would be appreciated.
>
>Regards,
>James
>-- 
>https://mail.python.org/mailman/listinfo/python-list

I think you have this problem.
http://h30499.www3.hp.com/t5/Languages-and-Scripting/Conpilation-errors-on-HP-UX-11-31-IA64/td-p/4777801#.VgJtfUlZLZs

Laura 



More information about the Python-list mailing list