bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/31720] New: LD segfaults randomly when building GCC on i686-w64-


From: lh_mouse at 126 dot com
Subject: [Bug ld/31720] New: LD segfaults randomly when building GCC on i686-w64-mingw32
Date: Fri, 10 May 2024 03:22:05 +0000

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

            Bug ID: 31720
           Summary: LD segfaults randomly when building GCC on
                    i686-w64-mingw32
           Product: binutils
           Version: 2.42
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: lh_mouse at 126 dot com
  Target Milestone: ---

bootstrapping GCC 14.1 on i686-w64-mingw32 fails randomly; running the
offending commands by hand does not fail:

```
/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/./prev-gcc/xg++
-B/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/./prev-gcc/
-B/mingw32/i686-w64-mingw32/bin/ -nostdinc++
-B/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/src/.libs
-B/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/libsupc++/.libs

-I/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32

-I/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/include

-I/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/gcc/libstdc++-v3/libsupc++
-L/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/src/.libs
-L/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/libsupc++/.libs
  -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H 
-DGENERATOR_FILE -static-libstdc++ -Wl,--stack,12582912
-Wl,--undefined=HOST_EXTRA_OBJS_SYMBOL -o build/genconditions.exe \
    build/genconditions.o build/rtl.o build/read-rtl.o build/ggc-none.o
build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o
build/hash-table.o build/sort.o build/read-md.o build/errors.o
.././libiberty/libiberty.a
make[3]: *** [Makefile:3196: build/genconditions.exe] Error 1
make[3]: *** Waiting for unfinished jobs....
collect2.exe: error: ld returned 5 exit status
/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/./prev-gcc/xg++
-B/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/./prev-gcc/
-B/mingw32/i686-w64-mingw32/bin/ -nostdinc++
-B/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/src/.libs
-B/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/libsupc++/.libs

-I/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32

-I/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/include

-I/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/gcc/libstdc++-v3/libsupc++
-L/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/src/.libs
-L/home/lh_mouse/GitHub/MINGW-packages/mingw-w64-gcc/src/build-MINGW32/prev-i686-w64-mingw32/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H 
-DGENERATOR_FILE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build
-I../../gcc/gcc/../include  -I../../gcc/gcc/../libcpp/include
-D__USE_MINGW_ANSI_STDIO=1 -DCOM_NO_WINDOWS_H -I/mingw32/include \
        -o build/genextract.o ../../gcc/gcc/genextract.cc
make[3]: *** [Makefile:3196: build/genextract.exe] Error 1
```

`5` is the lowest byte of 0xC0000005 (access violation). It's possibly a
reproduction of
https://stackoverflow.com/questions/45077846/collect2-exe-error-ld-returned-5-exit-status

-- 
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]