[Patches] [ python-Patches-1225212 ] HP-UX ia64 64-bit Python executable
SourceForge.net
noreply at sourceforge.net
Wed Jun 22 01:34:34 CEST 2005
Patches item #1225212, was opened at 2005-06-21 16:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1225212&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Kropf (peterk)
Assigned to: Nobody/Anonymous (nobody)
Summary: HP-UX ia64 64-bit Python executable
Initial Comment:
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?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1225212&group_id=5470
More information about the Patches
mailing list