10XGenomics / bamtofastq

Convert 10x BAM files to the original FASTQs compatible with 10x pipelines
MIT License
59 stars 6 forks source link

cargo build failed due to rust-htslib v0.21.0 #11

Closed CaibinSh closed 5 years ago

CaibinSh commented 5 years ago

when installing the package from Master branch, an error occurs:

... Compiling human-panic v1.0.1 Compiling shardio v0.3.0 (https://github.com/10XGenomics/rust-shardio.git#205727d5) Compiling rust-htslib v0.21.0 error: failed to run custom build command for rust-htslib v0.21.0 process didn't exit successfully: /~/tools/bamtofastq/target/release/build/rust-htslib-3559a93039723522/build-script-build (exit code: 101) ....

CaibinSh commented 5 years ago

when installing the package from Master branch, an error occurs:

... Compiling human-panic v1.0.1 Compiling shardio v0.3.0 (https://github.com/10XGenomics/rust-shardio.git#205727d5) Compiling rust-htslib v0.21.0 error: failed to run custom build command for rust-htslib v0.21.0 process didn't exit successfully: /~/tools/bamtofastq/target/release/build/rust-htslib-3559a93039723522/build-script-build (exit code: 101) ....

Solved! It seems that clang is required to build rust-htslib v0.21.0. After installing clang, it goes through the issue.