Bug#866087: clang-5.0: Hard coded location for libFuzzer

Erik de Castro Lopo erikd at mega-nerd.com
Tue Jun 27 08:25:34 UTC 2017


Package: clang-5.0
Version: 1:5.0~svn305653-1
Severity: normal

Dear Maintainer,

I've installed clang-5.0 and libfuzzer-5.0-dev. According to the LLVM docs
here:

    http://llvm.org/docs/LibFuzzer.html

I should be able to do:

    clang-5.0 -g -fsanitize=fuzzer,address fuzz-target.c-o fuzz-target

but that results in the error:

    /usr/bin/ld: cannot find /usr/lib/libLLVMFuzzer.a: No such file or directory
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

The problem seems to be that Clang has a hard-coded location for the libFuzzer
library (/usr/lib/) which does not match the actual location on Debian which is

    /usr/lib/llvm-5.0/lib/libFuzzer.a

Cheers,
Erik


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (500, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64, armhf, i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages clang-5.0 depends on:
ii  binutils                 2.28-6
ii  libc6                    2.24-12
ii  libc6-dev                2.24-12
ii  libclang-common-5.0-dev  1:5.0~svn305653-1
ii  libclang1-5.0            1:5.0~svn305653-1
ii  libgcc-6-dev             6.3.0-18
ii  libgcc1                  1:7.1.0-7
ii  libjsoncpp1              1.7.4-3
ii  libllvm5.0               1:5.0~svn305653-1
ii  libobjc-6-dev            6.3.0-18
ii  libstdc++-6-dev          6.3.0-18
ii  libstdc++6               7.1.0-7
ii  libtinfo5                6.0+20161126-1
ii  zlib1g                   1:1.2.8.dfsg-5

Versions of packages clang-5.0 recommends:
ii  llvm-5.0-dev  1:5.0~svn305653-1
ii  python        2.7.13-2

Versions of packages clang-5.0 suggests:
pn  clang-5.0-doc  <none>
pn  gnustep        <none>
pn  gnustep-devel  <none>
pn  libomp-dev     <none>

-- no debconf information



More information about the Pkg-llvm-team mailing list