Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > build 64bit python on Solaris

Reply
Thread Tools

build 64bit python on Solaris

 
 
Jhy-Chun Wang
Guest
Posts: n/a
 
      09-21-2004
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:ython-2.3.3-64bit/$ dbx python
(dbx) run

Running: python
(process id 1879
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, 0x1002a6c0, 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

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      09-21-2004
Jhy-Chun Wang wrote:
> 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
 
Reply With Quote
 
 
 
 
Jhy-Chun Wang
Guest
Posts: n/a
 
      09-21-2004

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


Martin v. L÷wis wrote:
> Jhy-Chun Wang wrote:
>
>> 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


 
Reply With Quote
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      09-21-2004
Jhy-Chun Wang wrote:
>
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build 64-bit Python on Solaris with GCC? skip@pobox.com Python 0 12-06-2011 02:26 PM
Compile python on Solaris 64bit Martijn de Munnik Python 4 10-12-2006 07:18 PM
Python 2.4.2 gcc 3.4.4 Solaris 8 build issues Holger Joukl Python 1 12-30-2005 10:57 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
_socket module missing solaris 7 build python 2.3.3 Stephen Williams Python 2 05-02-2004 05:47 PM



Advertisments