From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15436 invoked by alias); 18 Sep 2014 02:56:07 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15419 invoked by uid 89); 18 Sep 2014 02:56:06 -0000 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 Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 18 Sep 2014 02:56:04 +0000 Received: by mail-wi0-f170.google.com with SMTP id em10so6251690wid.5 for ; Wed, 17 Sep 2014 19:56:01 -0700 (PDT) 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) Received: by 10.194.61.6 with HTTP; Wed, 17 Sep 2014 19:56:01 -0700 (PDT) In-Reply-To: <541A375F.4060205@cygwin.com> References: <541A046B.6020908@gmail.com> <541A375F.4060205@cygwin.com> Date: Thu, 18 Sep 2014 02:58:00 -0000 Message-ID: Subject: Re: ld crashes with segmentation fault when linking with libmpir.a From: "Daniel R. Grayson" To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00283.txt.bz2 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