build 64bit python on Solaris

Discussion in 'Python' started by Jhy-Chun Wang, Sep 21, 2004.

  1. 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
    Jhy-Chun Wang, Sep 21, 2004
    #1
    1. Advertising

  2. 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
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Sep 21, 2004
    #2
    1. Advertising

  3. 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
    Jhy-Chun Wang, Sep 21, 2004
    #3
  4. 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
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Sep 21, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nishant Deshpande
    Replies:
    1
    Views:
    350
    Erik de Castro Lopo
    Jul 19, 2003
  2. Stephen Williams
    Replies:
    2
    Views:
    371
    Dieter Maurer
    May 2, 2004
  3. Martijn de Munnik

    Compile python on Solaris 64bit

    Martijn de Munnik, Oct 12, 2006, in forum: Python
    Replies:
    4
    Views:
    688
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Oct 12, 2006
  4. Replies:
    1
    Views:
    335
    Martin v. Löwis
    Jan 22, 2009
  5. Rich

    64bit perl for Solaris

    Rich, Nov 23, 2005, in forum: Perl Misc
    Replies:
    2
    Views:
    225
Loading...

Share This Page