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

kani fails to compile a crate but cargo can build it #3817

Open
lrobidou opened this issue Jan 8, 2025 · 5 comments
Open

kani fails to compile a crate but cargo can build it #3817

lrobidou opened this issue Jan 8, 2025 · 5 comments
Labels
[C] Bug This is a bug. Something isn't working. T-User Tag user issues / requests

Comments

@lrobidou
Copy link

lrobidou commented Jan 8, 2025

I would like to use kani, but it fails to build one of my dependencies (needletail), even though cargo build runs fine.
Step to reproduce:

git clone https://github.com/onecodex/needletail
cd needletail
cargo build  # OK

However, kani fails to build:

cargo kani
# Kani Rust Verifier 0.57.0 (cargo plugin)
# [...]
# error: linking with `cc` failed: exit status: 1
#  = note: rust-lld: error: version script assignment of 'global' to symbol 'bz_internal_error' failed: symbol not defined
          collect2: error: ld returned 1 exit
# error: could not compile `needletail` (lib) due to 1 previous error
# error: Failed to execute cargo (exit status: 101). Found 1 compilation errors.

Note: when I remove bzip2 from the dependencies of needletail, kani works fine, but I don't need to do it for cargo build.

Is there a difference in linking between cargo build and cargo kani?

@lrobidou lrobidou added the [C] Bug This is a bug. Something isn't working. label Jan 8, 2025
@lrobidou lrobidou changed the title kani fail to compile a crate cargo builds fine kani fails to compile a crate but cargo can build it Jan 8, 2025
@carolynzech
Copy link
Contributor

Hi @lrobidou,
I can't reproduce this error on my machine (ARM64 Mac):

cmzech@80a9971b5e20 ~ % git clone https://github.com/onecodex/needletail
Cloning into 'needletail'...
remote: Enumerating objects: 1076, done.
remote: Counting objects: 100% (171/171), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 1076 (delta 107), reused 84 (delta 79), pack-reused 905 (from 1)
Receiving objects: 100% (1076/1076), 652.41 KiB | 11.65 MiB/s, done.
Resolving deltas: 100% (600/600), done.
cmzech@80a9971b5e20 ~ % cd needletail 
cmzech@80a9971b5e20 needletail % cargo build
    Updating crates.io index
     Locking 193 packages to latest compatible versions
      Adding bio v1.6.0 (available: v2.0.3)
      Adding bzip2 v0.4.4 (available: v0.5.0)
      Adding pyo3 v0.21.2 (available: v0.23.3)
   Compiling libc v0.2.169
   Compiling shlex v1.3.0
   Compiling pkg-config v0.3.31
   Compiling zstd-safe v7.2.1
   Compiling adler2 v2.0.0
   Compiling cfg-if v1.0.0
   Compiling memchr v2.7.4
   Compiling bytecount v0.6.8
   Compiling crc32fast v1.4.2
   Compiling miniz_oxide v0.8.2
   Compiling buffer-redux v1.0.2
   Compiling flate2 v1.0.35
   Compiling jobserver v0.1.32
   Compiling cc v1.2.7
   Compiling zstd-sys v2.0.13+zstd.1.5.6
   Compiling liblzma-sys v0.3.11
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling bzip2 v0.4.4
   Compiling liblzma v0.3.5
   Compiling zstd v0.13.2
   Compiling needletail v0.6.1 (/Users/cmzech/needletail)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.46s
cmzech@80a9971b5e20 needletail % cargo kani
Kani Rust Verifier 0.57.0 (cargo plugin)
   Compiling libc v0.2.169
   Compiling shlex v1.3.0
   Compiling pkg-config v0.3.31
   Compiling zstd-safe v7.2.1
   Compiling adler2 v2.0.0
   Compiling cfg-if v1.0.0
   Compiling memchr v2.7.4
   Compiling bytecount v0.6.8
   Compiling crc32fast v1.4.2
   Compiling miniz_oxide v0.8.2
   Compiling buffer-redux v1.0.2
   Compiling flate2 v1.0.35
   Compiling jobserver v0.1.32
   Compiling cc v1.2.7
   Compiling zstd-sys v2.0.13+zstd.1.5.6
   Compiling liblzma-sys v0.3.11
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling bzip2 v0.4.4
   Compiling liblzma v0.3.5
   Compiling zstd v0.13.2
   Compiling needletail v0.6.1 (/Users/cmzech/needletail)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.66s
No proof harnesses (functions with #[kani::proof]) were found to verify.
cmzech@80a9971b5e20 needletail % 

Would you mind sharing:

  • Your setup (what OS/architecture you're running on)
  • The result of running cargo kani --debug

so we can try to dig into this problem? Thanks!

@carolynzech carolynzech added the T-User Tag user issues / requests label Jan 9, 2025
@lrobidou
Copy link
Author

lrobidou commented Jan 10, 2025

Hi @carolynzech,
I am using amd64/Debian 12. I reproduced the bug with a Debian virtual machine (after installing packages git curl build-essential).
I installed kani with:

cargo install --locked kani-verifier
cargo kani setup

Here is the output of cargo kani --debug on my (non virtual) machine. Do you need any other information?

Kani Rust Verifier 0.57.0 (cargo plugin)
2025-01-10T09:10:11.608742Z DEBUG kani_driver::call_cargo: packages_to_verify args package_selection=[] package_exclusion=[] workspace=false
2025-01-10T09:10:11.608756Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="needletail" kind=[CDyLib, RLib] crate_type=[CDyLib, RLib]
2025-01-10T09:10:11.608761Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="stdin_pipe" kind=[Example] crate_type=[Bin]
2025-01-10T09:10:11.608763Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="format_specimens" kind=[Test] crate_type=[Bin]
2025-01-10T09:10:11.608765Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="test_compressed" kind=[Test] crate_type=[Bin]
2025-01-10T09:10:11.608767Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="test_stdin" kind=[Test] crate_type=[Bin]
2025-01-10T09:10:11.608768Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="benchmark" kind=[Bench] crate_type=[Bin]
Skipped the following test targets: 'format_specimens', 'test_compressed', 'test_stdin'.
    -> Use '--tests' to verify harnesses inside a 'test' crate.
Skipped verification of the following unsupported targets: 'stdin_pipe', 'benchmark'.
[Kani] Running: `CARGO_ENCODED_RUSTFLAGS="-Coverflow-checks=on-Zunstable-options-Ztrim-diagnostic-paths=no-Zhuman_readable_cgu_names-Zalways-encode-mir--cfg=kani-Zcrate-attr=feature(register_tool)-Zcrate-attr=register_tool(kanitool)--sysroot/home/lrobidou/.kani/kani-0.57.0-L/home/lrobidou/.kani/kani-0.57.0/lib--externkani--externnoprelude:std=/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib-Cpanic=abort-Csymbol-mangling-version=v0-Zpanic_abort_tests=yes-Zmir-enable-passes=-RemoveStorageMarkers--check-cfg=cfg(kani)--kani-compiler-Cllvm-args=--check-version=0.57.0 --log-level=debug --assertion-reach-checks" CARGO_TERM_PROGRESS_WHEN="never" RUSTC="/home/lrobidou/.kani/kani-0.57.0/bin/kani-compiler" /home/lrobidou/.kani/kani-0.57.0/toolchain/bin/cargo rustc --target x86_64-unknown-linux-gnu -Zhost-config -Ztarget-applies-to-host --config=host.rustflags=["--cfg=kani_host"] --target-dir /home/lrobidou/Documents/needletail/target/kani --message-format json-diagnostic-rendered-ansi -v -p path+file:///home/lrobidou/Documents/needletail#0.6.1 --lib -- -Cllvm-args=--reachability=harnesses`
       Fresh jobserver v0.1.32
       Fresh shlex v1.3.0
       Fresh cc v1.2.7
       Fresh pkg-config v0.3.31
       Fresh libc v0.2.169
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/liblibc-d1c61429ba3f4f30.rlib"
       Fresh zstd-sys v2.0.13+zstd.1.5.6
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_sys-9f924567fce6184b.rlib"
       Fresh adler2 v2.0.0
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libadler2-cb22019072e7c439.rlib"
       Fresh cfg-if v1.0.0
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcfg_if-181dde3da22bfac8.rlib"
       Fresh miniz_oxide v0.8.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libminiz_oxide-1a041dcadce55b49.rlib"
       Fresh bzip2-sys v0.1.11+1.0.8
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2_sys-ce23cb44da98297e.rlib"
       Fresh crc32fast v1.4.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcrc32fast-ef8def920a2f839e.rlib"
       Fresh zstd-safe v7.2.1
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_safe-b024a7887f9ab28a.rlib"
       Fresh liblzma-sys v0.3.11
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma_sys-c180c694e427ca62.rlib"
       Fresh memchr v2.7.4
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-1df6418796d90927.rlib"
       Fresh bytecount v0.6.8
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-68dfcab22851b95b.rlib"
       Fresh flate2 v1.0.35
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-fb11999c1a5b09bd.rlib"
       Fresh buffer-redux v1.0.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-7b4c530c02a6a1d5.rlib"
       Fresh zstd v0.13.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-d4af044339cab2c4.rlib"
       Fresh bzip2 v0.4.4
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-8dea9fe18d25e2b3.rlib"
       Fresh liblzma v0.3.5
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-53c7c9da0626f27c.rlib"
   Compiling needletail v0.6.1 (/home/lrobidou/Documents/needletail)
     Running `/home/lrobidou/.kani/kani-0.57.0/bin/kani-compiler --crate-name needletail --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=238 --crate-type cdylib --crate-type rlib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="bzip2"' --cfg 'feature="compression"' --cfg 'feature="default"' --cfg 'feature="flate2"' --cfg 'feature="liblzma"' --cfg 'feature="xz2"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bzip2", "compression", "default", "flate2", "liblzma", "pyo3", "python", "python_test", "xz2", "zstd"))' -C metadata=8124dbd093344b72 --out-dir /home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/lrobidou/Documents/needletail/target/kani/debug/deps --extern buffer_redux=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-7b4c530c02a6a1d5.rlib --extern bytecount=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-68dfcab22851b95b.rlib --extern bzip2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-8dea9fe18d25e2b3.rlib --extern flate2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-fb11999c1a5b09bd.rlib --extern liblzma=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-53c7c9da0626f27c.rlib --extern memchr=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-1df6418796d90927.rlib --extern zstd=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-d4af044339cab2c4.rlib -Cllvm-args=--reachability=harnesses -C overflow-checks=on -Z unstable-options -Z trim-diagnostic-paths=no -Z human_readable_cgu_names -Z always-encode-mir --cfg=kani -Z 'crate-attr=feature(register_tool)' -Z 'crate-attr=register_tool(kanitool)' --sysroot /home/lrobidou/.kani/kani-0.57.0 -L /home/lrobidou/.kani/kani-0.57.0/lib --extern kani --extern 'noprelude:std=/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib' -C panic=abort -C symbol-mangling-version=v0 -Z panic_abort_tests=yes -Z mir-enable-passes=-RemoveStorageMarkers '--check-cfg=cfg(kani)' --kani-compiler '-Cllvm-args=--check-version=0.57.0 --log-level=debug --assertion-reach-checks' -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-b726842da2f7dd95/out/lib -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/liblzma-sys-7733c1c74cb39892/out -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/zstd-sys-1e32c7efbbb876af/out`
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: Harnesses, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::kani_middle::kani_functions find_kani_functions, kani=[Crate { id: 20, name: "kani", is_local: false }]
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Assume), fn_def=FnDef(DefId { id: 56, name: "kani::assume" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Assert), fn_def=FnDef(DefId { id: 57, name: "kani::assert" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Cover), fn_def=FnDef(DefId { id: 58, name: "kani::cover" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(Any), fn_def=FnDef(DefId { id: 59, name: "kani::any" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(AnyModifies), fn_def=FnDef(DefId { id: 60, name: "kani::any_modifies" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(AnyRaw), fn_def=FnDef(DefId { id: 61, name: "kani::any_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Panic), fn_def=FnDef(DefId { id: 62, name: "kani::panic" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(SafetyCheck), fn_def=FnDef(DefId { id: 64, name: "kani::safety_check" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(UnsupportedCheck), fn_def=FnDef(DefId { id: 65, name: "kani::unsupported" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(UntrackedDeref), fn_def=FnDef(DefId { id: 66, name: "kani::internal::untracked_deref" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(InitContracts), fn_def=FnDef(DefId { id: 67, name: "kani::internal::init_contracts" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(WriteAny), fn_def=FnDef(DefId { id: 68, name: "kani::internal::write_any" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(WriteAnySlice), fn_def=FnDef(DefId { id: 69, name: "kani::internal::write_any_slice" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(WriteAnySlim), fn_def=FnDef(DefId { id: 70, name: "kani::internal::write_any_slim" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(WriteAnyStr), fn_def=FnDef(DefId { id: 71, name: "kani::internal::write_any_str" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(RunContract), fn_def=FnDef(DefId { id: 72, name: "kani::internal::run_contract_fn" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(RunLoopContract), fn_def=FnDef(DefId { id: 73, name: "kani::internal::run_loop_contract_fn" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Check), fn_def=FnDef(DefId { id: 74, name: "kani::internal::check" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SizeOfVal), fn_def=FnDef(DefId { id: 153, name: "kani::rustc_intrinsics::size_of_val_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(AlignOfVal), fn_def=FnDef(DefId { id: 154, name: "kani::rustc_intrinsics::align_of_val_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(Offset), fn_def=FnDef(DefId { id: 155, name: "kani::rustc_intrinsics::offset" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SizeOfDynObject), fn_def=FnDef(DefId { id: 156, name: "kani::mem_models::size_of_dyn_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(AlignOfDynObject), fn_def=FnDef(DefId { id: 157, name: "kani::mem_models::align_of_dyn_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SizeOfSliceObject), fn_def=FnDef(DefId { id: 158, name: "kani::mem_models::size_of_slice_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(FloatToIntInRange), fn_def=FnDef(DefId { id: 159, name: "kani::float::float_to_int_in_range" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(CheckedSizeOf), fn_def=FnDef(DefId { id: 170, name: "kani::mem::checked_size_of_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(CheckedAlignOf), fn_def=FnDef(DefId { id: 171, name: "kani::mem::checked_align_of_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(IsAllocated), fn_def=FnDef(DefId { id: 172, name: "kani::mem::is_allocated" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(ValidValue), fn_def=FnDef(DefId { id: 173, name: "kani::mem::has_valid_value" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(IsInitialized), fn_def=FnDef(DefId { id: 174, name: "kani::mem::is_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(PointerObject), fn_def=FnDef(DefId { id: 175, name: "kani::mem::pointer_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(PointerOffset), fn_def=FnDef(DefId { id: 176, name: "kani::mem::pointer_offset" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(InitializeMemoryInitializationState), fn_def=FnDef(DefId { id: 184, name: "kani::mem_init::initialize_memory_initialization_state" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsPtrInitialized), fn_def=FnDef(DefId { id: 185, name: "kani::mem_init::is_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetPtrInitialized), fn_def=FnDef(DefId { id: 186, name: "kani::mem_init::set_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsSliceChunkPtrInitialized), fn_def=FnDef(DefId { id: 187, name: "kani::mem_init::is_slice_chunk_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetSliceChunkPtrInitialized), fn_def=FnDef(DefId { id: 188, name: "kani::mem_init::set_slice_chunk_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsSlicePtrInitialized), fn_def=FnDef(DefId { id: 189, name: "kani::mem_init::is_slice_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetSlicePtrInitialized), fn_def=FnDef(DefId { id: 190, name: "kani::mem_init::set_slice_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsStrPtrInitialized), fn_def=FnDef(DefId { id: 191, name: "kani::mem_init::is_str_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetStrPtrInitialized), fn_def=FnDef(DefId { id: 192, name: "kani::mem_init::set_str_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(CopyInitState), fn_def=FnDef(DefId { id: 193, name: "kani::mem_init::copy_init_state" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(CopyInitStateSingle), fn_def=FnDef(DefId { id: 194, name: "kani::mem_init::copy_init_state_single" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(StoreArgument), fn_def=FnDef(DefId { id: 196, name: "kani::mem_init::store_argument" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(LoadArgument), fn_def=FnDef(DefId { id: 197, name: "kani::mem_init::load_argument" })
DEBUG kani_compiler::kani_middle::codegen_units CodegenUnits::new, units=[]
DEBUG kani_compiler::kani_middle::codegen_units store_metadata, filename="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/needletail.kani-metadata.json"
====== Reachability Analysis Result =======
Total # items: 0
Total # statements: 0
Total # expressions: 0

Reachable Items:

Statements:

Expressions:

-------------------------------------------
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.kani/kani-0.57.0/bin:/home/lrobidou/.kani/kani-0.57.0/pyroot/bin:/home/lrobidou/miniforge3/bin:/home/lrobidou/miniforge3/condabin:/home/lrobidou/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/lrobidou/.local/bin:/home/lrobidou/.local/bin" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustc5FnIWT/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustc5FnIWT/symbols.o" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-68dfcab22851b95b.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-7b4c530c02a6a1d5.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-1df6418796d90927.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-d4af044339cab2c4.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_safe-b024a7887f9ab28a.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_sys-9f924567fce6184b.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-53c7c9da0626f27c.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma_sys-c180c694e427ca62.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-fb11999c1a5b09bd.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libminiz_oxide-1a041dcadce55b49.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libadler2-cb22019072e7c439.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcrc32fast-ef8def920a2f839e.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcfg_if-181dde3da22bfac8.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-8dea9fe18d25e2b3.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2_sys-ce23cb44da98297e.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/liblibc-d1c61429ba3f4f30.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libkani.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libkani_core-1876bed1a87ffb66.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-36083ba37d5b6573.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_abort-b4321261d93a754a.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-2c81376a68fbbddd.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-b1fd1a83f089ace4.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-9da743847cda0f38.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-8acd7564d16aebe8.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-3777c8ef8024f93f.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-bad968be82b8ebec.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-a4659070f5b4f9bb.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6dfdf0a13a372e08.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-d312f2970ac94c6e.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-dba7c3b225206d97.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-662cd2ca1326d643.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-c1872ccfba8ed699.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f3716bc06e23ec43.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-0a47f69e5c37dd51.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f97e2f45280f712d.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8097e946b385dc38.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-c2c57d6302607876.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/lrobidou/.kani/kani-0.57.0/lib" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-b726842da2f7dd95/out/lib" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/liblzma-sys-7733c1c74cb39892/out" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/zstd-sys-1e32c7efbbb876af/out" "-L" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libneedletail.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: rust-lld: error: version script assignment of 'global' to symbol 'bz_internal_error' failed: symbol not defined
          collect2: error: ld returned 1 exit status
          

error: could not compile `needletail` (lib) due to 1 previous error

Caused by:
  process didn't exit successfully: `/home/lrobidou/.kani/kani-0.57.0/bin/kani-compiler --crate-name needletail --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=238 --crate-type cdylib --crate-type rlib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="bzip2"' --cfg 'feature="compression"' --cfg 'feature="default"' --cfg 'feature="flate2"' --cfg 'feature="liblzma"' --cfg 'feature="xz2"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bzip2", "compression", "default", "flate2", "liblzma", "pyo3", "python", "python_test", "xz2", "zstd"))' -C metadata=8124dbd093344b72 --out-dir /home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/lrobidou/Documents/needletail/target/kani/debug/deps --extern buffer_redux=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-7b4c530c02a6a1d5.rlib --extern bytecount=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-68dfcab22851b95b.rlib --extern bzip2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-8dea9fe18d25e2b3.rlib --extern flate2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-fb11999c1a5b09bd.rlib --extern liblzma=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-53c7c9da0626f27c.rlib --extern memchr=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-1df6418796d90927.rlib --extern zstd=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-d4af044339cab2c4.rlib -Cllvm-args=--reachability=harnesses -C overflow-checks=on -Z unstable-options -Z trim-diagnostic-paths=no -Z human_readable_cgu_names -Z always-encode-mir --cfg=kani -Z 'crate-attr=feature(register_tool)' -Z 'crate-attr=register_tool(kanitool)' --sysroot /home/lrobidou/.kani/kani-0.57.0 -L /home/lrobidou/.kani/kani-0.57.0/lib --extern kani --extern 'noprelude:std=/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib' -C panic=abort -C symbol-mangling-version=v0 -Z panic_abort_tests=yes -Z mir-enable-passes=-RemoveStorageMarkers '--check-cfg=cfg(kani)' --kani-compiler '-Cllvm-args=--check-version=0.57.0 --log-level=debug --assertion-reach-checks' -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-b726842da2f7dd95/out/lib -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/liblzma-sys-7733c1c74cb39892/out -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/zstd-sys-1e32c7efbbb876af/out` (exit status: 101)
2025-01-10T09:10:11.721169Z DEBUG kani_driver: main_failure error=Failed to execute cargo (exit status: 101). Found 1 compilation errors.
error: Failed to execute cargo (exit status: 101). Found 1 compilation errors.

@zhassan-aws
Copy link
Contributor

Can you try disabling rust-lld?

RUSTFLAGS="-Z linker-features=-lld" cargo kani

@lrobidou
Copy link
Author

Here is the output of RUSTFLAGS="-Z linker-features=-lld" cargo kani:

Kani Rust Verifier 0.57.0 (cargo plugin)
   Compiling libc v0.2.169
   Compiling adler2 v2.0.0
   Compiling cfg-if v1.0.0
   Compiling memchr v2.7.4
   Compiling bytecount v0.6.8
   Compiling zstd-sys v2.0.13+zstd.1.5.6
   Compiling liblzma-sys v0.3.11
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling crc32fast v1.4.2
   Compiling miniz_oxide v0.8.2
   Compiling buffer-redux v1.0.2
   Compiling flate2 v1.0.35
   Compiling bzip2 v0.4.4
   Compiling liblzma v0.3.5
   Compiling zstd-safe v7.2.1
   Compiling zstd v0.13.2
   Compiling needletail v0.6.1 (/home/lrobidou/Documents/needletail)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.kani/kani-0.57.0/bin:/home/lrobidou/.kani/kani-0.57.0/pyroot/bin:/home/lrobidou/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/deactivate/zsh:/home/lrobidou/bin:/home/lrobidou/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/deactivate/zsh:/home/lrobidou/bin:/home/lrobidou/miniforge3/bin:/home/lrobidou/miniforge3/condabin:/home/lrobidou/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/lrobidou/.local/bin:/home/lrobidou/.local/bin:/home/lrobidou/.local/bin:/home/lrobidou/.local/bin" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustc5KcQuW/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustc5KcQuW/symbols.o" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-05a9ce356f06eca2.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-1b1411d0644c2759.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-367e729ed0aebe58.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-565c9c5fe03d5702.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_safe-c6655b9b9144e170.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_sys-54605e001a772d48.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-29999cc86a10ecb8.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma_sys-80c8d630a88d0798.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-14f39786dbf2fba9.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libminiz_oxide-bff89890f717e40b.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libadler2-7a46c3a25ec67e78.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcrc32fast-c3d10460eba2ae03.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcfg_if-d0f267fa51c01580.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-5495ad574d6f3e9f.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2_sys-25ec3534ea7b49ef.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/liblibc-285ea909a92a0f0e.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libkani.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libkani_core-1876bed1a87ffb66.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-36083ba37d5b6573.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_abort-b4321261d93a754a.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-2c81376a68fbbddd.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-b1fd1a83f089ace4.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-9da743847cda0f38.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-8acd7564d16aebe8.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-3777c8ef8024f93f.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-bad968be82b8ebec.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-a4659070f5b4f9bb.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6dfdf0a13a372e08.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-d312f2970ac94c6e.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-dba7c3b225206d97.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-662cd2ca1326d643.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-c1872ccfba8ed699.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f3716bc06e23ec43.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-0a47f69e5c37dd51.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f97e2f45280f712d.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8097e946b385dc38.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-c2c57d6302607876.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/lrobidou/.kani/kani-0.57.0/lib" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-9bd67229fb699af2/out/lib" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/liblzma-sys-390c3cbfdd5a70b4/out" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/zstd-sys-4176869b59b586c1/out" "-L" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libneedletail.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /usr/bin/ld: bz_internal_error: undefined version: 
          /usr/bin/ld: failed to set dynamic section sizes: bad value
          collect2: error: ld returned 1 exit status
          

error: could not compile `needletail` (lib) due to 1 previous error
error: Failed to execute cargo (exit status: 101). Found 1 compilation errors.

Same with --debug:

Kani Rust Verifier 0.57.0 (cargo plugin)
2025-01-10T20:51:26.793139Z DEBUG kani_driver::call_cargo: packages_to_verify args package_selection=[] package_exclusion=[] workspace=false
2025-01-10T20:51:26.793155Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="needletail" kind=[CDyLib, RLib] crate_type=[CDyLib, RLib]
2025-01-10T20:51:26.793163Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="stdin_pipe" kind=[Example] crate_type=[Bin]
2025-01-10T20:51:26.793165Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="format_specimens" kind=[Test] crate_type=[Bin]
2025-01-10T20:51:26.793166Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="test_compressed" kind=[Test] crate_type=[Bin]
2025-01-10T20:51:26.793168Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="test_stdin" kind=[Test] crate_type=[Bin]
2025-01-10T20:51:26.793170Z DEBUG kani_driver::call_cargo: package_targets name="needletail" target="benchmark" kind=[Bench] crate_type=[Bin]
Skipped the following test targets: 'format_specimens', 'test_compressed', 'test_stdin'.
    -> Use '--tests' to verify harnesses inside a 'test' crate.
Skipped verification of the following unsupported targets: 'stdin_pipe', 'benchmark'.
[Kani] Running: `CARGO_ENCODED_RUSTFLAGS="-Coverflow-checks=on-Zunstable-options-Ztrim-diagnostic-paths=no-Zhuman_readable_cgu_names-Zalways-encode-mir--cfg=kani-Zcrate-attr=feature(register_tool)-Zcrate-attr=register_tool(kanitool)--sysroot/home/lrobidou/.kani/kani-0.57.0-L/home/lrobidou/.kani/kani-0.57.0/lib--externkani--externnoprelude:std=/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib-Zlinker-features=-lld-Cpanic=abort-Csymbol-mangling-version=v0-Zpanic_abort_tests=yes-Zmir-enable-passes=-RemoveStorageMarkers--check-cfg=cfg(kani)--kani-compiler-Cllvm-args=--check-version=0.57.0 --log-level=debug --assertion-reach-checks" CARGO_TERM_PROGRESS_WHEN="never" RUSTC="/home/lrobidou/.kani/kani-0.57.0/bin/kani-compiler" /home/lrobidou/.kani/kani-0.57.0/toolchain/bin/cargo rustc --target x86_64-unknown-linux-gnu -Zhost-config -Ztarget-applies-to-host --config=host.rustflags=["--cfg=kani_host"] --target-dir /home/lrobidou/Documents/needletail/target/kani --message-format json-diagnostic-rendered-ansi -v -p path+file:///home/lrobidou/Documents/needletail#0.6.1 --lib -- -Cllvm-args=--reachability=harnesses`
       Fresh jobserver v0.1.32
       Fresh shlex v1.3.0
       Fresh cc v1.2.7
       Fresh pkg-config v0.3.31
       Fresh libc v0.2.169
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/liblibc-1c4530174093f9b6.rlib"
       Fresh zstd-sys v2.0.13+zstd.1.5.6
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_sys-18f4aabea83c7f5e.rlib"
       Fresh adler2 v2.0.0
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libadler2-0336e6fd9a45db27.rlib"
       Fresh cfg-if v1.0.0
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcfg_if-2962bfd5ab5c84ec.rlib"
       Fresh liblzma-sys v0.3.11
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma_sys-99a5fec00b88aeb8.rlib"
       Fresh memchr v2.7.4
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-ca26cce803d172c7.rlib"
       Fresh bytecount v0.6.8
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-afec8495d5a1f7e0.rlib"
       Fresh crc32fast v1.4.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcrc32fast-cc02d3f80cfbc909.rlib"
       Fresh bzip2-sys v0.1.11+1.0.8
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2_sys-482677ca6165fbf7.rlib"
       Fresh miniz_oxide v0.8.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libminiz_oxide-48e5bf04934cc4b3.rlib"
       Fresh zstd-safe v7.2.1
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_safe-105ba2a7dcb5dfc9.rlib"
       Fresh liblzma v0.3.5
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-1c03125fb034f6e1.rlib"
       Fresh buffer-redux v1.0.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-2e08604e0f83b151.rlib"
       Fresh zstd v0.13.2
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-811360363f96d850.rlib"
       Fresh flate2 v1.0.35
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-58049e1bd8034af6.rlib"
       Fresh bzip2 v0.4.4
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: None, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::codegen_cprover_gotoc::compiler_interface link, crate_type=Rlib, out_path="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-c89ec807fd7366cc.rlib"
   Compiling needletail v0.6.1 (/home/lrobidou/Documents/needletail)
     Running `/home/lrobidou/.kani/kani-0.57.0/bin/kani-compiler --crate-name needletail --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=185 --crate-type cdylib --crate-type rlib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="bzip2"' --cfg 'feature="compression"' --cfg 'feature="default"' --cfg 'feature="flate2"' --cfg 'feature="liblzma"' --cfg 'feature="xz2"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bzip2", "compression", "default", "flate2", "liblzma", "pyo3", "python", "python_test", "xz2", "zstd"))' -C metadata=8124dbd093344b72 --out-dir /home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/lrobidou/Documents/needletail/target/kani/debug/deps --extern buffer_redux=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-2e08604e0f83b151.rlib --extern bytecount=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-afec8495d5a1f7e0.rlib --extern bzip2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-c89ec807fd7366cc.rlib --extern flate2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-58049e1bd8034af6.rlib --extern liblzma=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-1c03125fb034f6e1.rlib --extern memchr=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-ca26cce803d172c7.rlib --extern zstd=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-811360363f96d850.rlib -Cllvm-args=--reachability=harnesses -C overflow-checks=on -Z unstable-options -Z trim-diagnostic-paths=no -Z human_readable_cgu_names -Z always-encode-mir --cfg=kani -Z 'crate-attr=feature(register_tool)' -Z 'crate-attr=register_tool(kanitool)' --sysroot /home/lrobidou/.kani/kani-0.57.0 -L /home/lrobidou/.kani/kani-0.57.0/lib --extern kani --extern 'noprelude:std=/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib' -Z linker-features=-lld -C panic=abort -C symbol-mangling-version=v0 -Z panic_abort_tests=yes -Z mir-enable-passes=-RemoveStorageMarkers '--check-cfg=cfg(kani)' --kani-compiler '-Cllvm-args=--check-version=0.57.0 --log-level=debug --assertion-reach-checks' -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-d7c9301ea4b125d2/out/lib -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/liblzma-sys-40d0778c3303b5e7/out -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/zstd-sys-9decb2b28dc5573b/out`
DEBUG kani_compiler::kani_compiler config end, queries=QueryDb { args: Some(Arguments { check_assertion_reachability: true, check_coverage: false, emit_vtable_restrictions: false, output_pretty_json: false, ignore_global_asm: false, reachability_analysis: Harnesses, stubbing_enabled: false, unstable_features: [], build_std: false, log_level: Some(Directive { in_span: None, fields: [], target: None, level: LevelFilter::DEBUG }), json_output: false, color_output: false, check_version: Some("0.57.0"), ub_check: [], backend: CProver, print_llbc: false }), kani_functions: OnceCell(<uninit>) }
DEBUG kani_compiler::kani_middle::kani_functions find_kani_functions, kani=[Crate { id: 20, name: "kani", is_local: false }]
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Assume), fn_def=FnDef(DefId { id: 56, name: "kani::assume" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Assert), fn_def=FnDef(DefId { id: 57, name: "kani::assert" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Cover), fn_def=FnDef(DefId { id: 58, name: "kani::cover" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(Any), fn_def=FnDef(DefId { id: 59, name: "kani::any" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(AnyModifies), fn_def=FnDef(DefId { id: 60, name: "kani::any_modifies" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(AnyRaw), fn_def=FnDef(DefId { id: 61, name: "kani::any_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Panic), fn_def=FnDef(DefId { id: 62, name: "kani::panic" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(SafetyCheck), fn_def=FnDef(DefId { id: 64, name: "kani::safety_check" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(UnsupportedCheck), fn_def=FnDef(DefId { id: 65, name: "kani::unsupported" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(UntrackedDeref), fn_def=FnDef(DefId { id: 66, name: "kani::internal::untracked_deref" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(InitContracts), fn_def=FnDef(DefId { id: 67, name: "kani::internal::init_contracts" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(WriteAny), fn_def=FnDef(DefId { id: 68, name: "kani::internal::write_any" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(WriteAnySlice), fn_def=FnDef(DefId { id: 69, name: "kani::internal::write_any_slice" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(WriteAnySlim), fn_def=FnDef(DefId { id: 70, name: "kani::internal::write_any_slim" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(WriteAnyStr), fn_def=FnDef(DefId { id: 71, name: "kani::internal::write_any_str" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(RunContract), fn_def=FnDef(DefId { id: 72, name: "kani::internal::run_contract_fn" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(RunLoopContract), fn_def=FnDef(DefId { id: 73, name: "kani::internal::run_loop_contract_fn" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(Check), fn_def=FnDef(DefId { id: 74, name: "kani::internal::check" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SizeOfVal), fn_def=FnDef(DefId { id: 153, name: "kani::rustc_intrinsics::size_of_val_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(AlignOfVal), fn_def=FnDef(DefId { id: 154, name: "kani::rustc_intrinsics::align_of_val_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(Offset), fn_def=FnDef(DefId { id: 155, name: "kani::rustc_intrinsics::offset" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SizeOfDynObject), fn_def=FnDef(DefId { id: 156, name: "kani::mem_models::size_of_dyn_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(AlignOfDynObject), fn_def=FnDef(DefId { id: 157, name: "kani::mem_models::align_of_dyn_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SizeOfSliceObject), fn_def=FnDef(DefId { id: 158, name: "kani::mem_models::size_of_slice_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(FloatToIntInRange), fn_def=FnDef(DefId { id: 159, name: "kani::float::float_to_int_in_range" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(CheckedSizeOf), fn_def=FnDef(DefId { id: 170, name: "kani::mem::checked_size_of_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(CheckedAlignOf), fn_def=FnDef(DefId { id: 171, name: "kani::mem::checked_align_of_raw" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(IsAllocated), fn_def=FnDef(DefId { id: 172, name: "kani::mem::is_allocated" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(ValidValue), fn_def=FnDef(DefId { id: 173, name: "kani::mem::has_valid_value" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Intrinsic(IsInitialized), fn_def=FnDef(DefId { id: 174, name: "kani::mem::is_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(PointerObject), fn_def=FnDef(DefId { id: 175, name: "kani::mem::pointer_object" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Hook(PointerOffset), fn_def=FnDef(DefId { id: 176, name: "kani::mem::pointer_offset" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(InitializeMemoryInitializationState), fn_def=FnDef(DefId { id: 184, name: "kani::mem_init::initialize_memory_initialization_state" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsPtrInitialized), fn_def=FnDef(DefId { id: 185, name: "kani::mem_init::is_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetPtrInitialized), fn_def=FnDef(DefId { id: 186, name: "kani::mem_init::set_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsSliceChunkPtrInitialized), fn_def=FnDef(DefId { id: 187, name: "kani::mem_init::is_slice_chunk_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetSliceChunkPtrInitialized), fn_def=FnDef(DefId { id: 188, name: "kani::mem_init::set_slice_chunk_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsSlicePtrInitialized), fn_def=FnDef(DefId { id: 189, name: "kani::mem_init::is_slice_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetSlicePtrInitialized), fn_def=FnDef(DefId { id: 190, name: "kani::mem_init::set_slice_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(IsStrPtrInitialized), fn_def=FnDef(DefId { id: 191, name: "kani::mem_init::is_str_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(SetStrPtrInitialized), fn_def=FnDef(DefId { id: 192, name: "kani::mem_init::set_str_ptr_initialized" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(CopyInitState), fn_def=FnDef(DefId { id: 193, name: "kani::mem_init::copy_init_state" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(CopyInitStateSingle), fn_def=FnDef(DefId { id: 194, name: "kani::mem_init::copy_init_state_single" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(StoreArgument), fn_def=FnDef(DefId { id: 196, name: "kani::mem_init::store_argument" })
DEBUG kani_compiler::kani_middle::kani_functions Found kani function, kani_function=Model(LoadArgument), fn_def=FnDef(DefId { id: 197, name: "kani::mem_init::load_argument" })
DEBUG kani_compiler::kani_middle::codegen_units CodegenUnits::new, units=[]
DEBUG kani_compiler::kani_middle::codegen_units store_metadata, filename="/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/needletail.kani-metadata.json"
====== Reachability Analysis Result =======
Total # items: 0
Total # statements: 0
Total # expressions: 0

Reachable Items:

Statements:

Expressions:

-------------------------------------------
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/lrobidou/.rustup/toolchains/nightly-2024-12-15-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/lrobidou/.kani/kani-0.57.0/bin:/home/lrobidou/.kani/kani-0.57.0/pyroot/bin:/home/lrobidou/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/deactivate/zsh:/home/lrobidou/bin:/home/lrobidou/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/deactivate/zsh:/home/lrobidou/bin:/home/lrobidou/miniforge3/bin:/home/lrobidou/miniforge3/condabin:/home/lrobidou/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/lrobidou/.local/bin:/home/lrobidou/.local/bin:/home/lrobidou/.local/bin:/home/lrobidou/.local/bin" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustcGQTmRj/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcGQTmRj/symbols.o" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-afec8495d5a1f7e0.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-2e08604e0f83b151.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-ca26cce803d172c7.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-811360363f96d850.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_safe-105ba2a7dcb5dfc9.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd_sys-18f4aabea83c7f5e.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-1c03125fb034f6e1.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma_sys-99a5fec00b88aeb8.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-58049e1bd8034af6.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libminiz_oxide-48e5bf04934cc4b3.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libadler2-0336e6fd9a45db27.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcrc32fast-cc02d3f80cfbc909.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libcfg_if-2962bfd5ab5c84ec.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-c89ec807fd7366cc.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2_sys-482677ca6165fbf7.rlib" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/liblibc-1c4530174093f9b6.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libkani.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/libkani_core-1876bed1a87ffb66.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-36083ba37d5b6573.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_abort-b4321261d93a754a.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-2c81376a68fbbddd.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-b1fd1a83f089ace4.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-9da743847cda0f38.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-8acd7564d16aebe8.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-3777c8ef8024f93f.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-bad968be82b8ebec.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-a4659070f5b4f9bb.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6dfdf0a13a372e08.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-d312f2970ac94c6e.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-dba7c3b225206d97.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-662cd2ca1326d643.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-c1872ccfba8ed699.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f3716bc06e23ec43.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-0a47f69e5c37dd51.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f97e2f45280f712d.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8097e946b385dc38.rlib" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-c2c57d6302607876.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/lrobidou/.kani/kani-0.57.0/lib" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-d7c9301ea4b125d2/out/lib" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/liblzma-sys-40d0778c3303b5e7/out" "-L" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/zstd-sys-9decb2b28dc5573b/out" "-L" "/home/lrobidou/.kani/kani-0.57.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libneedletail.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /usr/bin/ld: bz_internal_error: undefined version: 
          /usr/bin/ld: failed to set dynamic section sizes: bad value
          collect2: error: ld returned 1 exit status
          

error: could not compile `needletail` (lib) due to 1 previous error

Caused by:
  process didn't exit successfully: `/home/lrobidou/.kani/kani-0.57.0/bin/kani-compiler --crate-name needletail --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=185 --crate-type cdylib --crate-type rlib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="bzip2"' --cfg 'feature="compression"' --cfg 'feature="default"' --cfg 'feature="flate2"' --cfg 'feature="liblzma"' --cfg 'feature="xz2"' --cfg 'feature="zstd"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bzip2", "compression", "default", "flate2", "liblzma", "pyo3", "python", "python_test", "xz2", "zstd"))' -C metadata=8124dbd093344b72 --out-dir /home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/lrobidou/Documents/needletail/target/kani/debug/deps --extern buffer_redux=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbuffer_redux-2e08604e0f83b151.rlib --extern bytecount=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbytecount-afec8495d5a1f7e0.rlib --extern bzip2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libbzip2-c89ec807fd7366cc.rlib --extern flate2=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libflate2-58049e1bd8034af6.rlib --extern liblzma=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libliblzma-1c03125fb034f6e1.rlib --extern memchr=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libmemchr-ca26cce803d172c7.rlib --extern zstd=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/deps/libzstd-811360363f96d850.rlib -Cllvm-args=--reachability=harnesses -C overflow-checks=on -Z unstable-options -Z trim-diagnostic-paths=no -Z human_readable_cgu_names -Z always-encode-mir --cfg=kani -Z 'crate-attr=feature(register_tool)' -Z 'crate-attr=register_tool(kanitool)' --sysroot /home/lrobidou/.kani/kani-0.57.0 -L /home/lrobidou/.kani/kani-0.57.0/lib --extern kani --extern 'noprelude:std=/home/lrobidou/.kani/kani-0.57.0/lib/libstd.rlib' -Z linker-features=-lld -C panic=abort -C symbol-mangling-version=v0 -Z panic_abort_tests=yes -Z mir-enable-passes=-RemoveStorageMarkers '--check-cfg=cfg(kani)' --kani-compiler '-Cllvm-args=--check-version=0.57.0 --log-level=debug --assertion-reach-checks' -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/bzip2-sys-d7c9301ea4b125d2/out/lib -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/liblzma-sys-40d0778c3303b5e7/out -L native=/home/lrobidou/Documents/needletail/target/kani/x86_64-unknown-linux-gnu/debug/build/zstd-sys-9decb2b28dc5573b/out` (exit status: 101)
2025-01-10T20:51:26.911855Z DEBUG kani_driver: main_failure error=Failed to execute cargo (exit status: 101). Found 1 compilation errors.
error: Failed to execute cargo (exit status: 101). Found 1 compilation errors.

@lrobidou
Copy link
Author

I noticed the error /usr/bin/ld: failed to set dynamic section sizes: bad value might be more precise than the error returned by rust-lld (but I have no idea how to solve it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Bug This is a bug. Something isn't working. T-User Tag user issues / requests
Projects
None yet
Development

No branches or pull requests

3 participants