Error building v1.10.2 on raspberry pi (Debian 12)
scottmckenzie opened this issue · 4 comments
scottmckenzie commented
I am trying to build v1.10.2 on a raspberry pi running Debian 12. I get this error when running make:
mkdir -p bin
mkdir -p targets
cargo build --release
error: failed to select a version for `env_logger`.
... required by package `netavark v1.10.2 (/usr/local/src/netavark-1.10.2)`
versions that meet the requirements `^0.11.0` (locked to 0.11.0) are: 0.11.0
the package `netavark` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.
failed to select a version for `env_logger` which could resolve this conflict
make: *** [Makefile:57: build_netavark] Error 101
Steps to repro:
$ wget https://github.com/containers/netavark/archive/refs/tags/v1.10.2.tar.gz
$ tar xvf v1.10.2.tar.gz
$ wget https://github.com/containers/netavark/releases/download/v1.10.2/netavark-v1.10.2-vendor.tar.gz
$ tar xvf netavark-v1.10.2-vendor.tar.gz -C netavark-1.10.2
$ cd netavark-1.10.2/
$ mkdir -p .cargo
$ cat >.cargo/config << EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF
$ make
Luap99 commented
What rust version are you using? Your steps work fine for me with rust v1.73 and v1.75
afbjorklund commented
https://packages.debian.org/search?keywords=rust says that it (bookworm) is using 1.63.0
scottmckenzie commented
As @afbjorklund mentions, Debian bookworm is using rustc 1.63.0. I uninstalled the distro version of rust, installed 1.75.0 using rustp and have now successfully compiled netavark v1.10.2.
Thanks for the advice.
afbjorklund commented
It's not like it is actually mentioned anywhere in the documentation, what the minimum version of Rust is...