Skip to content

Unusupported os in target when running inside devenv.sh #1676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 of 11 tasks
byrnedo opened this issue May 6, 2025 · 0 comments
Open
4 of 11 tasks

Unusupported os in target when running inside devenv.sh #1676

byrnedo opened this issue May 6, 2025 · 0 comments

Comments

@byrnedo
Copy link

byrnedo commented May 6, 2025

Checklist

Describe your issue

When I run within devenv, rustc --print sysroot points to /nix/store/h9dd5l5zqf7yzyjbyb2895mwgaxbq0vp-rust-mixed

This seems to throw off cross, and I get the following error when trying to compile anything

cross -v build  --target aarch64-unknown-linux-gnu --release --locked
+ cargo metadata --format-version 1 --filter-platform aarch64-unknown-linux-gnu
[cross] warning: Found conflicting cross configuration in `/Users/doby/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.3.2/Cargo.toml`, use `[workspace.metadata.cross]` in the workspace manifest instead.
Currently only using configuration from `/Users/doby/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.15/Cargo.toml`
+ rustc --print sysroot
Error: 
   0: could not determine os in target triplet
   1: unsupported os in target, abi: "mixed", system: "rust" 

Location:
   src/docker/image.rs:342

What target(s) are you cross-compiling for?

No response

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

0.2.5 (4090bec 2024-10-15)

Example

No response

Additional information / notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant