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: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 AT cygwin DOT com; run by ezmlm List-Id: 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 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: <541A046B DOT 6020908 AT gmail DOT com> <541A375F DOT 4060205 AT cygwin DOT com> Date: Wed, 17 Sep 2014 22:56:01 -0400 Message-ID: Subject: Re: ld crashes with segmentation fault when linking with libmpir.a From: "Daniel R. Grayson" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Wed, Sep 17, 2014 at 9:37 PM, Yaakov Selkowitz 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