Clang 3.7 missing UBsan libraries

Bug #1610502 reported by Jeffrey Walton on 2016-08-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Undecided
Unassigned

Bug Description

$ cat test.cc
int main(int argc, char* argv[])
{
  return 0;
}

$ clang-3.7 -fsanitize=undefined test.cc -o test.exe
/usr/bin/ld: cannot find /usr/lib/llvm-3.7/bin/../lib/clang/3.7.0/lib/linux/libclang_rt.ubsan_standalone-arm.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Considering Valgrind does not work because of the clever little-endian/big-endian switch in memcpy, it would be nice if some of the other tools worked.

This may be related: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779785.

Jeffrey Walton (noloader) wrote :

Also see the following bug report on the LLVM mailing list: http://llvm.org/bugs/show_bug.cgi?id=22757 .

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.