Skip to content
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

Using --target-dir makes Cross look for libraries on host #1577

Open
4 of 11 tasks
ClementNerma opened this issue Oct 21, 2024 · 2 comments
Open
4 of 11 tasks

Using --target-dir makes Cross look for libraries on host #1577

ClementNerma opened this issue Oct 21, 2024 · 2 comments

Comments

@ClementNerma
Copy link

Checklist

Describe your issue

If I run cross build, it pulls the missing Rust toolchain and runs the build step in Docker.
If I run cross build --target-dir /some/path, it doesn't and complains about a library missing on my host (which is a dependency of my project).

I don't know why this happens, but it seems like providing --target-dir makes Cargo perform some tasks on the host instead of going directly in the container.

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

aarch64-unknown-linux-musl

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

Example

No response

Additional information / notes

No response

@Emilgardis
Copy link
Member

can you please post the logs when cross is also provided with -v

@Emilgardis
Copy link
Member

we might be resolving the paths wrong when using --target-dir, but we shouldn't as all that data comes from cargo metadata

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

2 participants