Open sylvestre opened 3 years ago
Moving from gold to bfd as linker fixed the issue (ie NOT using -fuse-ld=gold)
Please note that it is happening only on this arch on Debian.
And happening from version 8: https://buildd.debian.org/status/package.php?p=llvm-toolchain-8 to 11: https://buildd.debian.org/status/package.php?p=llvm-toolchain-11
The backtrace:
at /home/sylvestre/llvm-toolchain-11-11.0.0/llvm/include/llvm/Support/MemAlloc.h:53
at /home/sylvestre/llvm-toolchain-11-11.0.0/llvm/include/llvm/ADT/BitVector.h:893
at /home/sylvestre/llvm-toolchain-11-11.0.0/llvm/include/llvm/ADT/BitVector.h:375
at /home/sylvestre/llvm-toolchain-11-11.0.0/llvm/include/llvm/Support/CommandLine.h:1301
Extended Description
Reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972333
It seems it was caused by a new version of binutils (2.35.1-2 probably): https://tracker.debian.org/news/1181645/accepted-binutils-2351-2-source-into-unstable/
Maybe these patches? https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=4d8ee860737005517be588f4771c358593fa421c https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=e6f04d55f681149a69102a73937d0987719c3f16;hp=55b8e31a7a109bbd4efd7a59408c3c59dcf62ee0
% /home/sylvestre/llvm-toolchain-11-11.0.0/build-llvm/tools/clang/stage2-bins/bin/clang++ realloc(): invalid old size