rust-lang / cargo

The Rust package manager
https://doc.rust-lang.org/cargo
Apache License 2.0
12.77k stars 2.42k forks source link

error[E0463]: can't find crate for `llvm_sys` #9838

Closed nivekithan closed 3 years ago

nivekithan commented 3 years ago

Problem

I am using llvm_sys in my code. For some reason when I am testing it ( cargo test ) it says that can't find crate for llvm_sys even though it is available in crates.io

Note: There is no problem when I am running command cargo build

Steps

You must installed a compatible llvm before running cargo test

  1. gh repo clone nivekithan/rust_llvm_sys_prob
  2. cargo test

Notes

Output of cargo version: cargo 1.54.0 (5ae8d74b3 2021-06-22)

Error log:

cargo test --verbose
       Fresh ucd-trie v0.1.3
       Fresh regex-syntax v0.6.25
       Fresh lazy_static v1.4.0
       Fresh cc v1.0.69
       Fresh pest v2.1.3
       Fresh memchr v2.4.1
       Fresh semver-parser v0.10.2
       Fresh libc v0.2.100
       Fresh aho-corasick v0.7.18
       Fresh semver v0.11.0
       Fresh regex v1.5.4
       Fresh llvm-sys v120.2.0
   Compiling prob_llvm_sys v0.1.0 (/home/nivekithan/temp/rust_llvm_sys_prob)
     Running `rustc --crate-name prob_llvm_sys --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=7af2b1f9b764f802 -C extra-filename=-7af2b1f9b764f802 --out-dir /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps -C incremental=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/incremental -L dependency=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps --extern llvm_sys=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib -L native=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out -L native=/home/nivekithan/dep/llvm/binary/lib`
error[E0463]: can't find crate for `llvm_sys`
 --> src/lib.rs:1:5
  |
1 | use llvm_sys::prelude::*;
  |     ^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `prob_llvm_sys`

Caused by:
  process didn't exit successfully: `rustc --crate-name prob_llvm_sys --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=7af2b1f9b764f802 -C extra-filename=-7af2b1f9b764f802 --out-dir /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps -C incremental=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/incremental -L dependency=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps --extern llvm_sys=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib -L native=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out -L native=/home/nivekithan/dep/llvm/binary/lib` (exit status: 1)

cargo.toml

[package]
name = "prob_llvm_sys"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
llvm-sys = "120.0.0"

rustc --version --verbose

rustc 1.54.0 (a178d0322 2021-07-26)
binary: rustc
commit-hash: a178d0322ce20e33eac124758e837cbd80a6f633
commit-date: 2021-07-26
host: x86_64-unknown-linux-gnu
release: 1.54.0
LLVM version: 12.0.1
ehuss commented 3 years ago

Hm, that's strange! Unfortunately I'm not able to reproduce that. Some things you can check:

nivekithan commented 3 years ago

I am using $LLVM_SYS_120_PREFIX to provide location of llvm to llvm_sys instead of adding llvm/bin to path

$LLVM_SYS_120_PREFIX/bin/llvm-config --version
12.0.1

Output of RUSTC_LOG=trace cargo test most of the output contains rustc_metadata::creader

RUSTC_LOG=trace cargo test
   Compiling prob_llvm_sys v0.1.0 (/home/nivekithan/temp/rust_llvm_sys_prob)
warning: some trace filter directives would enable traces that are disabled statically
 | `trace` would enable the TRACE level for all targets
 = note: the static max level is `info`
 = help: to enable DEBUG logging, remove the `max_level_info` feature
INFO rustc_metadata::creader resolving crate `std`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb36534c113d2209.rlib
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2420485b9e5ef5e1.rlib
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2420485b9e5ef5e1.so
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb36534c113d2209.rlib
INFO rustc_metadata::locator Rejecting via crate name
INFO rustc_metadata::locator metadata mismatch
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2420485b9e5ef5e1.rlib
INFO rustc_metadata::creader register crate `std` (cnum = 1. private_dep = false)
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader falling back to a load
┐rustc_query_system::dep_graph::serialized::decode
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5b228734afae15ee.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5b228734afae15ee.rlib
INFO rustc_metadata::creader register crate `core` (cnum = 2. private_dep = false)
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d6c7a399d95d173f.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d6c7a399d95d173f.rlib
INFO rustc_metadata::creader register crate `compiler_builtins` (cnum = 3. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-8063eea38dcc5e62.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-8063eea38dcc5e62.rlib
INFO rustc_metadata::creader register crate `rustc_std_workspace_core` (cnum = 4. private_dep = false)
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-379cc252b6943a79.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-379cc252b6943a79.rlib
INFO rustc_metadata::creader register crate `alloc` (cnum = 5. private_dep = false)
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate libc hash: `178cfb48efe0da5e` extra filename: `-544ecdbd6cda3c58`
INFO rustc_metadata::creader resolving crate `libc`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-544ecdbd6cda3c58.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-544ecdbd6cda3c58.rlib
INFO rustc_metadata::creader register crate `libc` (cnum = 6. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate unwind hash: `cfa5fee7537cfd40` extra filename: `-f78aa99d613a55bc`
INFO rustc_metadata::creader resolving crate `unwind`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-f78aa99d613a55bc.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-f78aa99d613a55bc.rlib
INFO rustc_metadata::creader register crate `unwind` (cnum = 7. private_dep = false)
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-53ee54cd7fed2c57.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-53ee54cd7fed2c57.rlib
INFO rustc_metadata::creader register crate `cfg_if` (cnum = 8. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate libc hash: `178cfb48efe0da5e` extra filename: `-544ecdbd6cda3c58`
INFO rustc_metadata::creader resolving crate `libc`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader resolving dep crate hashbrown hash: `e71b24b94468ad0f` extra filename: `-491902d6cb3e76df`
INFO rustc_metadata::creader resolving crate `hashbrown`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-491902d6cb3e76df.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-491902d6cb3e76df.rlib
INFO rustc_metadata::creader register crate `hashbrown` (cnum = 9. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-61834e0981b8c367.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-61834e0981b8c367.rlib
INFO rustc_metadata::creader register crate `rustc_std_workspace_alloc` (cnum = 10. private_dep = false)
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate rustc_demangle hash: `6b8c945f97f5e382` extra filename: `-b56b9042c12b6535`
INFO rustc_metadata::creader resolving crate `rustc_demangle`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-b56b9042c12b6535.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-b56b9042c12b6535.rlib
INFO rustc_metadata::creader register crate `rustc_demangle` (cnum = 11. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate std_detect hash: `f566a1715ceb1f4b` extra filename: `-fb36534c113d2209`
INFO rustc_metadata::creader resolving crate `std_detect`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb36534c113d2209.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb36534c113d2209.rlib
INFO rustc_metadata::creader register crate `std_detect` (cnum = 12. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader resolving dep crate addr2line hash: `bd13ef5deb668abc` extra filename: `-d05c5c3c56004b7b`
INFO rustc_metadata::creader resolving crate `addr2line`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d05c5c3c56004b7b.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d05c5c3c56004b7b.rlib
INFO rustc_metadata::creader register crate `addr2line` (cnum = 13. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate gimli hash: `ed21228db7ccc7ea` extra filename: `-42d74d2097528b38`
INFO rustc_metadata::creader resolving crate `gimli`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-42d74d2097528b38.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-42d74d2097528b38.rlib
INFO rustc_metadata::creader register crate `gimli` (cnum = 14. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate gimli hash: `ed21228db7ccc7ea` extra filename: `-42d74d2097528b38`
INFO rustc_metadata::creader resolving crate `gimli`
INFO rustc_metadata::creader resolving dep crate object hash: `81b277dd6cf0c7da` extra filename: `-6fb405869b015fde`
INFO rustc_metadata::creader resolving crate `object`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-6fb405869b015fde.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-6fb405869b015fde.rlib
INFO rustc_metadata::creader register crate `object` (cnum = 15. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate miniz_oxide hash: `e22eaaed84d397da` extra filename: `-087191a88bdaa22d`
INFO rustc_metadata::creader resolving crate `miniz_oxide`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-087191a88bdaa22d.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-087191a88bdaa22d.rlib
INFO rustc_metadata::creader register crate `miniz_oxide` (cnum = 16. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate adler hash: `41373a60d3397d7b` extra filename: `-9981842c02975178`
INFO rustc_metadata::creader resolving crate `adler`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9981842c02975178.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9981842c02975178.rlib
INFO rustc_metadata::creader register crate `adler` (cnum = 17. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate adler hash: `41373a60d3397d7b` extra filename: `-9981842c02975178`
INFO rustc_metadata::creader resolving crate `adler`
INFO rustc_metadata::creader resolving dep crate panic_unwind hash: `6cbc4dc959ad7072` extra filename: `-785e3cb61c4b1960`
INFO rustc_metadata::creader resolving crate `panic_unwind`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-785e3cb61c4b1960.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-785e3cb61c4b1960.rlib
INFO rustc_metadata::creader register crate `panic_unwind` (cnum = 18. private_dep = false)
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader resolving dep crate libc hash: `178cfb48efe0da5e` extra filename: `-544ecdbd6cda3c58`
INFO rustc_metadata::creader resolving crate `libc`
INFO rustc_metadata::creader resolving dep crate unwind hash: `cfa5fee7537cfd40` extra filename: `-f78aa99d613a55bc`
INFO rustc_metadata::creader resolving crate `unwind`
┘rustc_query_system::dep_graph::serialized::decode
INFO rustc_metadata::creader resolving crate `llvm_sys`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib
WARN rustc_metadata::locator no metadata found: failed to parse rlib '/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib': Invalid archive extended name offset
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib
WARN rustc_metadata::locator no metadata found: failed to parse rlib '/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib': Invalid archive extended name offset
INFO rustc_metadata::creader resolving crate `test`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-3599c5491d44663f.rlib
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-3599c5491d44663f.so
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-3599c5491d44663f.rlib
INFO rustc_metadata::creader register crate `test` (cnum = 19. private_dep = false)
INFO rustc_metadata::creader resolving dep crate std hash: `68f5d91af74f7d27` extra filename: `-2420485b9e5ef5e1`
INFO rustc_metadata::creader resolving crate `std`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate libc hash: `178cfb48efe0da5e` extra filename: `-544ecdbd6cda3c58`
INFO rustc_metadata::creader resolving crate `libc`
INFO rustc_metadata::creader resolving dep crate unwind hash: `cfa5fee7537cfd40` extra filename: `-f78aa99d613a55bc`
INFO rustc_metadata::creader resolving crate `unwind`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader resolving dep crate hashbrown hash: `e71b24b94468ad0f` extra filename: `-491902d6cb3e76df`
INFO rustc_metadata::creader resolving crate `hashbrown`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate rustc_demangle hash: `6b8c945f97f5e382` extra filename: `-b56b9042c12b6535`
INFO rustc_metadata::creader resolving crate `rustc_demangle`
INFO rustc_metadata::creader resolving dep crate std_detect hash: `f566a1715ceb1f4b` extra filename: `-fb36534c113d2209`
INFO rustc_metadata::creader resolving crate `std_detect`
INFO rustc_metadata::creader resolving dep crate addr2line hash: `bd13ef5deb668abc` extra filename: `-d05c5c3c56004b7b`
INFO rustc_metadata::creader resolving crate `addr2line`
INFO rustc_metadata::creader resolving dep crate gimli hash: `ed21228db7ccc7ea` extra filename: `-42d74d2097528b38`
INFO rustc_metadata::creader resolving crate `gimli`
INFO rustc_metadata::creader resolving dep crate object hash: `81b277dd6cf0c7da` extra filename: `-6fb405869b015fde`
INFO rustc_metadata::creader resolving crate `object`
INFO rustc_metadata::creader resolving dep crate miniz_oxide hash: `e22eaaed84d397da` extra filename: `-087191a88bdaa22d`
INFO rustc_metadata::creader resolving crate `miniz_oxide`
INFO rustc_metadata::creader resolving dep crate adler hash: `41373a60d3397d7b` extra filename: `-9981842c02975178`
INFO rustc_metadata::creader resolving crate `adler`
INFO rustc_metadata::creader resolving dep crate panic_unwind hash: `6cbc4dc959ad7072` extra filename: `-785e3cb61c4b1960`
INFO rustc_metadata::creader resolving crate `panic_unwind`
INFO rustc_metadata::creader resolving dep crate getopts hash: `4d8a3ef3c5a9c3e7` extra filename: `-9749f7c936ebf9a7`
INFO rustc_metadata::creader resolving crate `getopts`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-9749f7c936ebf9a7.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-9749f7c936ebf9a7.rlib
INFO rustc_metadata::creader register crate `getopts` (cnum = 20. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_std hash: `5865550fb1e5b3d1` extra filename: `-16ed15e5bfe21b9b`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_std`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-16ed15e5bfe21b9b.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-16ed15e5bfe21b9b.rlib
INFO rustc_metadata::creader register crate `rustc_std_workspace_std` (cnum = 21. private_dep = false)
INFO rustc_metadata::creader resolving dep crate std hash: `68f5d91af74f7d27` extra filename: `-2420485b9e5ef5e1`
INFO rustc_metadata::creader resolving crate `std`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate libc hash: `178cfb48efe0da5e` extra filename: `-544ecdbd6cda3c58`
INFO rustc_metadata::creader resolving crate `libc`
INFO rustc_metadata::creader resolving dep crate unwind hash: `cfa5fee7537cfd40` extra filename: `-f78aa99d613a55bc`
INFO rustc_metadata::creader resolving crate `unwind`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader resolving dep crate hashbrown hash: `e71b24b94468ad0f` extra filename: `-491902d6cb3e76df`
INFO rustc_metadata::creader resolving crate `hashbrown`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate rustc_demangle hash: `6b8c945f97f5e382` extra filename: `-b56b9042c12b6535`
INFO rustc_metadata::creader resolving crate `rustc_demangle`
INFO rustc_metadata::creader resolving dep crate std_detect hash: `f566a1715ceb1f4b` extra filename: `-fb36534c113d2209`
INFO rustc_metadata::creader resolving crate `std_detect`
INFO rustc_metadata::creader resolving dep crate addr2line hash: `bd13ef5deb668abc` extra filename: `-d05c5c3c56004b7b`
INFO rustc_metadata::creader resolving crate `addr2line`
INFO rustc_metadata::creader resolving dep crate gimli hash: `ed21228db7ccc7ea` extra filename: `-42d74d2097528b38`
INFO rustc_metadata::creader resolving crate `gimli`
INFO rustc_metadata::creader resolving dep crate object hash: `81b277dd6cf0c7da` extra filename: `-6fb405869b015fde`
INFO rustc_metadata::creader resolving crate `object`
INFO rustc_metadata::creader resolving dep crate miniz_oxide hash: `e22eaaed84d397da` extra filename: `-087191a88bdaa22d`
INFO rustc_metadata::creader resolving crate `miniz_oxide`
INFO rustc_metadata::creader resolving dep crate adler hash: `41373a60d3397d7b` extra filename: `-9981842c02975178`
INFO rustc_metadata::creader resolving crate `adler`
INFO rustc_metadata::creader resolving dep crate panic_unwind hash: `6cbc4dc959ad7072` extra filename: `-785e3cb61c4b1960`
INFO rustc_metadata::creader resolving crate `panic_unwind`
INFO rustc_metadata::creader resolving dep crate std hash: `68f5d91af74f7d27` extra filename: `-2420485b9e5ef5e1`
INFO rustc_metadata::creader resolving crate `std`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate libc hash: `178cfb48efe0da5e` extra filename: `-544ecdbd6cda3c58`
INFO rustc_metadata::creader resolving crate `libc`
INFO rustc_metadata::creader resolving dep crate unwind hash: `cfa5fee7537cfd40` extra filename: `-f78aa99d613a55bc`
INFO rustc_metadata::creader resolving crate `unwind`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader resolving dep crate hashbrown hash: `e71b24b94468ad0f` extra filename: `-491902d6cb3e76df`
INFO rustc_metadata::creader resolving crate `hashbrown`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate rustc_demangle hash: `6b8c945f97f5e382` extra filename: `-b56b9042c12b6535`
INFO rustc_metadata::creader resolving crate `rustc_demangle`
INFO rustc_metadata::creader resolving dep crate std_detect hash: `f566a1715ceb1f4b` extra filename: `-fb36534c113d2209`
INFO rustc_metadata::creader resolving crate `std_detect`
INFO rustc_metadata::creader resolving dep crate addr2line hash: `bd13ef5deb668abc` extra filename: `-d05c5c3c56004b7b`
INFO rustc_metadata::creader resolving crate `addr2line`
INFO rustc_metadata::creader resolving dep crate gimli hash: `ed21228db7ccc7ea` extra filename: `-42d74d2097528b38`
INFO rustc_metadata::creader resolving crate `gimli`
INFO rustc_metadata::creader resolving dep crate object hash: `81b277dd6cf0c7da` extra filename: `-6fb405869b015fde`
INFO rustc_metadata::creader resolving crate `object`
INFO rustc_metadata::creader resolving dep crate miniz_oxide hash: `e22eaaed84d397da` extra filename: `-087191a88bdaa22d`
INFO rustc_metadata::creader resolving crate `miniz_oxide`
INFO rustc_metadata::creader resolving dep crate adler hash: `41373a60d3397d7b` extra filename: `-9981842c02975178`
INFO rustc_metadata::creader resolving crate `adler`
INFO rustc_metadata::creader resolving dep crate panic_unwind hash: `6cbc4dc959ad7072` extra filename: `-785e3cb61c4b1960`
INFO rustc_metadata::creader resolving crate `panic_unwind`
INFO rustc_metadata::creader resolving dep crate unicode_width hash: `12f67b682d409b08` extra filename: `-627a220173eefff1`
INFO rustc_metadata::creader resolving crate `unicode_width`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-627a220173eefff1.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-627a220173eefff1.rlib
INFO rustc_metadata::creader register crate `unicode_width` (cnum = 22. private_dep = false)
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_std hash: `5865550fb1e5b3d1` extra filename: `-16ed15e5bfe21b9b`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_std`
INFO rustc_metadata::creader resolving dep crate unicode_width hash: `12f67b682d409b08` extra filename: `-627a220173eefff1`
INFO rustc_metadata::creader resolving crate `unicode_width`
INFO rustc_metadata::creader resolving dep crate term hash: `a1f307c30932ad38` extra filename: `-1d56ea45a67842c8`
INFO rustc_metadata::creader resolving crate `term`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator lib candidate: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libterm-1d56ea45a67842c8.rlib
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libterm-1d56ea45a67842c8.rlib
INFO rustc_metadata::creader register crate `term` (cnum = 23. private_dep = false)
INFO rustc_metadata::creader resolving dep crate std hash: `68f5d91af74f7d27` extra filename: `-2420485b9e5ef5e1`
INFO rustc_metadata::creader resolving crate `std`
INFO rustc_metadata::creader resolving dep crate core hash: `af4884e78e7a0637` extra filename: `-5b228734afae15ee`
INFO rustc_metadata::creader resolving crate `core`
INFO rustc_metadata::creader resolving dep crate compiler_builtins hash: `29ecc9c18bbc6c0d` extra filename: `-d6c7a399d95d173f`
INFO rustc_metadata::creader resolving crate `compiler_builtins`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_core hash: `6872535b7639b874` extra filename: `-8063eea38dcc5e62`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_core`
INFO rustc_metadata::creader resolving dep crate alloc hash: `b3867639f67148a3` extra filename: `-379cc252b6943a79`
INFO rustc_metadata::creader resolving crate `alloc`
INFO rustc_metadata::creader resolving dep crate libc hash: `178cfb48efe0da5e` extra filename: `-544ecdbd6cda3c58`
INFO rustc_metadata::creader resolving crate `libc`
INFO rustc_metadata::creader resolving dep crate unwind hash: `cfa5fee7537cfd40` extra filename: `-f78aa99d613a55bc`
INFO rustc_metadata::creader resolving crate `unwind`
INFO rustc_metadata::creader resolving dep crate cfg_if hash: `ab80ea97421ed331` extra filename: `-53ee54cd7fed2c57`
INFO rustc_metadata::creader resolving crate `cfg_if`
INFO rustc_metadata::creader resolving dep crate hashbrown hash: `e71b24b94468ad0f` extra filename: `-491902d6cb3e76df`
INFO rustc_metadata::creader resolving crate `hashbrown`
INFO rustc_metadata::creader resolving dep crate rustc_std_workspace_alloc hash: `33bdbb9b182718db` extra filename: `-61834e0981b8c367`
INFO rustc_metadata::creader resolving crate `rustc_std_workspace_alloc`
INFO rustc_metadata::creader resolving dep crate rustc_demangle hash: `6b8c945f97f5e382` extra filename: `-b56b9042c12b6535`
INFO rustc_metadata::creader resolving crate `rustc_demangle`
INFO rustc_metadata::creader resolving dep crate std_detect hash: `f566a1715ceb1f4b` extra filename: `-fb36534c113d2209`
INFO rustc_metadata::creader resolving crate `std_detect`
INFO rustc_metadata::creader resolving dep crate addr2line hash: `bd13ef5deb668abc` extra filename: `-d05c5c3c56004b7b`
INFO rustc_metadata::creader resolving crate `addr2line`
INFO rustc_metadata::creader resolving dep crate gimli hash: `ed21228db7ccc7ea` extra filename: `-42d74d2097528b38`
INFO rustc_metadata::creader resolving crate `gimli`
INFO rustc_metadata::creader resolving dep crate object hash: `81b277dd6cf0c7da` extra filename: `-6fb405869b015fde`
INFO rustc_metadata::creader resolving crate `object`
INFO rustc_metadata::creader resolving dep crate miniz_oxide hash: `e22eaaed84d397da` extra filename: `-087191a88bdaa22d`
INFO rustc_metadata::creader resolving crate `miniz_oxide`
INFO rustc_metadata::creader resolving dep crate adler hash: `41373a60d3397d7b` extra filename: `-9981842c02975178`
INFO rustc_metadata::creader resolving crate `adler`
INFO rustc_metadata::creader resolving dep crate panic_unwind hash: `6cbc4dc959ad7072` extra filename: `-785e3cb61c4b1960`
INFO rustc_metadata::creader resolving crate `panic_unwind`
INFO rustc_metadata::creader resolving crate `test`
INFO rustc_metadata::creader resolving crate `llvm_sys`
INFO rustc_metadata::creader falling back to a load
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib
WARN rustc_metadata::locator no metadata found: failed to parse rlib '/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib': Invalid archive extended name offset
INFO rustc_metadata::locator rlib reading metadata from: /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib
WARN rustc_metadata::locator no metadata found: failed to parse rlib '/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib': Invalid archive extended name offset
INFO rustc_metadata::creader resolving crate `core`
error[E0463]: can't find crate for `llvm_sys`
 --> src/lib.rs:1:5
  |
1 | use llvm_sys::prelude::*;
  |     ^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `prob_llvm_sys`

To learn more, run the command again with --verbose.

Running cargo clean -p llvm-sys and cargo test -vv. I am unable to understand the output so I cant really check weather it is emitting correct value

cargo test -vv
       Fresh ucd-trie v0.1.3
       Fresh regex-syntax v0.6.25
       Fresh lazy_static v1.4.0
       Fresh cc v1.0.69
       Fresh pest v2.1.3
       Fresh memchr v2.4.1
       Fresh semver-parser v0.10.2
       Fresh aho-corasick v0.7.18
       Fresh semver v0.11.0
       Fresh libc v0.2.100
       Fresh regex v1.5.4
   Compiling llvm-sys v120.2.0
     Running `CARGO=/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/home/nivekithan/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-sys-120.2.0 CARGO_PKG_AUTHORS='Peter Marheine <peter@taricorp.net>' CARGO_PKG_DESCRIPTION='Bindings to LLVM'\''s C API' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=llvm-sys CARGO_PKG_REPOSITORY='https://gitlab.com/taricorp/llvm-sys.rs' CARGO_PKG_VERSION=120.2.0 CARGO_PKG_VERSION_MAJOR=120 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' rustc --crate-name build_script_build /home/nivekithan/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-sys-120.2.0/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b14485c1cbf63b4d -C extra-filename=-b14485c1cbf63b4d --out-dir /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-b14485c1cbf63b4d -L dependency=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps --extern cc=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libcc-33cd88796349dde9.rlib --extern lazy_static=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/liblazy_static-5c53d641eb010a81.rlib --extern regex=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libregex-25cd0adfc45342b4.rlib --extern semver=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libsemver-9656f20582f8c782.rlib --cap-lints warn`
     Running `/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-b14485c1cbf63b4d/build-script-build`
[llvm-sys 120.2.0] cargo:rerun-if-env-changed=LLVM_SYS_120_PREFIX
[llvm-sys 120.2.0] cargo:rerun-if-env-changed=LLVM_SYS_120_IGNORE_BLOCKLIST
[llvm-sys 120.2.0] cargo:rerun-if-env-changed=LLVM_SYS_120_STRICT_VERSIONING
[llvm-sys 120.2.0] cargo:rerun-if-env-changed=LLVM_SYS_120_NO_CLEAN_CFLAGS
[llvm-sys 120.2.0] cargo:rerun-if-env-changed=LLVM_SYS_120_USE_DEBUG_MSVCRT
[llvm-sys 120.2.0] cargo:rerun-if-env-changed=LLVM_SYS_120_FFI_WORKAROUND
[llvm-sys 120.2.0] TARGET = Some("x86_64-unknown-linux-gnu")
[llvm-sys 120.2.0] OPT_LEVEL = Some("0")
[llvm-sys 120.2.0] HOST = Some("x86_64-unknown-linux-gnu")
[llvm-sys 120.2.0] CC_x86_64-unknown-linux-gnu = None
[llvm-sys 120.2.0] CC_x86_64_unknown_linux_gnu = None
[llvm-sys 120.2.0] HOST_CC = None
[llvm-sys 120.2.0] CC = None
[llvm-sys 120.2.0] CFLAGS_x86_64-unknown-linux-gnu = None
[llvm-sys 120.2.0] CFLAGS_x86_64_unknown_linux_gnu = None
[llvm-sys 120.2.0] HOST_CFLAGS = None
[llvm-sys 120.2.0] CFLAGS = Some("-I/home/nivekithan/dep/llvm/binary/include  -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS ")
[llvm-sys 120.2.0] CRATE_CC_NO_DEFAULTS = None
[llvm-sys 120.2.0] DEBUG = Some("true")
[llvm-sys 120.2.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[llvm-sys 120.2.0] running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I/home/nivekithan/dep/llvm/binary/include" "-D_GNU_SOURCE" "-D_DEBUG" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-o" "/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out/wrappers/target.o" "-c" "wrappers/target.c"
[llvm-sys 120.2.0] exit status: 0
[llvm-sys 120.2.0] AR_x86_64-unknown-linux-gnu = None
[llvm-sys 120.2.0] AR_x86_64_unknown_linux_gnu = None
[llvm-sys 120.2.0] HOST_AR = None
[llvm-sys 120.2.0] AR = None
[llvm-sys 120.2.0] running: "ar" "cq" "/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out/libtargetwrappers.a" "/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out/wrappers/target.o"
[llvm-sys 120.2.0] exit status: 0
[llvm-sys 120.2.0] running: "ar" "s" "/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out/libtargetwrappers.a"
[llvm-sys 120.2.0] exit status: 0
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=targetwrappers
[llvm-sys 120.2.0] cargo:rustc-link-search=native=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out
[llvm-sys 120.2.0] cargo:config_path=/home/nivekithan/dep/llvm/binary/bin/llvm-config
[llvm-sys 120.2.0] cargo:libdir=/home/nivekithan/dep/llvm/binary/lib
[llvm-sys 120.2.0]
[llvm-sys 120.2.0] cargo:rustc-link-search=native=/home/nivekithan/dep/llvm/binary/lib
[llvm-sys 120.2.0]
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMWindowsManifest
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMXRay
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLibDriver
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDlltoolDriver
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMCoverage
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLineEditor
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMXCoreDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMXCoreCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMXCoreDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMXCoreInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMX86Disassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMX86AsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMX86CodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMX86Desc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMX86Info
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMWebAssemblyDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMWebAssemblyAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMWebAssemblyCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMWebAssemblyDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMWebAssemblyInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSystemZDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSystemZAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSystemZCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSystemZDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSystemZInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSparcDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSparcAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSparcCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSparcDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSparcInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMRISCVDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMRISCVAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMRISCVCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMRISCVDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMRISCVInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMPowerPCDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMPowerPCAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMPowerPCCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMPowerPCDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMPowerPCInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMNVPTXCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMNVPTXDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMNVPTXInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMSP430Disassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMSP430AsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMSP430CodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMSP430Desc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMSP430Info
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMipsDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMipsAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMipsCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMipsDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMipsInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLanaiDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLanaiCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLanaiAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLanaiDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLanaiInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMHexagonDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMHexagonCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMHexagonAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMHexagonDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMHexagonInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBPFDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBPFAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBPFCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBPFDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBPFInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAVRDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAVRAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAVRCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAVRDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAVRInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMARMDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMARMAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMARMCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMARMDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMARMUtils
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMARMInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAMDGPUDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAMDGPUAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAMDGPUCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAMDGPUDesc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAMDGPUUtils
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAMDGPUInfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAArch64Disassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAArch64AsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAArch64CodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAArch64Desc
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAArch64Utils
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAArch64Info
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMOrcJIT
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMCJIT
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMJITLink
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMOrcTargetProcess
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMOrcShared
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMInterpreter
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMExecutionEngine
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMRuntimeDyld
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSymbolize
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDebugInfoPDB
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDebugInfoGSYM
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMOption
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMObjectYAML
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMCA
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMCDisassembler
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLTO
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMPasses
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMCFGuard
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMCoroutines
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMObjCARCOpts
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMHelloNew
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMipo
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMVectorize
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMLinker
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMInstrumentation
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMFrontendOpenMP
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMFrontendOpenACC
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMExtensions
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDWARFLinker
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMGlobalISel
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMIRParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAsmPrinter
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDebugInfoDWARF
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSelectionDAG
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMCodeGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMIRReader
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAsmParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMInterfaceStub
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMFileCheck
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMFuzzMutate
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMTarget
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMScalarOpts
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMInstCombine
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAggressiveInstCombine
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMTransformUtils
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBitWriter
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMAnalysis
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMProfileData
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMObject
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMTextAPI
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMCParser
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMMC
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDebugInfoCodeView
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDebugInfoMSF
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBitReader
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMCore
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMRemarks
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBitstreamReader
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMBinaryFormat
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMTableGen
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMSupport
[llvm-sys 120.2.0] cargo:rustc-link-lib=static=LLVMDemangle
[llvm-sys 120.2.0] cargo:rustc-link-lib=dylib=rt
[llvm-sys 120.2.0] cargo:rustc-link-lib=dylib=dl
[llvm-sys 120.2.0] cargo:rustc-link-lib=dylib=pthread
[llvm-sys 120.2.0] cargo:rustc-link-lib=dylib=m
[llvm-sys 120.2.0] cargo:rustc-link-lib=dylib=tinfo
[llvm-sys 120.2.0] cargo:rustc-link-lib=dylib=stdc++
     Running `CARGO=/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=llvm_sys CARGO_MANIFEST_DIR=/home/nivekithan/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-sys-120.2.0 CARGO_PKG_AUTHORS='Peter Marheine <peter@taricorp.net>' CARGO_PKG_DESCRIPTION='Bindings to LLVM'\''s C API' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=llvm-sys CARGO_PKG_REPOSITORY='https://gitlab.com/taricorp/llvm-sys.rs' CARGO_PKG_VERSION=120.2.0 CARGO_PKG_VERSION_MAJOR=120 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' OUT_DIR=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out rustc --crate-name llvm_sys /home/nivekithan/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-sys-120.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=609303481c4ac12b -C extra-filename=-609303481c4ac12b --out-dir /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps -L dependency=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps --extern libc=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/liblibc-10c412f632cc21e9.rmeta --cap-lints warn -L native=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out -L native=/home/nivekithan/dep/llvm/binary/lib -l static=targetwrappers -l static=LLVMWindowsManifest -l static=LLVMXRay -l static=LLVMLibDriver -l static=LLVMDlltoolDriver -l static=LLVMCoverage -l static=LLVMLineEditor -l static=LLVMXCoreDisassembler -l static=LLVMXCoreCodeGen -l static=LLVMXCoreDesc -l static=LLVMXCoreInfo -l static=LLVMX86Disassembler -l static=LLVMX86AsmParser -l static=LLVMX86CodeGen -l static=LLVMX86Desc -l static=LLVMX86Info -l static=LLVMWebAssemblyDisassembler -l static=LLVMWebAssemblyAsmParser -l static=LLVMWebAssemblyCodeGen -l static=LLVMWebAssemblyDesc -l static=LLVMWebAssemblyInfo -l static=LLVMSystemZDisassembler -l static=LLVMSystemZAsmParser -l static=LLVMSystemZCodeGen -l static=LLVMSystemZDesc -l static=LLVMSystemZInfo -l static=LLVMSparcDisassembler -l static=LLVMSparcAsmParser -l static=LLVMSparcCodeGen -l static=LLVMSparcDesc -l static=LLVMSparcInfo -l static=LLVMRISCVDisassembler -l static=LLVMRISCVAsmParser -l static=LLVMRISCVCodeGen -l static=LLVMRISCVDesc -l static=LLVMRISCVInfo -l static=LLVMPowerPCDisassembler -l static=LLVMPowerPCAsmParser -l static=LLVMPowerPCCodeGen -l static=LLVMPowerPCDesc -l static=LLVMPowerPCInfo -l static=LLVMNVPTXCodeGen -l static=LLVMNVPTXDesc -l static=LLVMNVPTXInfo -l static=LLVMMSP430Disassembler -l static=LLVMMSP430AsmParser -l static=LLVMMSP430CodeGen -l static=LLVMMSP430Desc -l static=LLVMMSP430Info -l static=LLVMMipsDisassembler -l static=LLVMMipsAsmParser -l static=LLVMMipsCodeGen -l static=LLVMMipsDesc -l static=LLVMMipsInfo -l static=LLVMLanaiDisassembler -l static=LLVMLanaiCodeGen -l static=LLVMLanaiAsmParser -l static=LLVMLanaiDesc -l static=LLVMLanaiInfo -l static=LLVMHexagonDisassembler -l static=LLVMHexagonCodeGen -l static=LLVMHexagonAsmParser -l static=LLVMHexagonDesc -l static=LLVMHexagonInfo -l static=LLVMBPFDisassembler -l static=LLVMBPFAsmParser -l static=LLVMBPFCodeGen -l static=LLVMBPFDesc -l static=LLVMBPFInfo -l static=LLVMAVRDisassembler -l static=LLVMAVRAsmParser -l static=LLVMAVRCodeGen -l static=LLVMAVRDesc -l static=LLVMAVRInfo -l static=LLVMARMDisassembler -l static=LLVMARMAsmParser -l static=LLVMARMCodeGen -l static=LLVMARMDesc -l static=LLVMARMUtils -l static=LLVMARMInfo -l static=LLVMAMDGPUDisassembler -l static=LLVMAMDGPUAsmParser -l static=LLVMAMDGPUCodeGen -l static=LLVMAMDGPUDesc -l static=LLVMAMDGPUUtils -l static=LLVMAMDGPUInfo -l static=LLVMAArch64Disassembler -l static=LLVMAArch64AsmParser -l static=LLVMAArch64CodeGen -l static=LLVMAArch64Desc -l static=LLVMAArch64Utils -l static=LLVMAArch64Info -l static=LLVMOrcJIT -l static=LLVMMCJIT -l static=LLVMJITLink -l static=LLVMOrcTargetProcess -l static=LLVMOrcShared -l static=LLVMInterpreter -l static=LLVMExecutionEngine -l static=LLVMRuntimeDyld -l static=LLVMSymbolize -l static=LLVMDebugInfoPDB -l static=LLVMDebugInfoGSYM -l static=LLVMOption -l static=LLVMObjectYAML -l static=LLVMMCA -l static=LLVMMCDisassembler -l static=LLVMLTO -l static=LLVMPasses -l static=LLVMCFGuard -l static=LLVMCoroutines -l static=LLVMObjCARCOpts -l static=LLVMHelloNew -l static=LLVMipo -l static=LLVMVectorize -l static=LLVMLinker -l static=LLVMInstrumentation -l static=LLVMFrontendOpenMP -l static=LLVMFrontendOpenACC -l static=LLVMExtensions -l static=LLVMDWARFLinker -l static=LLVMGlobalISel -l static=LLVMMIRParser -l static=LLVMAsmPrinter -l static=LLVMDebugInfoDWARF -l static=LLVMSelectionDAG -l static=LLVMCodeGen -l static=LLVMIRReader -l static=LLVMAsmParser -l static=LLVMInterfaceStub -l static=LLVMFileCheck -l static=LLVMFuzzMutate -l static=LLVMTarget -l static=LLVMScalarOpts -l static=LLVMInstCombine -l static=LLVMAggressiveInstCombine -l static=LLVMTransformUtils -l static=LLVMBitWriter -l static=LLVMAnalysis -l static=LLVMProfileData -l static=LLVMObject -l static=LLVMTextAPI -l static=LLVMMCParser -l static=LLVMMC -l static=LLVMDebugInfoCodeView -l static=LLVMDebugInfoMSF -l static=LLVMBitReader -l static=LLVMCore -l static=LLVMRemarks -l static=LLVMBitstreamReader -l static=LLVMBinaryFormat -l static=LLVMTableGen -l static=LLVMSupport -l static=LLVMDemangle -l dylib=rt -l dylib=dl -l dylib=pthread -l dylib=m -l dylib=tinfo -l dylib=stdc++`
   Compiling prob_llvm_sys v0.1.0 (/home/nivekithan/temp/rust_llvm_sys_prob)
     Running `CARGO=/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=prob_llvm_sys CARGO_MANIFEST_DIR=/home/nivekithan/temp/rust_llvm_sys_prob CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=prob_llvm_sys CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' rustc --crate-name prob_llvm_sys --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=452de305cff0dc73 -C extra-filename=-452de305cff0dc73 --out-dir /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps -C incremental=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/incremental -L dependency=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps --extern llvm_sys=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rmeta -L native=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out -L native=/home/nivekithan/dep/llvm/binary/lib`
     Running `CARGO=/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=prob_llvm_sys CARGO_MANIFEST_DIR=/home/nivekithan/temp/rust_llvm_sys_prob CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=prob_llvm_sys CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' rustc --crate-name prob_llvm_sys --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=7af2b1f9b764f802 -C extra-filename=-7af2b1f9b764f802 --out-dir /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps -C incremental=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/incremental -L dependency=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps --extern llvm_sys=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib -L native=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out -L native=/home/nivekithan/dep/llvm/binary/lib`
error[E0463]: can't find crate for `llvm_sys`
 --> src/lib.rs:1:5
  |
1 | use llvm_sys::prelude::*;
  |     ^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `prob_llvm_sys`

Caused by:
  process didn't exit successfully: `CARGO=/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=prob_llvm_sys CARGO_MANIFEST_DIR=/home/nivekithan/temp/rust_llvm_sys_prob CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=prob_llvm_sys CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/nivekithan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' rustc --crate-name prob_llvm_sys --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=7af2b1f9b764f802 -C extra-filename=-7af2b1f9b764f802 --out-dir /home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps -C incremental=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/incremental -L dependency=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps --extern llvm_sys=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/deps/libllvm_sys-609303481c4ac12b.rlib -L native=/home/nivekithan/temp/rust_llvm_sys_prob/target/debug/build/llvm-sys-ca4cab83bdad502f/out -L native=/home/nivekithan/dep/llvm/binary/lib` (exit status: 1)

What OS are you running?

I am running Ubuntu 20.04.3 using WSL2 on windows

cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
nivekithan commented 3 years ago

There is also another issue which seems to be similar to my case #6659 but I am not really sure

Also I dont really know what this statement means

You can add rlib (or lib) to the crate-type list
ehuss commented 3 years ago

The error message is Invalid archive extended name offset when reading the llvm-sys .rlib file. I haven't seen that before, and I'm having a hard time imagining how the archive could be corrupted. If you want, you can try to compress the file target/debug/deps/libllvm_sys-609303481c4ac12b.rlib and attach it here or upload it somewhere, and I can try to unpack it and see if anything obvious pops up.

nivekithan commented 3 years ago

I compressed the file with xz and uploaded it to google drive

https://drive.google.com/file/d/1BCrnTyh1598lXO9TZjum-Lrh3TNZ0671/view?usp=sharing

Edit : I deleted the file so the link wont work anymore

nivekithan commented 3 years ago

I tried reinstalling rust, rebuilding llvm none of it worked for me.

Only after reinstalling Ubuntu , rust and rebuilding llvm it finally worked for me .

I will be closing the issue and let me know if you need the .rlib file I uploaded earlier, If you dont need that I will have to delete that from google drive

ehuss commented 3 years ago

Oh my, that rlib is quite large! My best guess is that somehow your LLVM was being built with debug symbols, as it usually shouldn't be quite so large. I dug in a little, and discovered the issue was in rustc's archive reader, and have filed an issue at https://github.com/rust-lang/rust/issues/88351. You can delete the file from your drive if you want.