Skip to content

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

Closed as not planned
Closed as not planned
@rbtcollins

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions