Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <416DA2C7.2090703@familiehaase.de>
Date: Wed, 13 Oct 2004 23:48:55 +0200
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Noah Misch <noah@cs.caltech.edu>
CC: "Gerrit P. Haase" <freeweb@nyckelpiga.de>, cygwin <cygwin@cygwin.com>,
   libtool@gnu.org
Subject: Re: Ping: Cygwin libtool / assembler problem with -DPIC
References: <501586262435.20041011122240@familiehaase.de> <191683852271.20041012152910@familiehaase.de> <20041013170135.GA24352@orchestra.cs.caltech.edu>
In-Reply-To: <20041013170135.GA24352@orchestra.cs.caltech.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Noah Misch wrote:
> On Tue, Oct 12, 2004 at 03:29:10PM +0200, Gerrit P. Haase wrote:
> 
>>Gerrit wrote:
>>
>>PING!
>>
>>
>>>Hello,
>>
>>>With GNU as PIC is not an noop, when -DPIC is used to invoke gas the
>>>generated assembly is broken.  I saw this problem with a
>>>reautoconfiscated version of GMP.  This may be unusual, but there was
>>>libtool used to invoke gas.
> 
> 
> What do you mean by ``the generated assembly is broken''?  Please show the error
> you encountered.
> 
> I built gmp-4.1.4 on Cygwin, and it passed all tests.  I used the shipped
> ``configure'', but adding -DPIC is not a new libtool behavior.
 >
> There was a thread about this general topic awhile ago.  That GMP actively uses
> -DPIC to select the correct assembly came up:
> 
> http://lists.gnu.org/archive/html/libtool/2003-01/msg00060.html

I saw that -DPIC was used on Cygwin to compile assembly and it couldn't be
linked.  Also I read in the GMP sources somewhere that libtool adds this
flag where it is a noop on Cygwin when not compiling assembler code where
it breaks things, so the conclusion was to remove the flag entirely when
platform is Cygwin, I was able to build GMP and thats it.

Unfortunately I have no logs, but I tracked it down and realized that
this flag is the culprit and removing it resolves my problem.  Even
more bad that the demo I suspect to show the error doesn't build at all
with the recent Cygwin release (demos/expr).

Anyway, this flag is used where it is completely useless, so please
remove it, patch was already submitted to the Cygwin libtool maintainer.


Gerrit
-- 
=^..^=

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

