Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust Compile Issues #9

Open
drneavin opened this issue Oct 21, 2020 · 3 comments
Open

Rust Compile Issues #9

drneavin opened this issue Oct 21, 2020 · 3 comments

Comments

@drneavin
Copy link

Hello,

I am receiving the following error when I try to compile using rust:

  thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any of [\'libclang.so\', \'libclang.so.*\', \'libclang-*.so\'], set the LIBCLANG_PATH environment variable to a path where one of these files can be found (skipped: [])"', /home/drenea/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.36.1/src/lib.rs:1521:31
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

However, I have set $LIBCLANG_PATH to /path/to/software/anaconda3/envs/libclang/lib which contains the following directories and files:

gcc                                  libclang.so.11                    libLLVM-11.so                        librustc_macros-1e9f2ea5bcbf04e7.so        libubsan.so
ldscripts                            libgcc_s.so                       liblsan.so                           libstdc++.so                               libubsan.so.1
libasan.so                           libgcc_s.so.1                     liblsan.so.0                         libstdc++.so.6                             libubsan.so.1.0.0
libasan.so.5                         libgomp.so                        liblsan.so.0.0.0                     libstdc++.so.6.0.28                        libz.a
libasan.so.5.0.0                     libgomp.so.1                      libLTO.so.11                         libstd-f14aca24435a5414.so                 libz.so
libatomic.so                         libgomp.so.1.0.0                  libquadmath.so                       libtest-1a99bd050f5bcac9.so                libz.so.1
libatomic.so.1                       libitm.so                         libquadmath.so.0                     libtracing_attributes-72c431a73c36fa6b.so  libz.so.1.2.11
libatomic.so.1.2.0                   libitm.so.1                       libquadmath.so.0.0.0                 libtsan.so                                 pkgconfig
libchalk_derive-8c5c69f492ead449.so  libitm.so.1.0.0                   libRemarks.so.11                     libtsan.so.0                               rustlib
libclang.so                          libLLVM-11-rust-1.47.0-stable.so  librustc_driver-ff4ec557f69b94a7.so  libtsan.so.0.0.0

and clearly has libclang.so.

Not sure how to fix this or if this is a problem with the HPC that I am using.

Thanks for your help!

@laijen000
Copy link

Hi @drneavin ,
I am trying to compile using Rust and encounter the same issue as you. I was wondering if you were able to figure this out and have any advice?
Thank you!

@yonatans2
Copy link

Same here

@drneavin
Copy link
Author

Sorry, I don't think I was able to work this out and had to use the downloadable binary executables: https://github.com/10XGenomics/subset-bam/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants