public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/110650] New: collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
@ 2023-07-13 0:51 townsend at astro dot wisc.edu
2023-07-13 0:53 ` [Bug bootstrap/110650] " townsend at astro dot wisc.edu
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-13 0:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110650
Bug ID: 110650
Summary: collect2: fatal error: ld terminated with signal 11
[Segmentation fault]
Product: gcc
Version: 13.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: townsend at astro dot wisc.edu
Target Milestone: ---
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/110650] collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
2023-07-13 0:51 [Bug bootstrap/110650] New: collect2: fatal error: ld terminated with signal 11 [Segmentation fault] townsend at astro dot wisc.edu
@ 2023-07-13 0:53 ` townsend at astro dot wisc.edu
2023-07-13 1:41 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-13 0:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110650
--- Comment #1 from Rich Townsend <townsend at astro dot wisc.edu> ---
Oops, posted without any bug description!
I'm trying to build gcc 13.1.0 on Linux x86_64, and I get the following
segfault:
libtool: compile: /home/user/sdk2-tmp/build/gcc-build/./gcc/xgcc
-shared-libgcc -B/home/user/sdk2-tmp/build/gcc-build/./gcc -nostdinc++
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-checking
-I/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/user/sdk2-tmp/build/gcc/libstdc++-v3/libsupc++ -std=gnu++98 -fPIC -DPIC
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=compatibility-thread-c++0x.lo -g -O2 -D_GNU_SOURCE -std=gnu++11
-c
/home/user/sdk2-tmp/build/gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc
-o compatibility-thread-c++0x.o >/dev/null 2>&1
/bin/sh ../libtool --tag CXX --mode=link
/home/user/sdk2-tmp/build/gcc-build/./gcc/xgcc -shared-libgcc
-B/home/user/sdk2-tmp/build/gcc-build/./gcc -nostdinc++
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-checking -Wl,-O1 -Wl,-z,relro -Wl,--gc-sections -std=gnu++98 -fPIC
-DPIC -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=libstdc++.la -o libstdc++.la -version-info 6:31:0
-Wl,--version-script=libstdc++-symbols.ver -lm -rpath
/home/user/sdk2-tmp/mesasdk/lib/../lib64 compatibility.lo
compatibility-debug_list.lo compatibility-debug_list-2.lo
compatibility-atomic-c++0x.lo compatibility-c++0x.lo compatibility-chrono.lo
compatibility-condvar.lo compatibility-thread-c++0x.lo
../libsupc++/libsupc++convenience.la ../src/c++98/libc++98convenience.la
../src/c++11/libc++11convenience.la ../src/c++17/libc++17convenience.la
../src/c++20/libc++20convenience.la
libtool: link: /home/user/sdk2-tmp/build/gcc-build/./gcc/xgcc -shared-libgcc
-B/home/user/sdk2-tmp/build/gcc-build/./gcc -nostdinc++
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-checking -fPIC -DPIC -D_GLIBCXX_SHARED -shared -nostdlib
/usr/lib/../lib64/crti.o /home/user/sdk2-tmp/build/gcc-build/./gcc/crtbeginS.o
.libs/compatibility.o .libs/compatibility-debug_list.o
.libs/compatibility-debug_list-2.o .libs/compatibility-atomic-c++0x.o
.libs/compatibility-c++0x.o .libs/compatibility-chrono.o
.libs/compatibility-condvar.o .libs/compatibility-thread-c++0x.o
-Wl,--whole-archive ../libsupc++/.libs/libsupc++convenience.a
../src/c++98/.libs/libc++98convenience.a
../src/c++11/.libs/libc++11convenience.a
../src/c++17/.libs/libc++17convenience.a
../src/c++20/.libs/libc++20convenience.a -Wl,--no-whole-archive
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-lm -L/home/user/sdk2-tmp/build/gcc-build/./gcc -L/lib/../lib64
-L/usr/lib/../lib64 -lc -lgcc_s
/home/user/sdk2-tmp/build/gcc-build/./gcc/crtendS.o /usr/lib/../lib64/crtn.o
-Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections
-Wl,--version-script=libstdc++-symbols.ver -Wl,-soname -Wl,libstdc++.so.6 -o
.libs/libstdc++.so.6.0.31
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[6]: *** [libstdc++.la] Error 1
make[6]: Leaving directory
`/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/user/sdk2-tmp/build/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory `/home/user/sdk2-tmp/build/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/user/sdk2-tmp/build/gcc-build'
make: *** [all] Error 2
FAILED in make for gcc
Action install failed for package gcc/gcc-13.1.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/110650] collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
2023-07-13 0:51 [Bug bootstrap/110650] New: collect2: fatal error: ld terminated with signal 11 [Segmentation fault] townsend at astro dot wisc.edu
2023-07-13 0:53 ` [Bug bootstrap/110650] " townsend at astro dot wisc.edu
@ 2023-07-13 1:41 ` pinskia at gcc dot gnu.org
2023-07-13 2:02 ` townsend at astro dot wisc.edu
2023-07-13 3:29 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-13 1:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110650
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
Last reconfirmed| |2023-07-13
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you provide what version of ld you are using?
This is most likely not a gcc bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/110650] collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
2023-07-13 0:51 [Bug bootstrap/110650] New: collect2: fatal error: ld terminated with signal 11 [Segmentation fault] townsend at astro dot wisc.edu
2023-07-13 0:53 ` [Bug bootstrap/110650] " townsend at astro dot wisc.edu
2023-07-13 1:41 ` pinskia at gcc dot gnu.org
@ 2023-07-13 2:02 ` townsend at astro dot wisc.edu
2023-07-13 3:29 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-13 2:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110650
--- Comment #3 from Rich Townsend <townsend at astro dot wisc.edu> ---
Sure thing:
GNU ld version 2.17.50.0.6-26.el5 20061020
I'm deliberately working with an old toolchain, inside a Docker container, to
make sure that when I distribute the gcc executables they will work OK on older
systems.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/110650] collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
2023-07-13 0:51 [Bug bootstrap/110650] New: collect2: fatal error: ld terminated with signal 11 [Segmentation fault] townsend at astro dot wisc.edu
` (2 preceding siblings ...)
2023-07-13 2:02 ` townsend at astro dot wisc.edu
@ 2023-07-13 3:29 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-13 3:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110650
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely that binutils version is just broken. You should use a newer one.
Binutils 2.35 or newer is recommended so you can use LTO. As mentioned on
https://gcc.gnu.org/install/prerequisites.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-13 3:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-13 0:51 [Bug bootstrap/110650] New: collect2: fatal error: ld terminated with signal 11 [Segmentation fault] townsend at astro dot wisc.edu
2023-07-13 0:53 ` [Bug bootstrap/110650] " townsend at astro dot wisc.edu
2023-07-13 1:41 ` pinskia at gcc dot gnu.org
2023-07-13 2:02 ` townsend at astro dot wisc.edu
2023-07-13 3:29 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).