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

Jakub Ruzicka yac at srck.cz
Wed May 23 12:57:13 UTC 2012


Package: clang
Version: 3.1-1
Severity: normal


Compiling C sources with `clang -faddress-sanitizer` (AdressSanitizer is
now part of clang starting with version 3.1) thorws following error:

/usr/bin/ld: error: cannot open /usr/bin/../lib/clang/3.1/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory
test.c:5: error: undefined reference to '__asan_init'
test.c:5: error: undefined reference to '__asan_register_globals'
test.c:5: error: undefined reference to '__asan_unregister_globals'

More "undefined reference to '__asan_..." errors are thrown for more complex
programs.

Searching for the missing library with apt-file yielded no results, it would
seem it isn't packaged.

AddressSanitizer is an awesome tool and should be readily available.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.26-yac (SMP w/2 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clang depends on:
ii  libc6                2.13-32
ii  libclang-common-dev  3.1-1
ii  libffi5              3.0.10-3
ii  libgcc1              1:4.7.0-8
ii  libllvm3.1           3.1-1
ii  libstdc++6           4.7.0-8
ii  libstdc++6-4.6-dev   4.6.3-1

Versions of packages clang recommends:
ii  llvm-3.1-dev  3.1-1
ii  python        2.7.2-10

clang suggests no packages.

-- no debconf information






More information about the Pkg-llvm-team mailing list