How to build Python 2.6.2 on HP-UX Itanium with thread support?

Aahz aahz at pythoncraft.com
Wed May 13 10:25:05 EDT 2009


In article <51d1dd3f-322d-47fa-9d44-75b92c6ef4e2 at e20g2000vbc.googlegroups.com>,
 <henning.vonbargen at arcor.de> wrote:
>
>New info: The problem is not related to the specific program - it is
>definitely a build problem, as the following test shows:
>Python 2.6.2 (r262:71600, Apr 28 2009, 17:38:15)
>[GCC 4.2.3] on hp-ux11
>Type "help", "copyright", "credits" or "license" for more information.
>>>> import threading
>>>> threading._test()
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/local/lib/python2.6/threading.py", line 952, in _test
>    t.start()
>  File "/usr/local/lib/python2.6/threading.py", line 471, in start
>    _start_new_thread(self.__bootstrap, ())
>thread.error: can't start new thread
>>>>
>
>The compiler I used was GCC 4.2.3

You probably want to start by figuring out which threading library is
being used -- Python normally wants Posix threads, but IIRC, that's not
the default on HP-UX, and you may need to fix the build process to use
Posix.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan



More information about the Python-list mailing list