Skip to content

README docker development needs to source correct toolchain #117

@chaoflow

Description

@chaoflow
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions