[PyQt] HP-UX, SIP, Python, g++ problems
Bill Jester
bill.jester at us.cd-adapco.com
Fri Jul 20 20:25:09 BST 2007
Hello all,
I have a large, C++ module which we compile successfully on 64 bit
HP-UX PA-RISC using the gnu4.1 compiler. Switching to the aCC compiler
on this platform is not an option because we are pushing the envelope a
bit on template metaprogramming and have little success with system
compilers.
I am attempting to bind a portion of our product to Python via SIP
but am having nothing but trouble on this platform (all went well the
first time on Linux). The problems I'm having are summarized below:
1) "make install" for Python failed on this OS -- when compiling
test_multibytecodec.py I get:
Compiling
/u/edge01/soft/jester/tools/python/hp8/lib/python2.5/test/test_multibytecodec.py
...
Sorry: UnicodeError: ("\\N escapes not supported (can't load unicodedata
module)",)
... I had to hack the makefile for it to proceed beyond this so it was
not a showstopper...
2) Once I worked around this I managed to compile SIP with the same
compiler used for Python and our product (gnu4.1.1). When I try to
import our module, however, I get pages of errors:
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__cxa_finalize' in
load module
'/u/edge01/soft/jester/tools/python/hp8/lib/python2.5/site-packages/sip.sl'.
... for sip.sl and pretty much every other library in the module,
including the libgcc_s system libs.
3) If I stub out __cxa_finalize (seems dangerous) I can successfully
import the module. When I try to actually use it, however, I get:
error loading libParasolid.sl : '/lib/pa20_64/libcl.2' contains a
static TLS reference to '__thread_specific_seg' defined in a dynamically
loaded library '/lib/pa20_64/libcl.2'. Use +tls=dynamic to re-compile
'/lib/pa20_64/libcl.2'.
Am I trying to do something impossible here by mixing gcc, Python, SIP,
and C++ on an HP machine? The full spec for the machine is listed below.
Thanks in advance for any help,
Bill Jester
*** Hardware detected ***
Hostname: hp8
Operating System: HP-UX B.11.11
System Uptime: 9:26am up 27 mins 1 user
Average Load: 0.01 0.01 0.01 (average over last 1min, 5min & 15min)
CPU Type: PA-Risc (9000/800/L3000-5x)
CPU Addressability: 64bit
CPU Count: 4
CPU Clock: 550 MHz
CPU Cache: Unknown
Physical Memory: 4096 MB
Swap Space: 9254 MB
*** Software detected (based on user environment) ***
GNU C: /opt/hp-gcc64-4.1.1/bin/gcc 4.1.1
GNU C++: /opt/hp-gcc64-4.1.1/bin/g++ 4.1.1
HP Fortran 90: /opt/fortran90/bin/f90 B3907DB/B3909DB
HP Linker: /usr/bin/ld B.11.58
HP PA-Risc MPI: 01.08.03.00 [32bit] [DSO]
HP PA-Risc MPI: 01.08.03.00 [64bit] [DSO]
Program Debugger: /adapco/prog/bin/gdb
Program Debugger: /opt/langtools/bin/gdb64
Program Debugger: /opt/langtools/bin/wdb
X-Windows Server: edge01:1 (1280x1024, 16bit colour)
--
Bill Jester, Ph.D.
Supervising Programmer
CD-adapco
814 861-1651
jester at us.cd-adapco.com
www.cd-adapco.com
--
Bill Jester, Ph.D.
Supervising Programmer
CD-adapco
814 861-1651
jester at us.cd-adapco.com
www.cd-adapco.com
More information about the PyQt
mailing list