Page MenuHomeDevCentral

Can't compile crc32fast on FreeBSD with current datasources dependencies
Closed, ResolvedPublic

Description

$ cargo build
[...]
error: could not compile `crc32fast` (lib)

Caused by:
  could not execute process `/home/dereckson/.rustup/toolchains/stable-x86_64-unknown-freebsd/bin/rustc --crate-name crc32fast /home/dereckson/.cargo/registry/src/github.com-1ecc6299db9ec823/crc32fast-1.3.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=254 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=585b95e35af299ad -C extra-filename=-585b95e35af299ad --out-dir /usr/home/dereckson/dev/nasqueron/datasources/datasources/target/debug/deps -L dependency=/usr/home/dereckson/dev/nasqueron/datasources/datasources/target/debug/deps --extern cfg_if=/usr/home/dereckson/dev/nasqueron/datasources/datasources/target/debug/deps/libcfg_if-2e72447a56ca9f3a.rmeta --cap-lints allow --cfg crc32fast_stdarchx86` (never executed)

Caused by:
  No such file or directory (os error 2)

Event Timeline

dereckson triaged this task as High priority.Jan 13 2024, 19:19
dereckson created this task.

The crc32fast is a dependency of reqwest, it can be built in version 1.3.2 for reqwest 0.11.17.

The issue is caused by a stale cache, you can use cargo update to fix this situation or start from a blank state.

$ cargo update
[…]

$ cargo build
[…]
   Compiling fantoir-datasource v0.1.0 (/usr/home/dereckson/dev/nasqueron/datasources/datasources/fantoir-datasource)
    Finished dev [unoptimized + debuginfo] target(s) in 37.75s
$ cargo tree
[…]
├── opendatasoft-explore-api v0.1.0 (/usr/home/dereckson/dev/nasqueron/datasources/datasources/opendatasoft-explore-api)
│   ├── bytes v1.3.0
│   ├── chrono v0.4.31 (*)
│   ├── reqwest v0.11.17
│   │   ├── async-compression v0.3.15
│   │   │   ├── flate2 v1.0.28
│   │   │   │   ├── crc32fast v1.3.2
[…]