This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: HP-UX ia64 64-bit Python executable
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, loewis, peterk
Priority: normal Keywords: patch

Created on 2005-06-21 23:34 by peterk, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
hpux_ia64_port.patch gvanrossum, 2005-09-08 23:29 added Elemental copyright notice
Messages (4)
msg48491 - (view) Author: Peter Kropf (peterk) Date: 2005-06-21 23:34
In working on getting a 64-bit Python to build and pass
the test suites on a Itanium 2 system running HP-UX 11,
there were two major issues that needed to be resolved:

- on ia64 HP-UX, unistd.h does not define
_POSIX_THREADS and therefore Python/thread.c was not
including thread_pthreads.h even though enough of the
posix threading API is available to support threads in
Python.

- isnan() was not being called to check floating point
numbers and math.sqrt(-1) would not throw a ValueError.


The attached patch make the following changes:

- modifies Python/thread.c to check for __hpux and
_SC_THREADS and if they're defined, then define
_POSIX_THREADS.

- modifies Include/pyport.h to check for __hpux and
__ia64 in the macro that defines _Py_SET_EDOM_FOR_NAN.

- modifies Readme to include details on how to build a
64-bit version of Python on a HP-UX based Itanium 2 system.

The patch file was created by running:

    cvs diff -c | tee ~/hpux_ia64_port.patch

from python/dist/src on a current CVS tree.


The current Readme also states that there is
optimization problems when building Python on an ia64
based HP-UX system using HP's C compiler. I have not
found this to be a problem. Should this note be removed
or marked as out of date?
msg48492 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-06-24 22:21
Logged In: YES 
user_id=21627

The patch looks good, but I have one comment:
it would be better if the user would not have to specify
flags explicitly. Python should build out of the box on the
platform, with not having to set environment variables.
Ideally, it should built forall of the most likely
configurations, i.e. c89/aCC and gcc, both 64 bits (I guess
nobody would want to build an ia32 binary even if this is
possible).
msg48493 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2005-07-20 17:49
Logged In: YES 
user_id=6380

I will work to check this in. I have to get the contribution
agreement reviewed by ESI management first.
msg48494 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2005-09-14 17:57
Logged In: YES 
user_id=6380

Checked into HEAD and 2.4 branch, in time for 2.4.2.

We didn't get to the automatic detection feature that Martin
requested; sorry.

We (Elemental Security) have mailed a contributor agreement
to the PSF.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42108
2005-06-21 23:34:34peterkcreate