delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/31/14:12:36

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=Htkw
h05estJOi2WD+cg1WS68cWy7H/AmU8jWMIktgYCP6uXNHd2NMwND54bzqVqaJsa/
FSaCvUGJzrf5XloU3B6G7HvBxJqjSOx3Ja9WEV+5NSBWdlGequTa0a6eC6koEkow
GVIwO0lsLsbLw2H1cK4nVp4F/wc7oWr2IaKrr2E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=jSE1mQ4gG6
2JysjYN8BIU94KwQ0=; b=oexHzNY6D2HKkkFXOE2vU58neJPtj/2D1LaBHXDm0H
9IJwJgdvvX1PbNsonHCQOj+FU+KvA+aRa6UjPdKL48FMy7oN9bqnN3VS6LEauaqb
RZGkz6Y1TQd4bKIKR9Ej7/mW0AgGic5KOhzUVuXgyuVBhS/oD5nlHm5/Ez4gFCHB
g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_JMF_BL,RCVD_IN_SBL,SPF_PASS autolearn=no version=3.3.2
X-HELO: cpanel03.myhostcenter.com
Date: Thu, 31 Oct 2013 14:11:58 -0400
From: Jason Tishler <jason AT tishler DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Unable to compile python 3.3 [Was: Re: Python 3.3 coming soon?]
Message-ID: <20131031181156.GA66600@tishler.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <525BFCED DOT 8070802 AT cs DOT utoronto DOT ca> <525C95EE DOT 9070500 AT cs DOT utoronto DOT ca> <525CB65F DOT 6020803 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <525CB65F.6020803@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes

On Tue, Oct 15, 2013 at 12:28:31PM +0900, nu774 wrote:
> Installing libffi-devel will let python pick system libffi, so you
> can skip that libffi building part you are currently stuck.
> 
> (2013/10/15 10:10), Ryan Johnson wrote:
> >"/usr/src/python3-3.3.2-3/src/Python-3.3.2/Lib/distutils/command/build_ext.py",
> >line 463, in build_extensions
> >     self.build_extension(ext)
> >   File "/usr/src/python3-3.3.2-3/src/Python-3.3.2/setup.py", line 279,
> >in build_extension
> >     if not self.configure_ctypes(ext):
> >   File "/usr/src/python3-3.3.2-3/src/Python-3.3.2/setup.py", line 1807,
> >in configure_ctypes
> >     exec(f.read(), globals(), fficonfig)
> >   File "<string>", line 33, in <module>
> >KeyError: 'X86_WIN64'
> >Makefile:505: recipe for target 'sharedmods' failed
> >
> >At this point I'm stuck... any advice from the gurus out there would be
> >appreciated.

I get the same build failure with Python 2.7.5 and 3.2.5 under 64-bit
Cygwin even though I configure --with-system-ffi and have libffi-devel
installed.  I noticed that libffi-devel installs its headers in a
non-standard location:

$ cygcheck -l libffi-devel | fgrep .h
/usr/lib/libffi-3.0.13/include/ffi.h
/usr/lib/libffi-3.0.13/include/ffitarget.h

AFAICT, this prevents Python's build system from using the system
provided libffi and attempt to build its own causing an error like the
one above.

I can workaround the problem by creating symlinks to the libffi header
files in /usr/include:

$ ln -s /usr/lib/libffi-3.0.13/include/* /usr/include

It appears that others have successfully built Python under 64-bit
Cygwin without resorting to my workaround.  Does anyone know what I'm
missing?

Thanks,
Jason

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019