473,777 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Building Python 2.5.2 for Itanium

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}=-
Nov 21 '08 #1
1 2151
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.
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.
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).
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.
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
Nov 21 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2287
by: Dan Cescato | last post by:
When I try to build Python 2.3 on HP-UX 10.20 using their cc compiler, I get a compile failure. It comes down to Python/thread_pthread.h deciding that my machine is an unsupported system, as documented in the README file. ("Systems defining PY_PTHREAD_D4..."). Apparently, Python 2.3 doesn't like their implementation of pthreads. However, in the "Platform specific notes" section, there is a note about HP-UX 10.20 which makes me believe...
2
1812
by: Bernhard Mulder | last post by:
I am using Python on Itanium Windows 64 (Server 2003) with a Win32 version. Is there a native version available or planned? Are testers needed for this platform? Windows 64 is a bit unusual in that "long" is not large enough to hold an address.
0
1451
by: Bernard Delmée | last post by:
Hello, because we are migrating to an Itanium HP-UX server, I will shortly need to compile python 2.3 and cx_oracle on that platform. I seem to recall people having problem compiling python on HP-UX in general, and am interested in opinions about which compiler to use. Should I require the HP compiler, or is gcc known to work for this purpose ? Thanks for any hint,
8
2306
by: Brendan | last post by:
Hello, I just tried to use the Windows XP installer for Python 2.5 AMD64 but I get the error message: "Installation package not supported by processor type" I am running Windows XP Pro on an AMD Athon 64 Processor. Do I need to have a 64-bit OS to use this version?
8
2085
by: bhochstetler | last post by:
I am needing to build python 2.5 on Windows XP x64 Windows Server 2003 sp1 Platform SDK and am not finding anything documented on the process to use. Has anyone had any success with this? If so has anyone documented it? The documentation that resides in pcbuild/readme.txt is not helpful at all. Any help is greatly appreciated. Thanks Brad
3
1224
by: xamdam | last post by:
Sorry if this is a stupid q, I am trying to figure out the appropriate version of Python(2.4 or 2.5) for an XP 64 system running on an Intel Core2 Quad. Python.org has a to a 64bit build, but it specifies Itanium as the target. Should I just be using the regular build? I was also thinking of getting the Enthought edition (http:// code.enthought.com/enthon/) - would their binary work with the setup, and what would be the downside of using...
9
5677
by: python | last post by:
Background: I'm going to be processing some raw transaction logs that are 30G in size. As part of this processing I may need to create some very large dictionary structures. I will be running my scripts on a version of Windows 2003 Server Enterprise Edition that supports 16G of RAM. Yes, I could use a database in place of dictionaries, but I'm looking for maximum performance. The following page lists two 64 bit versions of Python for...
1
1817
by: M.-A. Lemburg | last post by:
On 2008-07-25 08:13, python@bdurham.com wrote: Yes. But then Intel Itanium is being phased out anyway and the AMD64 build works on both Intel and AMD processors. True.
14
1572
by: csgrimes1 | last post by:
Anyone know where else I can download 2.6 for x64 windows? Thanks!
0
9628
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10292
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7471
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5497
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.