ldc icon indicating copy to clipboard operation
ldc copied to clipboard

Memory sanitizer doesn't appear to be compiled with -fPIC on linux

Open rikkimax opened this issue 1 year ago • 1 comments

LDC linux binary (from releases):

/usr/bin/ld: /home/rikki/.local/bin/ldc2-1.37.0-linux-x86_64/bin/../lib/libldc_rt.msan.a(msan.cpp.o): relocation R_X86_64_TPOFF32 against `_ZN6__msanL28is_in_symbolizer_or_unwinderE' can not be used when making a shared object; recompile with -fPIC

Tried to compile my shared library with memory sanitizer and received this.

rikkimax avatar May 23 '24 11:05 rikkimax

Well we don't tamper with those compiler-rt build settings. I guess you are supposed to link the shared sanitizer variant, which we probably don't bundle (but you can use the library from clang).

kinke avatar May 23 '24 11:05 kinke