note: error: unable to find Dynamic system library 'z' using strategy 'no_fallback'. searched paths:
ghuls opened this issue · 1 comments
ghuls commented
Is there a way to avoid note: error: unable to find Dynamic system library 'z' using strategy 'no_fallback'. searched paths:
? when compiling with cargo zigbuild --targ et x86_64-unknown-linux-gnu.2.17
.
For some programs an error like this shows up.
git clone https://github.com/lskatz/fasten
cd fasten
❯ PATH=/software/zig/zig-linux-x86_64-0.11.0:$PATH cargo zigbuild --targ et x86_64-unknown-linux-gnu.2.17 --release
Compiling autocfg v1.1.0
Compiling libc v0.2.152
Compiling rand_core v0.4.2
Compiling cfg-if v1.0.0
Compiling pkg-config v0.3.28
Compiling vcpkg v0.2.15
Compiling maybe-uninit v2.0.0
Compiling crc32fast v1.3.2
Compiling memchr v2.7.1
Compiling adler v1.0.2
Compiling ppv-lite86 v0.2.17
Compiling regex-syntax v0.8.2
Compiling owning_ref v0.2.4
Compiling smallvec v0.3.4
Compiling byteorder v1.5.0
Compiling futures v0.1.31
Compiling unicode-width v0.1.11
Compiling crossbeam v0.2.12
Compiling miniz_oxide v0.7.1
Compiling getopts v0.2.21
Compiling autocfg v0.1.8
Compiling rand_core v0.3.1
Compiling rand_jitter v0.1.4
Compiling num-traits v0.2.17
Compiling num-integer v0.1.45
Compiling num-bigint v0.2.6
Compiling num-iter v0.1.43
Compiling num-complex v0.2.4
Compiling num-rational v0.2.4
Compiling rand_pcg v0.1.2
Compiling rand_chacha v0.1.1
Compiling rand v0.6.5
Compiling rand_isaac v0.1.1
Compiling rand_xorshift v0.1.1
Compiling rand_hc v0.1.0
Compiling smallvec v0.6.14
Compiling aho-corasick v1.1.2
Compiling rand v0.4.6
Compiling getrandom v0.2.12
Compiling thread-id v3.3.0
Compiling rand_os v0.1.3
Compiling time v0.1.45
Compiling num_cpus v1.16.0
Compiling cc v1.0.83
Compiling threadpool v1.8.1
Compiling rand_core v0.6.4
Compiling rand_chacha v0.3.1
Compiling rand v0.8.5
Compiling parking_lot_core v0.2.14
Compiling parking_lot v0.3.8
Compiling libz-sys v1.1.14
Compiling lz4-sys v1.9.4
Compiling regex-automata v0.4.3
Compiling multiqueue v0.3.2
Compiling flate2 v1.0.28
Compiling bam v0.1.4
Compiling num v0.2.1
Compiling statistical v1.0.0
Compiling regex v1.10.2
Compiling lz4 v1.24.0
Compiling fastq v0.6.0
Compiling fasten v0.7.2 (/software/fasten)
error: linking with `/home/ghuls/.cache/cargo-zigbuild/0.18.1/zigcc-x86_64-unknown-linux-gnu.2.17.sh` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/ghuls/.cargo/bin:/software/zig/zig-linux-x86_64-0.11.0:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin" VSLANG="1033" "/home/ghuls/.cache/cargo-zigbuild/0.18.1/zigcc-x86_64-unknown-linux-gnu.2.17.sh" "-m64" "/tmp/rustcA9iARN/symbols.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.fasten_combine.c5b63c017e59e22-cgu.0.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.fasten_combine.c5b63c017e59e22-cgu.1.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.fasten_combine.c5b63c017e59e22-cgu.2.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.fasten_combine.c5b63c017e59e22-cgu.3.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.fasten_combine.c5b63c017e59e22-cgu.4.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.fasten_combine.c5b63c017e59e22-cgu.5.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.fasten_combine.c5b63c017e59e22-cgu.6.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6.2sw64qal9k9m7lr8.rcgu.o" "-Wl,--as-needed" "-L" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps" "-L" "/software/fasten/target/release/deps" "-L" "/software/fasten/target/x86_64-unknown-linux-gnu/release/build/lz4-sys-7401a30b739d5d00/out" "-L" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand-2faf3fea10236aad.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_chacha-41f7e899fe78d8bc.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libppv_lite86-65117852854a8087.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_core-bfb3e52d9017aba3.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libgetrandom-e6981e3a9c84fd73.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libfastq-2732ec6ffcf6db9a.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libflate2-392158b6e98a54d0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-1d9f1a3fdf243e12.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libcrc32fast-6c5dbe06205e28d0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libcfg_if-24446169c385a6a6.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblz4-0196b19d208b8f88.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblz4_sys-d6626de5ba51a6b0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libfasten-eb0a038d8287b0ad.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libgetopts-b184e635d2ff4cad.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libunicode_width-7a42a6b5eb6fdd29.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libstatistical-fc665d8ce24ef739.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum-590103174d673a62.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_rational-1640a4721b0e8afe.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_iter-70116c1d245e7334.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_complex-5c6b1e1dcf001af6.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_bigint-42dff6e83ab1b3b0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_integer-da679bf5315165d5.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_traits-43d056f291b66db7.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand-71b2e7ac8afd4f83.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_xorshift-06033bb9fd5bc2af.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_pcg-343b2182b3c655f6.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_hc-a501714d74749a8c.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_chacha-dc6a34fa5d52fbc2.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_isaac-e0b592c2b8b9885a.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_core-dd782389631c9908.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_os-c4925257a405734a.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblibc-fe1d2bbb5c7132ff.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_jitter-2377548adf481532.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_core-7bcb86396151a476.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libregex-749f60c19ce644e5.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libregex_automata-be155be570be55f3.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libaho_corasick-ec5ed25936b70bf0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libmemchr-3a4d4c771401098e.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libregex_syntax-c682c82c689343bb.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-fcf70ff533b679b2.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-0c444f82ff6357fe.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-1c489496724861fb.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-d78ac6160f3d6c83.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-809f163ce43a1738.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-175dcc30aa334793.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-cd8ec97f4bc5bb94.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-ee389c47b08d0950.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-cb31e582b020f933.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-9ec867386c5b7a05.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-fadf2e6707443620.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-f89fab2dfdbb31f7.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-6b9f3014e302f71b.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-43dc09dbe07dbc55.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-90b35e743da38af2.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e7c6d1877111e953.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-5532010d21dfada0.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a241e0394ca8cc1d.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-90c8d5109b409073.rlib" "-Wl,-Bdynamic" "-lz" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_combine-ff8df7954aae69c6" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
= note: error: unable to find Dynamic system library 'z' using strategy 'no_fallback'. searched paths:
/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libz.so
/software/fasten/target/release/deps/libz.so
/software/fasten/target/x86_64-unknown-linux-gnu/release/build/lz4-sys-7401a30b739d5d00/out/libz.so
/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libz.so
/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libz.so
error: could not compile `fasten` (bin "fasten_combine") due to previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `/home/ghuls/.cache/cargo-zigbuild/0.18.1/zigcc-x86_64-unknown-linux-gnu.2.17.sh` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/ghuls/.cargo/bin:/software/zig/zig-linux-x86_64-0.11.0:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin" VSLANG="1033" "/home/ghuls/.cache/cargo-zigbuild/0.18.1/zigcc-x86_64-unknown-linux-gnu.2.17.sh" "-m64" "/tmp/rustcaWuiub/symbols.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.00.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.01.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.02.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.03.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.04.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.05.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.06.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.07.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.08.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.09.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.10.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.fasten_convert.2c76a9f90209ed0e-cgu.11.rcgu.o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931.5653i4c2sdruhx8d.rcgu.o" "-Wl,--as-needed" "-L" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps" "-L" "/software/fasten/target/release/deps" "-L" "/software/fasten/target/x86_64-unknown-linux-gnu/release/build/lz4-sys-7401a30b739d5d00/out" "-L" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libbam-fd694bea61f4195e.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libbyteorder-15e5046e816dd866.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libfastq-2732ec6ffcf6db9a.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libflate2-392158b6e98a54d0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-1d9f1a3fdf243e12.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libcrc32fast-6c5dbe06205e28d0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libcfg_if-24446169c385a6a6.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblz4-0196b19d208b8f88.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblz4_sys-d6626de5ba51a6b0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libfasten-eb0a038d8287b0ad.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libstatistical-fc665d8ce24ef739.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum-590103174d673a62.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_rational-1640a4721b0e8afe.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_iter-70116c1d245e7334.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_complex-5c6b1e1dcf001af6.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_bigint-42dff6e83ab1b3b0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_integer-da679bf5315165d5.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libnum_traits-43d056f291b66db7.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand-71b2e7ac8afd4f83.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_xorshift-06033bb9fd5bc2af.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_pcg-343b2182b3c655f6.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_hc-a501714d74749a8c.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_chacha-dc6a34fa5d52fbc2.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_isaac-e0b592c2b8b9885a.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_core-dd782389631c9908.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_os-c4925257a405734a.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/liblibc-fe1d2bbb5c7132ff.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_jitter-2377548adf481532.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/librand_core-7bcb86396151a476.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libregex-749f60c19ce644e5.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libregex_automata-be155be570be55f3.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libaho_corasick-ec5ed25936b70bf0.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libmemchr-3a4d4c771401098e.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libregex_syntax-c682c82c689343bb.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libgetopts-b184e635d2ff4cad.rlib" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libunicode_width-7a42a6b5eb6fdd29.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-fcf70ff533b679b2.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-0c444f82ff6357fe.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-1c489496724861fb.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-d78ac6160f3d6c83.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-809f163ce43a1738.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-175dcc30aa334793.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-cd8ec97f4bc5bb94.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-ee389c47b08d0950.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-cb31e582b020f933.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-9ec867386c5b7a05.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-fadf2e6707443620.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-f89fab2dfdbb31f7.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-6b9f3014e302f71b.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-43dc09dbe07dbc55.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-90b35e743da38af2.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e7c6d1877111e953.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-5532010d21dfada0.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a241e0394ca8cc1d.rlib" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-90c8d5109b409073.rlib" "-Wl,-Bdynamic" "-lz" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/fasten_convert-f616b436a52a6931" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
= note: error: unable to find Dynamic system library 'z' using strategy 'no_fallback'. searched paths:
/software/fasten/target/x86_64-unknown-linux-gnu/release/deps/libz.so
/software/fasten/target/release/deps/libz.so
/software/fasten/target/x86_64-unknown-linux-gnu/release/build/lz4-sys-7401a30b739d5d00/out/libz.so
/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libz.so
/home/ghuls/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libz.so
error: could not compile `fasten` (bin "fasten_convert") due to previous error
ghuls commented
After symlinking zlib, it works.
❯ ln -s /lib64/libz.so ./target/x86_64-unknown-linux-gnu/release/deps/libz.so
❯ PATH=/software/zig/zig-linux-x86_64-0.11.0:$PATH cargo zigbuild --target x86_64-unknown-linux-gnu.2.17 --release
Compiling fasten v0.7.2 (software/fasten)
Finished release [optimized] target(s) in 1.36s
Is this due to -nodefaultlibs
?