Connecting Tech Pros Worldwide Help | Site Map

Building Python 2.5.2 for Itanium

  #1  
Old November 21st, 2008, 05:25 PM
Christopher
Guest
 
Posts: n/a
Hello,

A tool that we use needs to be ported to Itanium. It wsa written
for Python 2.5.2, and so I was happily using the Itanium version of
that release. However, as I have gotten deeper into the port, I see
that ctypes was not included with the Itanium Python 2.5.2 release.

I need to compile that module for that release and platform, but I
have been unable to discover which MS compiler version and runtime was
used to generate the binaries. My understanding is that Python 2.5.2
in general uses Visual Studio 2003, but MS does not appear to have
shipped an Itanium compiler with that version of VS.

I know that there is an Itanium compiler in VS2K5 Team System, and
also a pre-release version was shipped with the Windows 2003 SP1
Platform SDK. However, the compiler in the SDK appears to basically
be an earlier version of the VS2K5 compiler.

When I run setup.py build, the distutils die b/c it is apparently
not the right compiler version.

I am basically looking for some direction w/r to the compiler
environment needed to build modules loadable by Python 2.5.2,
Itanium.

Thanks!
-={C}=-
  #2  
Old November 21st, 2008, 08:55 PM
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
 
Posts: n/a

re: Building Python 2.5.2 for Itanium


I need to compile that module for that release and platform, but I
Quote:
have been unable to discover which MS compiler version and runtime was
used to generate the binaries. My understanding is that Python 2.5.2
in general uses Visual Studio 2003, but MS does not appear to have
shipped an Itanium compiler with that version of VS.
That's correct. See PCbuild/readme.txt for (somewhat) detailed
instructions; in essence, you need to use vsextcomp, if you want to
use the official build process.
Quote:
I know that there is an Itanium compiler in VS2K5 Team System, and
also a pre-release version was shipped with the Windows 2003 SP1
Platform SDK.
I don't think that is a pre-release. The SDK had been shipping with
an Itanium compiler for quite some time, and it is the official compiler
to build binaries for Win64/IA-64 (to my knowledge, it is the compiler
that Windows itself was built with).
Quote:
However, the compiler in the SDK appears to basically
be an earlier version of the VS2K5 compiler.
That might be. The more critical issue is what CRT to link with.
I had been building the Python Itanium binaries always with the SDK
compiler (of different SDKs, actually); the SDK then would always
link with msvcrt.dll. If you use VS2K5, you might end up linking
with a different CRT, which would be bad.
Quote:
When I run setup.py build, the distutils die b/c it is apparently
not the right compiler version.
Correct. distutils is not used for building on Windows.

Wrt. the original issue: I am quite skeptical that you can make ctypes
work on Win64/IA-64. There is are several reasons why it wasn't build,
such as it doesn't compile, and, if it would compile, it wouldn't work.
So prepare to do some porting of libffi. Alternatively, rewrite the code
that requires ctypes to use a plain extension module, which is probably
easier to port to Itanium.

Regards,
Martin
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
404 not found on for Python 2.6 Itanium csgrimes1@gmail.com answers 14 November 22nd, 2008 02:05 AM
troubles building python 2.5 on Windows XP x64 Windows Server 2003 sp1 Platform SDK bhochstetler@gmail.com answers 8 April 11th, 2007 11:55 PM
Python on win64 Mauro Cicognini answers 2 July 18th, 2005 05:30 AM
Building Python 2.3 on HP-UX 10.20 - pthread failure Dan Cescato answers 9 July 18th, 2005 04:17 AM