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

[Help] I have a problem when building #4

Open
PoloNX opened this issue Jul 29, 2022 · 3 comments
Open

[Help] I have a problem when building #4

PoloNX opened this issue Jul 29, 2022 · 3 comments

Comments

@PoloNX
Copy link

PoloNX commented Jul 29, 2022

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
  
@SamHep0803
Copy link

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

@re-mc
Copy link

re-mc commented Dec 8, 2022

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

@XorTroll
Copy link
Contributor

Is this still an issue after the last commits?

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

4 participants