delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/04/15:44:14

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:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=N9lKk8SPHQwXDq4s
4biSOKXViJzhW/+ojNBuPf4+0wy9x5vWpaYBpzGvcnYw5aU+copgPWuZxEzu9chb
gXgWJW5Bur77g3fwvDLSdGDkuPD+zTwibQIAnbXRrCqG88qciVvrhaokj2yKylVW
P07TpgXvcsI10BzayOJEl+8nNNA=
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:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=RpSpJYjqXcvHY6wXIwwqju
XMtW8=; b=qKGjZLvmmM0AF4E/DlP2jIS3tS/t0dtEE6XO+rCENS8Vz/GIjn51CX
dQnj6GWEMykqv2zDvtSsnUYq0ENv1dEwGAV7TkC9J1Ibth3psJQ9+4igG0scpl7G
H2XMk7POiMVzXfRbDXKz9gbFPTN2U1S16SFBd2TZXms5wxcUcW1vc=
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=-2.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*i:sk:19afd29, H*f:sk:19afd29, H*MI:sk:19afd29, research
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: Problem with Python programs with binary components, who to blame?
References: <156f59f4272 DOT c6a11ec33673 DOT 3924353846235894325 AT zoho DOT com> <19afd29b-3fbb-922f-9b05-e394475f1876 AT gmail DOT com>
To: cygwin AT cygwin DOT com
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <f4bea7c8-0e92-ed2e-86a0-0210d02d29db@cs.umass.edu>
Date: Sun, 4 Sep 2016 15:43:50 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <19afd29b-3fbb-922f-9b05-e394475f1876@gmail.com>
X-IsSubscribed: yes

On 9/4/2016 10:43 AM, Marco Atzeri wrote:
> On 04/09/2016 16:34, Patrick Pief wrote:
>> Hi,
>>
>> Before writing any formal bug report I thought I might ask first whether the
>> problem I am seeing is something that can be even fixed from Cygwin's side.
>>
>> The issue has to do with the compilation of Python binary packages for Python
>> inside Cygwin (Python installed as a Cygwin package as opposed to Python for
>> Windows).
>> The problem starts to show as gcc warnings: "[…] redeclared without dllimport
>> attribute: previous dllimport ignored", and ends with linkers errors such as:
>> "relocation truncated to fit [...] against undefined symbol".
>>
>> I am guessing the problem might actually lie within the Python sources itself
>> but I am not entirely sure.
>>
>> So is this some issue that is even worth further research and filing a bug
>> report here?
>
>
> On windows all symbols must be available at linking time.
> Cygwin programs/libraries have the same constrain.
>
> Can you report the full command that produce :
> ""relocation truncated to fit [...] against undefined symbol"." ?
>
> Are you building a specific program or it is your own development ?

I also wonder about:

- 32-bit versus 64-bit Cygwin, whether it may be an issue
- Such a build would need to be treated as a Posix build,
   not a Windows build, and probably should not be trying to
   access Windows libraries (as opposed to Cygwin libraries)

dllimport is meaningful for Windows, not for Posix, I believe.
So I wonder if you're actually running Cygwin's gcc ...

Anyway, some things to check into ...

Eliot Moss

--
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