Bug#779785: clang-3.7: -fsanitize doesn't work due to missing ubsan libraries in 3.7 (they were in libclam-common-3.x-dev previously)

Gregory Stark stark at mit.edu
Wed Mar 4 17:56:11 UTC 2015


Package: clang-3.7
Version: 1:3.7~svn230892-1
Severity: normal


I get the following when I try to run clang-3.7 with -fsanitize=address,undefined:

configure:3866: checking whether the C compiler works
configure:3888: /usr/bin/clang -g -O2 -fsanitize=address,undefined   conftest.c  >&5
/usr/bin/ld: cannot find /usr/lib/llvm-3.7/bin/../lib/clang/3.7.0/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory
/usr/bin/ld: cannot find /usr/lib/llvm-3.7/bin/../lib/clang/3.7.0/lib/linux/libclang_rt.ubsan-x86_64.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Poking around it seems previous versions of clang these libraries
existed in the libclang-common-3.x-dev package. I'm not sure that
makes sense if they're needed at runtime under normal use so perhaps
they've moved to a different package?

I think I've installed all the relevant 3.7 packages but perhaps
there's a missing dependency and there's a package that isn't uploaded
yet that I'll need for clang to work properly?


$ apt-file search -x '/usr/lib/.*/lib/clang/.*/lib/linux'

libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.asan-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.dfsan-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.full-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.lsan-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.msan-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.profile-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.san-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.tsan-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.ubsan-x86_64.a
libclang-common-3.4-dev: /usr/lib/llvm-3.4/lib/clang/3.4.2/lib/linux/libclang_rt.ubsan_cxx-x86_64.a

libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.asan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.asan_cxx-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.builtins-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.dfsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.lsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.msan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.profile-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.san-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.tsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.ubsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.ubsan_cxx-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.asan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.builtins-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.dfsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.lsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.msan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.profile-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.san-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.tsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.ubsan-x86_64.a
libclang-common-3.5-dev: /usr/lib/llvm-3.5/lib/clang/3.5.1/lib/linux/libclang_rt.ubsan_cxx-x86_64.a

libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.asan-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.asan_cxx-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.builtins-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.dfsan-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.lsan-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.msan-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.profile-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.san-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.tsan-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.ubsan-x86_64.a
libclang-common-3.6-dev: /usr/lib/llvm-3.6/lib/clang/3.6.0/lib/linux/libclang_rt.ubsan_cxx-x86_64.a

libclang-common-3.7-dev: /usr/lib/llvm-3.7/lib/clang/3.7.0/lib/linux/libclang_rt.builtins-x86_64.a
libclang-common-3.7-dev: /usr/lib/llvm-3.7/lib/clang/3.7.0/lib/linux/libclang_rt.profile-x86_64.a



-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages clang-3.7 depends on:
ii  binutils                 2.25-5
ii  libc6                    2.19-15
ii  libc6-dev                2.19-15
ii  libclang-common-3.7-dev  1:3.7~svn230892-1
ii  libclang1-3.7            1:3.7~svn230892-1
ii  libedit2                 3.1-20140620-2
ii  libffi6                  3.1-2+b2
ii  libgcc-4.9-dev           4.9.2-10
ii  libgcc1                  1:4.9.2-10
ii  libllvm3.7               1:3.7~svn230892-1
ii  libobjc-4.9-dev          4.9.2-10
ii  libstdc++-4.9-dev        4.9.2-10
ii  libstdc++6               4.9.2-10
ii  libtinfo5                5.9+20140913-1+b1
ii  zlib1g                   1:1.2.8.dfsg-2+b1

Versions of packages clang-3.7 recommends:
ii  llvm-3.7-dev  1:3.7~svn230892-1
ii  python        2.7.8-3

Versions of packages clang-3.7 suggests:
pn  clang-3.7-doc  <none>
pn  gnustep        <none>
pn  gnustep-devel  <none>

-- no debconf information



More information about the Pkg-llvm-team mailing list