From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24460 invoked by alias); 23 Sep 2014 21:27:28 -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 24447 invoked by uid 89); 23 Sep 2014 21:27:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f175.google.com Received: from mail-ig0-f175.google.com (HELO mail-ig0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 23 Sep 2014 21:27:26 +0000 Received: by mail-ig0-f175.google.com with SMTP id h18so5421221igc.8 for ; Tue, 23 Sep 2014 14:27:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:content-type :content-transfer-encoding; bh=bV4WrZyibYg6czWPXu10GhZXlPZV71Vy0Y1/67IAOgM=; b=XERpldBvb94WjeHvvuUPRB7RFEgyygsnSVLkq+mwlFO0zwfRtl1Mn2we7zkzDAX4CG 2h1/yzJkl1ypnHu6kf7/SYDZh1bqsYCluX1TLvtq4MtKlHijtF+5mRTGQ8Hkr1pcqq5M jBmhIUpo8dUOLMihz0gOmFI9bkiOktTB5yfHYgcygIB9EhRGweP3sZw/fNWMS8mwRNn5 8N+1WP7992lTDNoLzQm5pBeJhKu7SrrPqSmBQuF87QRUYDDZAd5leCKUxmeZE8CZAz6L 0I8XAw5lPS+7t1NaMsPSA7XF8F61DxciuqYgh2KwnID8hU9O0qXYWNdXInqNcnxyHqC7 aMNQ== X-Gm-Message-State: ALoCoQnfLyyfaALlkTSVIg/NrjYY6hAFB9E3AT7I14TZN4Ot5LEeoNKpsiBjnjbc2sF0ZKFR54Kb X-Received: by 10.42.206.210 with SMTP id fv18mr6107157icb.47.1411507643799; Tue, 23 Sep 2014 14:27:23 -0700 (PDT) From: "Christoph H. Hochstaetter" References: <541A046B.6020908@gmail.com> In-Reply-To: MIME-Version: 1.0 Date: Tue, 23 Sep 2014 22:10:00 -0000 Message-ID: <5bdd863252926ba12e07ffb37798e29c@mail.gmail.com> Subject: AW: ld crashes with segmentation fault when linking with libmpir.a To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00361.txt.bz2 I am experiencing 100% reproducible SIGSEGVs in ld if I use link time optimization (-flto). See https://cygwin.com/ml/cygwin/2014-08/msg00439.html What actually helped is to go back to gcc 4.8.3-2 or use experimental 4.9.0. Maybe this works for you too although the problem is actually not ld itself but the gcc linker plugin cyglto_plugin.dll. Corinna suspects that not all of DJ's and Yaakov's changes were actually merged into 4.8.3-3 -Christoph -----Urspr=C3=BCngliche Nachricht----- Von: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] Im Auftrag von Daniel R. Grayson Gesendet: Donnerstag, 18. September 2014 02:29 An: cygwin@cygwin.com Betreff: Re: ld crashes with segmentation fault when linking with libmpir.a On Wed, Sep 17, 2014 at 6:00 PM, JonY <10walls@gmail.com> wrote: > On 9/18/2014 03:20, Daniel R. Grayson wrote: >> ld crashes with segmentation fault when linking with libmpir.a >> >> To reproduce: >> >> wget http://mpir.org/mpir-2.6.0.tar.bz2 >> tar xjf mpir-2.6.0.tar.bz2 >> cd mpir-2.6.0 >> ./configure --build=3Dx86_64-pc-cygwin >> make >> ld -u __gmpn_gcdext .libs/libmpir.a >> > > What are you trying to accomplish? I suspect this will not work on > Windows. > > > 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. I'm not sure what you mean when you say it will not work under Windows, since my bug report is about a program crashing, and the program should work, i.e., "ld" should link object files together or give an error message. -- 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 -- 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