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

rustc-wrapper in ~/.cargo/config.toml breaks builds #1213

Closed
4 of 11 tasks
rbtcollins opened this issue Feb 28, 2023 · 1 comment
Closed
4 of 11 tasks

rustc-wrapper in ~/.cargo/config.toml breaks builds #1213

rbtcollins opened this issue Feb 28, 2023 · 1 comment

Comments

@rbtcollins
Copy link

Checklist

Describe your issue

In ~/.cargo/config.toml I have the following content:

[build]
rustc-wrapper = "c:\Users\USERNAME\.cargo\bin\sccache"

This breaks builds with cross:


...
$cross build --target x86_64-unknown-linux-gnu
error: failed to run `rustc` to learn about target-specific information

Caused by:
  could not execute process `c:\Users\robertc\.cargo\bin\sccache rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (never executed)   

Caused by:
  No such file or directory (os error 2)

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

x86_64-unknown-linux-gnu

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

cross 0.2.5 (99b8069 2023-02-12)

Example

See above

Additional information / notes

No response

@Emilgardis
Copy link
Member

See #914 and #360 which are the same

This is essentially a duplicate of #621

#931 could possible solve this.

for now, a simple solution that does not involve installing sccache in the container is

cross --config 'build.rustc-wrapper=""' build

@Emilgardis Emilgardis closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2023
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