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=sl
	770luMYLfu0ia+IGFVvuLm624l/kq0/6UwE8u1pkifaEwQgTYvF7yprPYOHopo/V
	On/+eTdpP/tDGVM0GE+CsRlVG29l8+KX9kvFhA58MgpdPX0365HxBfoIpOjDI3Hc
	saAYTQ6yiHP9cxzNw6Rm/FV2QwVuqZF8/iHpvaRWg=
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=mYptQywu
	7zfdfJiq/Ztbm15NiRU=; b=K42oxedv4cwNZWWfg3FyjUkspFf1FpBlpFRCpbMK
	yIUUGiWRNE1YdVZqvFSxut/B5drRCjMrwGa7nxpHJwAadkK17DDdU+Zysh11Y6qW
	FS4NPT1CrkldxUPlDgFFZTDxSILDgDUSPo9Chp4fvmedP+jFjgPihBEaAMe7+rHX
	9b4=
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-f175.google.com
MIME-Version: 1.0
X-Received: by 10.194.58.244 with SMTP id u20mr1560008wjq.36.1411009128557; Wed, 17 Sep 2014 19:58:48 -0700 (PDT)
In-Reply-To: <CABWu70HtPGPy7OtOApg30iatn7k4-yqfFtG+yVK_F6X7Naj6eg@mail.gmail.com>
References: <CABWu70FH+jRZaAW5kkrJkr1NpekK8eEsje0X2fsUvp32wPVOeQ@mail.gmail.com>	<541A046B.6020908@gmail.com>	<CABWu70E3M-H8m0+=ad3WSQ_ecWUDGac4-EaforhqOZVD-mCFeQ@mail.gmail.com>	<541A375F.4060205@cygwin.com>	<CABWu70HtPGPy7OtOApg30iatn7k4-yqfFtG+yVK_F6X7Naj6eg@mail.gmail.com>
Date: Wed, 17 Sep 2014 22:58:48 -0400
Message-ID: <CABWu70FAH595-PBxuSSYwuiqVYgiD9XefmedNN7ZYgsOyD53Kw@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 10:56 PM, Daniel R. Grayson
<danielrichardgrayson@gmail.com> wrote:
> 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.

PS: If you want to use "gdb", you need to know how to run the program that's
crashing.

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

