Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <416DA2C7.2090703@familiehaase.de> Date: Wed, 13 Oct 2004 23:48:55 +0200 From: "Gerrit P. Haase" 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 CC: "Gerrit P. Haase" , cygwin , libtool AT gnu DOT org Subject: Re: Ping: Cygwin libtool / assembler problem with -DPIC References: <501586262435 DOT 20041011122240 AT familiehaase DOT de> <191683852271 DOT 20041012152910 AT familiehaase DOT de> <20041013170135 DOT GA24352 AT orchestra DOT cs DOT caltech DOT 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/