X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=SO
	FYgVoAXLFpDFnJ8JW3CJAP6FjfJOOSvw5OrVciJupH0HgPwYIVLJYT/VDtO+aMKZ
	3EEZ+tz/jMKFROsHaS+fVttRy8B5uNA38HODUAnGNL1V6H24uf6Dpx+SqBXvAwPa
	wUDvruQpR7cj4U3SpquoWAsd55QZRKzuq57f2+weo=
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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=rfVF+EKL
	yNR3+RAFWSLD7WajGKo=; b=OQB8E81eDmgV4l/mO0wCzr9Jtqwy50uL0rMYB+Q/
	noH89+TO62F9hPT9+3DYUcwjjFAwTsy6fgXLxjA15tlQ4EnJ59gZrOa5YVfAhmvw
	9lUfSQYpCeW2IZUkeqqDhy2C3rDcOxn06pZRv9BXSf9HMUG0FtXQFfTXFkYUPMLe
	zaI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f170.google.com
MIME-Version: 1.0
X-Received: by 10.180.99.195 with SMTP id es3mr9563771wib.67.1411008961277; Wed, 17 Sep 2014 19:56:01 -0700 (PDT)
In-Reply-To: <541A375F.4060205@cygwin.com>
References: <CABWu70FH+jRZaAW5kkrJkr1NpekK8eEsje0X2fsUvp32wPVOeQ@mail.gmail.com>	<541A046B.6020908@gmail.com>	<CABWu70E3M-H8m0+=ad3WSQ_ecWUDGac4-EaforhqOZVD-mCFeQ@mail.gmail.com>	<541A375F.4060205@cygwin.com>
Date: Wed, 17 Sep 2014 22:56:01 -0400
Message-ID: <CABWu70HtPGPy7OtOApg30iatn7k4-yqfFtG+yVK_F6X7Naj6eg@mail.gmail.com>
Subject: Re: ld crashes with segmentation fault when linking with libmpir.a
From: "Daniel R. Grayson" <danielrichardgrayson@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

On Wed, Sep 17, 2014 at 9:37 PM, Yaakov Selkowitz <yselkowitz@cygwin.com> wrote:
> On 2014-09-17 19:28, Daniel R. Grayson wrote:
>>
>> This bug prevents me from linking our program under cygwin.  The program
>> is Macaulay2, see http://macaulay2.com/.  I'm working now on a work-around
>> involving using libgmp instead of libmpir, and I expect that to be
>> successful.
>
>
> Never link directly with ld; you must link with gcc/g++/etc. and leave it to
> the compiler to call ld correctly.

Normally we use "gcc" and let it call "ld" for us.  But "ld" crashed, so for
the purpose of the bug report, I've isolated the problem to its
simplest manifestation.

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

