This is the mail archive of the
cygwin
mailing list for the Cygwin project.
AW: ld crashes with segmentation fault when linking with libmpir.a
- From: "Christoph H. Hochstaetter" <christoph at hochstaetter dot de>
- To: cygwin at cygwin dot com
- Date: Tue, 23 Sep 2014 23:27:24 +0200
- Subject: AW: ld crashes with segmentation fault when linking with libmpir.a
- Authentication-results: sourceware.org; auth=none
- References: <CABWu70FH+jRZaAW5kkrJkr1NpekK8eEsje0X2fsUvp32wPVOeQ at mail dot gmail dot com> <541A046B dot 6020908 at gmail dot com> <CABWu70E3M-H8m0+=ad3WSQ_ecWUDGac4-EaforhqOZVD-mCFeQ at mail dot gmail dot com>
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Ãngliche 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=x86_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