https://sourceware.org/bugzilla/show_bug.cgi?id=24981
Bug ID: 24981 Summary: Hit assertion failure in ld/ldlang.c:7504 Product: binutils Version: 2.33 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, I have got a new assertion failure when upgrading in my toolchain binutils from 2.32 branch to the trunk (2.32.51) branch. The error happens when I try to run gcc test suite. I build gmp/mpc/mpfr in the gcc tree directly (not really advocated by gcc developers anymore, but it still works for years), and the issue happens when running the tests of mpfr through the gcc global "make check". For now details are sparse, it happened during a CI build, I don't have access to the artefacts of the build anymore. Logs are showing an assertion error in ld/ldlang.c:7504 libtool: link: /workdir/build/final-system/gcc-build/./prev-gcc/xgcc -B/workdir/build/final-system/gcc-build/./prev-gcc/ -B/opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/bin/ -B/opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/bin/ -B/opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/lib/ -isystem /opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/include -isystem /opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/sys-include -O2 -msse -msse2 -msse3 -static-libstdc++ -static-libgcc -o tadd_fr tadd_fr.o ./.libs/libmpc-tests.a ../src/.libs/libmpc.a -lmpfr /workdir/build/final-system/gcc-build/./gmp/.libs/libgmp.a -lm libtool: link: /workdir/build/final-system/gcc-build/./prev-gcc/xgcc -B/workdir/build/final-system/gcc-build/./prev-gcc/ -B/opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/bin/ -B/opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/bin/ -B/opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/lib/ -isystem /opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/include -isystem /opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/sys-include -O2 -msse -msse2 -msse3 -static-libstdc++ -static-libgcc -o t-asmtype t-asmtype.o ../../tests/.libs/libtests.a /workdir/build/final-system/gcc-build/gmp/.libs/libgmp.a ../../.libs/libgmp.a /opt/1A/toolchain/x86_64-2.6.32-v3.0.79/x86_64-1a-linux-gnu/bin/ld: internal error /workdir/src/binutils-2.32.51/ld/ldlang.c 7504 collect2: error: ld returned 1 exit status make[4]: *** [Makefile:2437: tversion] Error 1 make[4]: Leaving directory '/home/jenkins/workspace/OTF_Toolchain_release_3.0/output/build/final-system/gcc-build/mpfr/tests' make[3]: *** [Makefile:4186: check-am] Error 2 make[3]: Leaving directory '/home/jenkins/workspace/OTF_Toolchain_release_3.0/output/build/final-system/gcc-build/mpfr/tests' make[2]: *** [Makefile:498: check-recursive] Error 1 make[2]: Leaving directory '/home/jenkins/workspace/OTF_Toolchain_release_3.0/output/build/final-system/gcc-build/mpfr' make[1]: *** [Makefile:6255: check-mpfr] Error 2 make[1]: *** Waiting for unfinished jobs.... Note that I build gcc (and thus mpfr) using LTO, as it is configured to do a PGO + LTO bootstrap build. The asserting code is the one added by this commit: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=128bf1fe608badb59d27f9c5c8ffb1a6a6d9d811 If you need more details, I can try to reproduce this issue locally, but might take some time as a gcc LTO + PGO build is quite long. Cheers, Romain -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils