Bug#786853: clang-3.7: Link error with -fsanitize=address

Erik de Castro Lopo erikd at mega-nerd.com
Tue May 26 05:33:59 UTC 2015

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

Dear Maintainer,

Compiling a simple "Hello world" style program with -fsanitize=address resukts

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

It seems that that clang expects /usr/lib/llvm-3.7/lib/clang/3.7.0/linux/ to
exist, but it doesn't. 

Possible packaging error?


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (1, 'experimental')
Architecture: armhf (armv7l)

Kernel: Linux 3.10.72+ (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages clang-3.7 depends on:
ii  binutils                 2.25-7
ii  libc6                    2.19-18
ii  libc6-dev                2.19-18
ii  libclang-common-3.7-dev  1:3.7~svn230892-1
ii  libclang1-3.7            1:3.7~svn230892-1
ii  libedit2                 3.1-20150325-1
ii  libffi6                  3.2.1-2
ii  libgcc-4.9-dev           4.9.2-18
ii  libgcc1                  1:5.1.1-7
ii  libllvm3.7               1:3.7~svn230892-1
ii  libobjc-4.9-dev          4.9.2-18
ii  libstdc++-4.9-dev        4.9.2-18
ii  libstdc++6               5.1.1-7
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.9-1

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