build 64bit python on Solaris

J

Jhy-Chun Wang

Hi,

I am tying to build a 64bit python 2.3.3 on Solaris, but getting the
following error:

PYTHONPATH=/import/archperf/local/Python-2.3.3-64bit/lib/python2.3 \
./python -Wi -tt
/import/archperf/local/Python-2.3.3-64bit/lib/python2.3/compileall.py \
-d /import/archperf/local/Python-2.3.3-64bit/lib/python2.3 -f \
-x 'badsyntax|site-packages'
/import/archperf/local/Python-2.3.3-64bit/lib/python2.3
*** Error code 139
make: Fatal error: Command failed for target `libinstall'

<bash>ephyra::python-2.3.3-64bit/$ dbx python
(dbx) run

Running: python
(process id 18798)
t@1 (l@1) signal SEGV (no mapping at the fault address) in PyObject_Free
at 0x10005c61c
0x000000010005c61c: PyObject_Free+0x002c: ld [%l6 + 0x20], %l3
(dbx) where
current thread: t@1
=>[1] PyObject_Free(0x10030a150, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x10005c61c
[2] string_dealloc(0x10030a150, 0x10030a150, 0x0, 0x100348ff0,
0x493ee09995c1253e, 0x10030a030), at 0x10005e9c8
[3] PyString_InternInPlace(0xffffffff7fffed98, 0x0, 0x0, 0x0,
0x10030a030, 0x10030a150), at 0x100068548
[4] PyString_InternFromString(0x1002d4478, 0x0, 0x0, 0x0, 0x0,
0x10030a120), at 0x10006873c
[5] init_slotdefs(0x0, 0x0, 0x0, 0x0, 0x0, 0x1002a6c08), at 0x10007d290
[6] add_operators(0x1002a65d0, 0x0, 0x0, 0x100348ed0, 0x100348ed0,
0x100348ed0), at 0x10007d7a4
[7] PyType_Ready(0x1002a65d0, 0x0, 0x0, 0x100309050, 0x0, 0x0), at
0x10007482c
[8] PyType_Ready(0x1002a6458, 0x0, 0x0, 0x0, 0x0, 0x1002a65d0), at
0x10007474c
[9] _Py_ReadyTypes(0x0, 0xffffffff7ffff868, 0x0, 0x0, 0x1, 0x0), at
0x10005ba3c
[10] Py_Initialize(0x100308df0, 0x0, 0x1002d0d58, 0xffffffff7de0d270,
0x100306d80, 0x1), at 0x1000d48f8
[11] Py_Main(0x1, 0xffffffff7ffff5d8, 0x1, 0x0, 0x0, 0x0), at
0x100022888
[12] main(0x1, 0xffffffff7ffff5d8, 0xffffffff7ffff5e8, 0x0, 0x0,
0x100000000), at 0x100021d38

Any idea what went wrong? what configuration/compiler options should I
use to build a 64bit python on Solaris?

Any help is very appreciated.

Jhychun Wang
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Jhy-Chun Wang said:
Any idea what went wrong? what configuration/compiler options should I
use to build a 64bit python on Solaris?

As a starting point, try using a 32-bit Python. There is no advantage
in using a 64-bit Python I can see.

If you must have a 64-bit Python, try turning off the optimization in
your compiler, and make sure you have the latest compiler patches
applied.

Regards,
Martin
 
J

Jhy-Chun Wang

I need to load 64bit C++ modules, will 32bit python do the work? I did
try -g alone, but still failed with the same error.

Thanks,

Jhychun
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Jhy-Chun Wang said:
I need to load 64bit C++ modules, will 32bit python do the work? I did
try -g alone, but still failed with the same error.

No, in that case, you will need a 64-bit version.

Something is wrong in your system (it might be Python, it might be your
system). However, I cannot start guessing what it might be. So you need
to use a debugger and find out why it crashes. It looks like it is a
problem with memory management, so be prepared for very long debugging
sessions.

Good luck,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top