infer icon indicating copy to clipboard operation
infer copied to clipboard

libclang_rt.profile-x86_64.a: No such file or directory

Open paradajz opened this issue 3 years ago • 3 comments

  • Downloaded the latest release (currently 1.1.0)
  • Extracted it to /opt (/opt/infer-linux64-v1.1.0)
  • bin directory is in path:

    which infer /opt/infer-linux64-v1.1.0/bin/infer

Running infer on my project with infer capture -- make results in following error:

/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: cannot find /opt/infer-linux64-v1.1.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/11.1.0/lib/linux/libclang_rt.profile-x86_64.a: No such file or directory

Checking that directory and really, that file is not there:

> ls -al
total 2612
drwxr-xr-x 1 root root    1368 lip  11 20:26 .
drwxr-xr-x 1 root root      10 lip  11 20:26 ..
-rwxr-xr-x 1 root root    2672 lip  11 20:26 clang_rt.crtbegin-x86_64.o
-rwxr-xr-x 1 root root    1056 lip  11 20:26 clang_rt.crtend-x86_64.o
-rwxr-xr-x 1 root root     463 lip  11 20:26 libclang_rt.asan_cxx-x86_64.a.syms
-rwxr-xr-x 1 root root   49096 lip  11 20:26 libclang_rt.asan-x86_64.a.syms
-rwxr-xr-x 1 root root 1170024 lip  11 20:26 libclang_rt.asan-x86_64.so
-rwxr-xr-x 1 root root     507 lip  11 20:26 libclang_rt.dfsan-x86_64.a.syms
-rwxr-xr-x 1 root root  215152 lip  11 20:26 libclang_rt.dyndd-x86_64.so
-rwxr-xr-x 1 root root     164 lip  11 20:26 libclang_rt.hwasan_cxx-x86_64.a.syms
-rwxr-xr-x 1 root root    2781 lip  11 20:26 libclang_rt.hwasan-x86_64.a.syms
-rwxr-xr-x 1 root root  339976 lip  11 20:26 libclang_rt.hwasan-x86_64.so
-rwxr-xr-x 1 root root     488 lip  11 20:26 libclang_rt.msan_cxx-x86_64.a.syms
-rwxr-xr-x 1 root root   52944 lip  11 20:26 libclang_rt.msan-x86_64.a.syms
-rwxr-xr-x 1 root root  174856 lip  11 20:26 libclang_rt.scudo_minimal-x86_64.so
-rwxr-xr-x 1 root root  271192 lip  11 20:26 libclang_rt.scudo-x86_64.so
-rwxr-xr-x 1 root root    1129 lip  11 20:26 libclang_rt.tsan_cxx-x86_64.a.syms
-rwxr-xr-x 1 root root   52603 lip  11 20:26 libclang_rt.tsan-x86_64.a.syms
-rwxr-xr-x 1 root root      18 lip  11 20:26 libclang_rt.ubsan_minimal-x86_64.a.syms
-rwxr-xr-x 1 root root   22648 lip  11 20:26 libclang_rt.ubsan_minimal-x86_64.so
-rwxr-xr-x 1 root root      18 lip  11 20:26 libclang_rt.ubsan_standalone_cxx-x86_64.a.syms
-rwxr-xr-x 1 root root    1239 lip  11 20:26 libclang_rt.ubsan_standalone-x86_64.a.syms
-rwxr-xr-x 1 root root  264080 lip  11 20:26 libclang_rt.ubsan_standalone-x86_64.so

paradajz avatar Jun 11 '22 18:06 paradajz

Hey, @paradajz any updates? Stuck with same issue

delinx avatar Sep 08 '22 00:09 delinx

This is what I'm using in my Dockerfile as an workaround:

RUN \
cd /opt && \
wget ${WGET_ARGS} https://github.com/facebook/infer/releases/download/v1.1.0/infer-linux64-v1.1.0.tar.xz && \
tar -xf infer-linux64-v1.1.0.tar.xz && \
rm infer-linux64-v1.1.0.tar.xz && \
cp /lib/clang/15.0.0/lib/linux/libclang_rt.profile-x86_64.a /opt/infer-linux64-v1.1.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/11.1.0/lib/linux

clang version might be different on your machine, though.

paradajz avatar Sep 08 '22 06:09 paradajz