bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under m


From: nickc at redhat dot com
Subject: [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO
Date: Tue, 17 Jan 2023 12:50:38 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29998

--- Comment #6 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Jan Janssen from comment #5)
Hi Jan,

  Hmm, I am beginning to suspect the libtlo_plugin (from gcc, not the binutils)
as the cause of this problem...

> /usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld
> -plugin /usr/lib/gcc/x86_64-w64-mingw32/12.2.0/liblto_plugin.so
> -plugin-opt=/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/lto-wrapper
> -plugin-opt=-fresolution=/tmp/ccJFF0sj.res -m i386pep -Bdynamic -o test.exe
> -L/usr/lib/gcc/x86_64-w64-mingw32/12.2.0
> -L/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/lib/.
> ./lib
> -L/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/lib
> test2.obj libtest.a -lgcc
> collect2: fatal error: ld terminated with signal 11 [Segmentation fault],
> core dumped

I am stuck here because I do not have
/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/lto-wrapper installed (and just using a
dummy empty file does not work).

As a quick test, if you have both gcc 12 and gcc 10 installed, does editing
that command line above and using the gcc 10 plugin and/or gcc 10 lto-wrapper
script 
make the link work ?

Also - does adding "-plugin-opt=-debug" to the command line produce any more
helpful output ?

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]