From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 497 invoked by alias); 26 Jan 2010 20:27:58 -0000 Received: (qmail 482 invoked by uid 22791); 26 Jan 2010 20:27:56 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Jan 2010 20:27:49 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0QKR5Ok024146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Jan 2010 15:27:05 -0500 Received: from [10.11.9.117] (vpn-9-117.rdu.redhat.com [10.11.9.117]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0QKR3XZ013923; Tue, 26 Jan 2010 15:27:04 -0500 Message-ID: <4B5F5017.7030805@redhat.com> Date: Tue, 26 Jan 2010 20:27:00 -0000 From: Anthony Green User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: libffi-discuss@sourceware.org, GUYROZ@il.ibm.com CC: Hans_Boehm@hp.com Subject: Re: Compiling ctypes (libffi) for Windows Itanium References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org X-SW-Source: 2010/txt/msg00024.txt.bz2 On 01/26/2010 02:41 PM, Guy Rozendorn wrote: > Hi all, > > I am trying to build Python 2.6 for Windows Itanium. > I have the IA64 MSVC compiler set up, and so far I managed to build the > entire Python PCBuild project, except for ctypes. > > The project of course does not build on its own for IA64 on Windows, since > its missing the appropriate assembly for the libffi part. > Since we’re not familiar at all with itanium assembly, we tried to > workaround it: > • We looked at the existing windows linux assemblies in the project, and > tried to understand what they do > • We wrote some in C that should do pretty much the same, and compiled > ctypes with that > • It compiled without a too much hassle, but it didn’t work out (python > crashes when using ctypes on itanium) > > So, my questions are: > • Does someone successfully compiled ctypes for Windows IA64? Or have > another lead for us? > • It looks like that a compiler wrote the linux-ia64 assembly, and not a > human being. I'm pretty sure it was human-generated. > But we didn’t find the original C code of that in the project. > The reason that libffi contains so much assembly code, is that it's impossible to implement the libffi magic in C. > We hope that if we find the original C code, we can hack it a bit to also > compile and work on windows-ia64. > o Does someone know who the linux-ia64 assembly code was generated? From > which source? And who wrote it? > Unless you're looking at a different source code than me, you'll notice that it lists Hans Boehm from HP as the author of the IA-64 Linux port. > > Any help would be greatly appreciated! > > Thanks, > > - Guy > > > Good luck! Anthony Green