Bug#674155: clang: compiling with -faddress-sanitizer fails

Fabien Tassin fta at sofaraway.org
Thu Aug 30 18:01:53 UTC 2012


I tried with 3.1+rt-1~exp2 from experimental, it doesn't work either.

/usr/bin/ld: cannot find /usr/bin/../lib/clang/3.1/lib/linux/libclang_rt.asan-i386.a: No such file or directory

It seems there's a symlink missing:

ln -s /usr/include/clang/3.1/lib /usr/lib/clang/3.1

then I can build. But later, when linking, I'm getting tons of undefined
references to many __asan_* symbols. I'm not sure what i'm doing wrong
here. The same build with the same clang but without ASan works fine.



More information about the Pkg-llvm-team mailing list