Broken adress_sanitizer in gcc10.3 (+durty patch) #102
Labels
Bug 🐛
Error, flaw or fault
Need Testing 🧪
Issue/PR must be tested before concluding.
PR welcomed 💡
Related Pull Requests are welcomed for this issue!
Milestone
Hi,
When cross-compilling with the address sanitizer for bulleyes I get the following error at link time :
/opt/cross/tools/bin/../lib/gcc/aarch64-linux-gnu/10.3.0/../../../../aarch64-linux-gnu/bin/ld: program_name: hidden symbol `__aarch64_ldadd8_acq_rel' in /opt/cross/tools/bin/../lib/gcc/aarch64-linux-gnu/10.3.0/libgcc.a(ldadd_8_4.o) is referenced by DSO
It seems to be an error from gcc-10 as mentionned in https://lists.freebsd.org/archives/freebsd-ports/2021-July/000431.html
I got it to work by replacing gcc-10.3.0 with gcc-10.3.1 and (I don't know why, possibly a libc dependency problem) removing the lines 1642 to 1649 of c++/10.3.1/aarch64-linux-gnu/bits/c++config.h.
Without the last modification I get multiple error like :
The text was updated successfully, but these errors were encountered: