Open
Description
Hi,
Since the release of version 1.2.1, we are experiencing linker errors (I believe we're using x86_64-unknown-linux-gnu
in this particular run, but we also use x86_64-unknown-linux-musl
). We've pinned to 1.2.0 for now, but we wanted to let you know this was happening.
Seems like it's the fact that this commit adds a few candidates for target_arch
but it doesn't include ours.
I'm not sure if just adding the arches to the cfg
directive is the best way to solve it or if a more general solution is needed.
The linker error, if it's helpful:
= note: /usr/bin/ld: /root/project/target/debug/deps/libcrc_fast-957a5ad644ad740d.rlib(crc_fast-957a5ad644ad740d.crc_fast.326ef549280914c9-cgu.1.rcgu.o): in function `crc_fast::bindings::crc32_iso_hdlc':
/usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crc-fast-1.2.1/src/bindings/mod.rs:22: undefined reference to `crc32_iso_hdlc_impl'
/usr/bin/ld: /root/project/target/debug/deps/libcrc_fast-957a5ad644ad740d.rlib(crc_fast-957a5ad644ad740d.crc_fast.326ef549280914c9-cgu.1.rcgu.o): in function `crc_fast::bindings::crc32_iscsi':
/usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crc-fast-1.2.1/src/bindings/mod.rs:36: undefined reference to `crc32_iscsi_impl'
/usr/bin/ld: /root/project/target/debug/deps/libcrc_fast-957a5ad644ad740d.rlib(crc_fast-957a5ad644ad740d.crc_fast.326ef549280914c9-cgu.1.rcgu.o): in function `crc_fast::bindings::get_iso_hdlc_target':
/usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crc-fast-1.2.1/src/bindings/mod.rs:44: undefined reference to `get_iso_hdlc_target'
/usr/bin/ld: /root/project/target/debug/deps/libcrc_fast-957a5ad644ad740d.rlib(crc_fast-957a5ad644ad740d.crc_fast.326ef549280914c9-cgu.1.rcgu.o): in function `crc_fast::bindings::get_iscsi_target':
/usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crc-fast-1.2.1/src/bindings/mod.rs:49: undefined reference to `get_iscsi_target'
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
Thanks!
Metadata
Metadata
Assignees
Labels
No labels