I think there was discussion about this elsewhere, but let's track progress here on GitHub.
$ cargo-fuzz run blake3
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/nix/store/x9d49vaqlrkw97p9ichdwrnbh013kq7z-bash-interactive-5.2p37/bin:/nix/store/wnl9qpnhayry14lhcbdafhadsjwsdr6p-patchelf-0.15.0/bin:/nix/store/9r8ivy5qxhq0z6bnncy26daki4x2846f-clang-wrapper-16.0.6/bin:/nix/store/0ylqp1207g4x53vz317dj5cd5a8x4gll-clang-16.0.6/bin:/nix/store/29mb4q8b5306f4gk2wh38h0c1akb0n97-glibc-2.40-36-bin/bin:/nix/store/6wgd8c9vq93mqxzc7jhkl86mv6qbc360-coreutils-9.5/bin:/nix/store/wd1dlav3z5vwwv6yqj69xkzhldk5hpvb-binutils-wrapper-2.43.1/bin:/nix/store/vk4mlknqk9yjbqa68a7rvpfxfdw3rad7-binutils-2.43.1/bin:/nix/store/888bkaqdpfpx72dd8bdc69qsqlgbhcvf-gcc-wrapper-13.3.0/bin:/nix/store/62qjb50708fdhb4f2y7zxyqr1afir4fk-gcc-13.3.0/bin:/nix/store/qlzvmgr8w9prdlyys7irqf86p7bndf5b-binutils-wrapper-2.43.1/bin:/nix/store/3zl71ikbnpwh76rcgl2an8rw9xa05bjp-compiler-rt-libc-16.0.6/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/bin:/nix/store/vl34hqw3jg404f5j5kp3kgwlxfvg2qby-just-1.38.0/bin:/nix/store/k51rfv38p65jbhw906vpl85yg1vd7xqn-gdb-15.2/bin:/nix/store/ksra6zz5p31jyfkm8a5dx5zxrz6bzk7r-cargo-hack-0.6.32/bin:/nix/store/q8k1sbs38k4hwfnm60j38q2dgkxhn7zw-cargo-fuzz-0.12.0/bin:/nix/store/yv00hbzz0x6sjxxk27mfhfnx4m0aggh9-cargo-binutils-0.3.6/bin:/nix/store/bb89v8pl6yy1aqjji7y8hvhfj7fdniyr-rustfilt-0.2.1/bin:/nix/store/2gc1mdxn6whvjscqibxkfaamfhspbmcd-pkg-config-wrapper-0.29.2/bin:/nix/store/rc5j45brxiyl55fgd3adbcc43pdfr29v-openssl-3.3.2-bin/bin:/nix/store/m5v59i3g7m0162fglk7h5r76mbvzflly-wasm-pack-0.13.1/bin:/nix/store/zh1bpvfh5pcwmkfsw6dpmq6666kjgq83-wasm-bindgen-cli-0.2.95/bin:/nix/store/sxw7i3pyw8v1ycw2sph0zq2byh1prrwm-nodejs-20.18.1/bin:/nix/store/6wgd8c9vq93mqxzc7jhkl86mv6qbc360-coreutils-9.5/bin:/nix/store/r99d2m4swgmrv9jvm4l9di40hvanq1aq-findutils-4.10.0/bin:/nix/store/3sln66ij8pg114apkd8p6nr04y37q5z2-diffutils-3.10/bin:/nix/store/yq39xdwm4z0fhx7dsm8mlpgvcz3vbfg3-gnused-4.9/bin:/nix/store/vniy1y5n8g28c55y7788npwc4h09fh7c-gnugrep-3.11/bin:/nix/store/scgfwh3z1s3l2vhvyjsgfgx5ql552sls-gawk-5.3.1/bin:/nix/store/0wqn2k3v5xzrc9rwinijdyr2ywwl82x4-gnutar-1.35/bin:/nix/store/5y240z436gf3rwmkwbhn1a17pqw509w4-gzip-1.13/bin:/nix/store/1yyryxp7mh7zsciapi8f1n0mnxkigmf8-bzip2-1.0.8-bin/bin:/nix/store/hbzw8k8ygv6bfzvsvnd4gb8qmm8xjbvn-gnumake-4.4.1/bin:/nix/store/gwgqdl0242ymlikq9s9s62gkp5cvyal3-bash-5.2p37/bin:/nix/store/rfrjws98w6scfx7m63grb0m6sg925ahd-patch-2.7.6/bin:/nix/store/4i4mjaf7z6gddspar487grxk5k1j4dcd-xz-5.6.3-bin/bin:/nix/store/9wbpsj6ksd16x1qdqs29xli1dpz3fnl0-file-5.45/bin:/run/wrappers/bin:/home/user/.nix-profile/bin:/nix/profile/bin:/home/user/.local/state/nix/profile/bin:/etc/profiles/per-user/user/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/user/.cargo/bin" VSLANG="1033" "cc" "-m64" "/tmp/nix-shell-186216-0/rustcGrkpNt/symbols.o" "-Wl,-Bstatic" "-Wl,--whole-archive" "-Wl,/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.asan.a" "-Wl,--no-whole-archive" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps" "-L" "/home/user/Documents/bitcoin/bitvm/target/release/deps" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/secp256k1-sys-ae204c8513cf99a9/out" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/blake3-55ba5b40ec650cc4/out" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/blake3-55ba5b40ec650cc4/out" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/libfuzzer-sys-574c470d4807c498/out" "-L" "/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/nix-shell-186216-0/rustcGrkpNt/libblake3-7067598d3394e0f8.rlib" "/tmp/nix-shell-186216-0/rustcGrkpNt/libsecp256k1_sys-d0e17023a9504d03.rlib" "/tmp/nix-shell-186216-0/rustcGrkpNt/liblibfuzzer_sys-363ed7edfd6dee67.rlib" "/nix/store/njmg0cid0l9mx3gjysbvrhmvk2chkq7k-rust-std-1.81.0-nightly-2024-07-01-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-4d7d16bbf0636a40.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib/self-contained" "-o" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
= note: rust-lld: error: undefined symbol: __sancov_gen_.338
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.487)
rust-lld: error: undefined symbol: __sancov_gen_.196
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.807)
rust-lld: error: undefined symbol: __sancov_gen_.1213
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.1053)
rust-lld: error: undefined symbol: __sancov_gen_.4989
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.1535)
rust-lld: error: undefined symbol: __sancov_gen_.526
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.2374)
rust-lld: error: undefined symbol: __sancov_gen_.131
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.3124)
rust-lld: error: undefined symbol: __sancov_gen_.249
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.3251)
rust-lld: error: undefined symbol: __sancov_gen_.1464
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.3687)
rust-lld: error: undefined symbol: __sancov_gen_.550
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.5457)
rust-lld: error: undefined symbol: __sancov_gen_.258
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6038)
rust-lld: error: undefined symbol: __sancov_gen_.157
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6347)
rust-lld: error: undefined symbol: __sancov_gen_.3
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6551)
rust-lld: error: undefined symbol: __sancov_gen_.508
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6561)
rust-lld: error: undefined symbol: __sancov_gen_.1893
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.7145)
rust-lld: error: undefined symbol: __sancov_gen_.17999
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.9049)
rust-lld: error: undefined symbol: __sancov_gen_.1636
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.10758)
rust-lld: error: undefined symbol: __sancov_gen_.128
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.12772)
rust-lld: error: undefined symbol: __sancov_gen_.856
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.12942)
rust-lld: error: undefined symbol: __sancov_gen_.1039
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.13927)
rust-lld: error: undefined symbol: __sancov_gen_.2507
>>> referenced by blake3.89ec2d01f63feec-cgu.0
>>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.15220)
rust-lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `bitvm-fuzz` (bin "blake3") due to 1 previous error
Error: failed to build fuzz script: ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Cpasses=sancov-module -Cllvm-args=-sanitizer-coverage-level=4 -Cllvm-args=-sanitizer-coverage-inline-8bit-counters -Cllvm-args=-sanitizer-coverage-pc-table -Cllvm-args=-sanitizer-coverage-trace-compares --cfg fuzzing -Clink-dead-code -Zsanitizer=address -Cllvm-args=-sanitizer-coverage-stack-depth -Cdebug-assertions -C codegen-units=1" "cargo" "build" "--manifest-path" "/home/user/Documents/bitcoin/bitvm/fuzz/Cargo.toml" "--target" "x86_64-unknown-linux-gnu" "--release" "--config" "profile.release.debug=true" "--bin" "blake3"
Reactions are currently unavailable
I think there was discussion about this elsewhere, but let's track progress here on GitHub.
$ cargo-fuzz run blake3 error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/nix/store/x9d49vaqlrkw97p9ichdwrnbh013kq7z-bash-interactive-5.2p37/bin:/nix/store/wnl9qpnhayry14lhcbdafhadsjwsdr6p-patchelf-0.15.0/bin:/nix/store/9r8ivy5qxhq0z6bnncy26daki4x2846f-clang-wrapper-16.0.6/bin:/nix/store/0ylqp1207g4x53vz317dj5cd5a8x4gll-clang-16.0.6/bin:/nix/store/29mb4q8b5306f4gk2wh38h0c1akb0n97-glibc-2.40-36-bin/bin:/nix/store/6wgd8c9vq93mqxzc7jhkl86mv6qbc360-coreutils-9.5/bin:/nix/store/wd1dlav3z5vwwv6yqj69xkzhldk5hpvb-binutils-wrapper-2.43.1/bin:/nix/store/vk4mlknqk9yjbqa68a7rvpfxfdw3rad7-binutils-2.43.1/bin:/nix/store/888bkaqdpfpx72dd8bdc69qsqlgbhcvf-gcc-wrapper-13.3.0/bin:/nix/store/62qjb50708fdhb4f2y7zxyqr1afir4fk-gcc-13.3.0/bin:/nix/store/qlzvmgr8w9prdlyys7irqf86p7bndf5b-binutils-wrapper-2.43.1/bin:/nix/store/3zl71ikbnpwh76rcgl2an8rw9xa05bjp-compiler-rt-libc-16.0.6/bin:/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/bin:/nix/store/vl34hqw3jg404f5j5kp3kgwlxfvg2qby-just-1.38.0/bin:/nix/store/k51rfv38p65jbhw906vpl85yg1vd7xqn-gdb-15.2/bin:/nix/store/ksra6zz5p31jyfkm8a5dx5zxrz6bzk7r-cargo-hack-0.6.32/bin:/nix/store/q8k1sbs38k4hwfnm60j38q2dgkxhn7zw-cargo-fuzz-0.12.0/bin:/nix/store/yv00hbzz0x6sjxxk27mfhfnx4m0aggh9-cargo-binutils-0.3.6/bin:/nix/store/bb89v8pl6yy1aqjji7y8hvhfj7fdniyr-rustfilt-0.2.1/bin:/nix/store/2gc1mdxn6whvjscqibxkfaamfhspbmcd-pkg-config-wrapper-0.29.2/bin:/nix/store/rc5j45brxiyl55fgd3adbcc43pdfr29v-openssl-3.3.2-bin/bin:/nix/store/m5v59i3g7m0162fglk7h5r76mbvzflly-wasm-pack-0.13.1/bin:/nix/store/zh1bpvfh5pcwmkfsw6dpmq6666kjgq83-wasm-bindgen-cli-0.2.95/bin:/nix/store/sxw7i3pyw8v1ycw2sph0zq2byh1prrwm-nodejs-20.18.1/bin:/nix/store/6wgd8c9vq93mqxzc7jhkl86mv6qbc360-coreutils-9.5/bin:/nix/store/r99d2m4swgmrv9jvm4l9di40hvanq1aq-findutils-4.10.0/bin:/nix/store/3sln66ij8pg114apkd8p6nr04y37q5z2-diffutils-3.10/bin:/nix/store/yq39xdwm4z0fhx7dsm8mlpgvcz3vbfg3-gnused-4.9/bin:/nix/store/vniy1y5n8g28c55y7788npwc4h09fh7c-gnugrep-3.11/bin:/nix/store/scgfwh3z1s3l2vhvyjsgfgx5ql552sls-gawk-5.3.1/bin:/nix/store/0wqn2k3v5xzrc9rwinijdyr2ywwl82x4-gnutar-1.35/bin:/nix/store/5y240z436gf3rwmkwbhn1a17pqw509w4-gzip-1.13/bin:/nix/store/1yyryxp7mh7zsciapi8f1n0mnxkigmf8-bzip2-1.0.8-bin/bin:/nix/store/hbzw8k8ygv6bfzvsvnd4gb8qmm8xjbvn-gnumake-4.4.1/bin:/nix/store/gwgqdl0242ymlikq9s9s62gkp5cvyal3-bash-5.2p37/bin:/nix/store/rfrjws98w6scfx7m63grb0m6sg925ahd-patch-2.7.6/bin:/nix/store/4i4mjaf7z6gddspar487grxk5k1j4dcd-xz-5.6.3-bin/bin:/nix/store/9wbpsj6ksd16x1qdqs29xli1dpz3fnl0-file-5.45/bin:/run/wrappers/bin:/home/user/.nix-profile/bin:/nix/profile/bin:/home/user/.local/state/nix/profile/bin:/etc/profiles/per-user/user/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/user/.cargo/bin" VSLANG="1033" "cc" "-m64" "/tmp/nix-shell-186216-0/rustcGrkpNt/symbols.o" "-Wl,-Bstatic" "-Wl,--whole-archive" "-Wl,/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.asan.a" "-Wl,--no-whole-archive" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps" "-L" "/home/user/Documents/bitcoin/bitvm/target/release/deps" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/secp256k1-sys-ae204c8513cf99a9/out" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/blake3-55ba5b40ec650cc4/out" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/blake3-55ba5b40ec650cc4/out" "-L" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/build/libfuzzer-sys-574c470d4807c498/out" "-L" "/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/nix-shell-186216-0/rustcGrkpNt/libblake3-7067598d3394e0f8.rlib" "/tmp/nix-shell-186216-0/rustcGrkpNt/libsecp256k1_sys-d0e17023a9504d03.rlib" "/tmp/nix-shell-186216-0/rustcGrkpNt/liblibfuzzer_sys-363ed7edfd6dee67.rlib" "/nix/store/njmg0cid0l9mx3gjysbvrhmvk2chkq7k-rust-std-1.81.0-nightly-2024-07-01-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-4d7d16bbf0636a40.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/nix/store/xqnwzjjcwh26p3c0fh9zznzx9wjp6ikx-rust-default-1.81.0-nightly-2024-07-01/lib/rustlib/x86_64-unknown-linux-gnu/lib/self-contained" "-o" "/home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" = note: rust-lld: error: undefined symbol: __sancov_gen_.338 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.487) rust-lld: error: undefined symbol: __sancov_gen_.196 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.807) rust-lld: error: undefined symbol: __sancov_gen_.1213 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.1053) rust-lld: error: undefined symbol: __sancov_gen_.4989 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.1535) rust-lld: error: undefined symbol: __sancov_gen_.526 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.2374) rust-lld: error: undefined symbol: __sancov_gen_.131 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.3124) rust-lld: error: undefined symbol: __sancov_gen_.249 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.3251) rust-lld: error: undefined symbol: __sancov_gen_.1464 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.3687) rust-lld: error: undefined symbol: __sancov_gen_.550 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.5457) rust-lld: error: undefined symbol: __sancov_gen_.258 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6038) rust-lld: error: undefined symbol: __sancov_gen_.157 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6347) rust-lld: error: undefined symbol: __sancov_gen_.3 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6551) rust-lld: error: undefined symbol: __sancov_gen_.508 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.6561) rust-lld: error: undefined symbol: __sancov_gen_.1893 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.7145) rust-lld: error: undefined symbol: __sancov_gen_.17999 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.9049) rust-lld: error: undefined symbol: __sancov_gen_.1636 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.10758) rust-lld: error: undefined symbol: __sancov_gen_.128 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.12772) rust-lld: error: undefined symbol: __sancov_gen_.856 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.12942) rust-lld: error: undefined symbol: __sancov_gen_.1039 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.13927) rust-lld: error: undefined symbol: __sancov_gen_.2507 >>> referenced by blake3.89ec2d01f63feec-cgu.0 >>> /home/user/Documents/bitcoin/bitvm/target/x86_64-unknown-linux-gnu/release/deps/blake3-df848f0f0154881c.blake3.89ec2d01f63feec-cgu.0.rcgu.o:(asan.module_dtor.15220) rust-lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors) clang-16: error: linker command failed with exit code 1 (use -v to see invocation) error: could not compile `bitvm-fuzz` (bin "blake3") due to 1 previous error Error: failed to build fuzz script: ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Cpasses=sancov-module -Cllvm-args=-sanitizer-coverage-level=4 -Cllvm-args=-sanitizer-coverage-inline-8bit-counters -Cllvm-args=-sanitizer-coverage-pc-table -Cllvm-args=-sanitizer-coverage-trace-compares --cfg fuzzing -Clink-dead-code -Zsanitizer=address -Cllvm-args=-sanitizer-coverage-stack-depth -Cdebug-assertions -C codegen-units=1" "cargo" "build" "--manifest-path" "/home/user/Documents/bitcoin/bitvm/fuzz/Cargo.toml" "--target" "x86_64-unknown-linux-gnu" "--release" "--config" "profile.release.debug=true" "--bin" "blake3"