-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
docker run --rm -v $(pwd):/project -v /project/.cargo -w "/project" ghcr.io/toltec-dev/rust:latest cargo build --release --target=armv7-unknown-linux-gnueabihf
...
warning: `/root/.cargo/config` is deprecated in favor of `config.toml`
|
= help: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
Updating crates.io index
...
error: linker `arm-linux-gnueabihf-gcc` not found
|
= note: No such file or directory (os error 2)
error: could not compile `restream` (bin "restream") due to 1 previous error
Installing the linker solves it, but the solution isn't very elegant:
docker run --rm -v "$(pwd)":/project -v /project/.cargo -w /project ghcr.io/toltec-dev/rust:latest bash -lc '
apt-get update &&
apt-get install -y gcc-arm-linux-gnueabihf &&
cargo build --release --target=armv7-unknown-linux-gnueabihf
'
...
Metadata
Metadata
Assignees
Labels
No labels