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

How to build Python 2.6.2 on HP-UX Itanium with thread support? Note: I know that the first address to post this question is comp.lang.python, but I posted this question a week ago on comp.lang.python (http://groups.google.com/group/comp.lang.python/browse_thread/thread/c7006ad...) and unfortunately, I didn't receive any answers. According to Patch 1225212, at least Peter Kropf was able to get Python running with threading support on this platform, though AFAIK he was not using GCC. But I guess it should be possible with GCC as well. Is anyone able to confirm that Python (built with GCC) does or does not work with multi-threading on HP-UX Itanium? Is HP-UX Itanium a supported platform at all? BTW: A search for "supported platforms" at www.python.org does not help! And if it does work, which steps need to be taken to build it, e.g. other libraries/packages, environment variables, configure options, manual modifications? Henning

Hi Henning, henning.vonbargen wrote:
How to build Python 2.6.2 on HP-UX Itanium with thread support? [snip bit about python-list]
I can't give you directions, but if you can describe your issues I might be able to help. I'll respond in python-list, as I think this is OT for python-dev.
Is HP-UX Itanium a supported platform at all? BTW: A search for "supported platforms" at www.python.org does not help!
Now, this looks like python-dev material. PEP 11[0], the information in README[1] and the notes in the downloads pages[2] could be improved and updated. If someone has time to invest in this, a compatibility matrix would be very nice to have. Regards, Daniel [0] http://www.python.org/dev/peps/pep-0011/ [1] http://svn.python.org/view/python/trunk/README?revision=72107&view=markup [2] http://www.python.org/download/source/ and http://www.python.org/download/other/

Now, this looks like python-dev material. PEP 11[0], the information in README[1] and the notes in the downloads pages[2] could be improved and updated. If someone has time to invest in this, a compatibility matrix would be very nice to have.
I don't think HP-UX is ready for PEP 11 yet. It may not work, but that's a bug that could be fixed if users would actually contribute fixes. Likewise, changes to README could be accepted if users contribute them. I'm not sure /download/source is really that useful - perhaps it would be best to remove it. As for /download/other - contributions are welcome. Regards, Martin

How to build Python 2.6.2 on HP-UX Itanium with thread support? Note: I know that the first address to post this question is comp.lang.python, but I posted this question a week ago on comp.lang.python (http://groups.google.com/group/comp.lang.python/browse_thread/thread/c7006ad...) and unfortunately, I didn't receive any answers.
That isn't sufficient reason to post to python-dev, though.
Is HP-UX Itanium a supported platform at all?
Python does not have a single supported platform (*), so: no. (*) in the sense that anybody is providing "support" for it, ie. guarantees help in case somebody has problems. (**) HP-UX is not a platform that any of the regular Python contributors uses or tests on at a regular basis. Python contributors mostly use Linux, Windows, and OS X; some also use Solaris and *BSD.
And if it does work, which steps need to be taken to build it, e.g. other libraries/packages, environment variables, configure options, manual modifications?
This really is out of scope for python-dev. In scope would be a proposal to apply a certain patch that you had to write Python work on HP-UX, and discussion whether this patch is the appropriate solution. Regards, Martin (**) There is, of course, ActiveState, which does provide binaries, including for HP-UX, so I suppose they support it - at least if you buy commercial support.

On 2009.05.13 10:34:55 +0200, henning.vonbargen@arcor.de wrote:
How to build Python 2.6.2 on HP-UX Itanium with thread support? Note: I know that the first address to post this question is comp.lang.python, but I posted this question a week ago on comp.lang.python (http://groups.google.com/group/comp.lang.python/browse_thread/thread/c7006ad...) and unfortunately, I didn't receive any answers.
According to Patch 1225212, at least Peter Kropf was able to get Python running with threading support on this platform, though AFAIK he was not using GCC.
But I guess it should be possible with GCC as well.
Is anyone able to confirm that Python (built with GCC) does or does not work with multi-threading on HP-UX Itanium?
The good news: I did get Python 2.4.x working on HP-UX Itanium, with threading. The compiler was gcc 4.0.x. (I also tried building Python with aCC, but failed.) I remember building both 32-bit and 64-bit versions. I don't remember it being that hard. Used the source for the package at hpux.connect.org.uk as a starting point, since it had a lot of good porting tweaks, but it needed some further tweaking. (The main one I remember that is that the shared library extension for Itanium should be .so not .sl There were also a bunch of paths that required appending 32 or 64.) We used that build of Python in production, for very heavily multithreaded code, on multi-CPU boxes. Worked fine. AFAIK they're still using it. I'm not sure why the binary available at hpux.connect.org.uk has threading disabled. I suspect that some older version of HP/UX had pthread bugs that got fixed somewhere along the line. The bad news: I did this about 3.5 years ago, and I don't work there anymore, so I don't have access to that HP-UX hardware anymore, or to the notes I made when I was doing the port. So I can give you encouragement but not step-by-step instructions. Sorry. -- David Ripton dripton@ripton.net
participants (4)
-
"Martin v. Löwis"
-
Daniel Diniz
-
David Ripton
-
henning.vonbargen@arcor.de