cargo-nx icon indicating copy to clipboard operation
cargo-nx copied to clipboard

[Help] I have a problem when building

Open PoloNX opened this issue 2 years ago • 3 comments

I want to build one example but when I build I obtain this (I'm on windows 11 and I have rust installed)

Building and generating NRO...
Triple: aarch64-nintendo-switch
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --target aarch64-nintendo-switch --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit code: 1)
  --- stderr
  error: Error loading target specification: SyntaxError(InvalidEscape, 10, 27). Run `rustc --print target-list` for a list of built-in targets
  

PoloNX avatar Jul 29 '22 11:07 PoloNX

I'm getting the same issue, did you get this fixed?

SamHep0803 avatar Sep 19 '22 13:09 SamHep0803

For anyone having this problem, use cargo nx build -t aarch64-nintendo-switch-freestanding

Also, make sure it's installed by using rustup target add aarch64-nintendo-switch-freestanding and that you are using the nightly build of rust

re-mc avatar Dec 08 '22 04:12 re-mc

Is this still an issue after the last commits?

XorTroll avatar Aug 31 '23 00:08 XorTroll