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

error[E0463] can't find crate std #42

Open
Luro02 opened this issue Jan 16, 2019 · 1 comment
Open

error[E0463] can't find crate std #42

Luro02 opened this issue Jan 16, 2019 · 1 comment

Comments

@Luro02
Copy link

Luro02 commented Jan 16, 2019

hmm I am unable to compile the sample code because it can't find the std crate?

error[E0463]: can't find crate for `std`
  --> /home/lucas/.cargo/git/checkouts/megaton-hammer-5a678c5818d42e5c/06d94ff/megaton-hammer/src/lib.rs:24:1
   |
24 | extern crate std;
   | ^^^^^^^^^^^^^^^^^ can't find crate
   |
   = note: the `aarch64-roblabla-switch` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `megaton-hammer`.
warning: build failed, waiting for other jobs to finish...
error: build failed
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.m2PJDuuXPNpD/Cargo.toml" "--target" "aarch64-roblabla-switch" "-p" "std"` failed with exit code: Some(101)
note: run with `RUST_BACKTRACE=1` for a backtrace

and this is the backtrace

error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.tnArN8Fu3qE3/Cargo.toml" "--target" "aarch64-roblabla-switch" "-p" "std"` failed with exit code: Some(101)
stack backtrace:
   0: error_chain::make_backtrace::h618245194679c5b1 (0x5615738ed9e7)
   1: <error_chain::State as core::default::Default>::default::h2b6b425cadae00cb (0x5615738eda75)
   2: <std::process::Command as xargo::extensions::CommandExt>::run::h143c9fc9861b183a (0x5615738a7ccf)
   3: xargo::sysroot::build::h9b673e4b1ae939db (0x5615738b0ab8)
   4: xargo::sysroot::update::h53e8bc05c1085ea5 (0x5615738b4224)
   5: xargo::main::h0a8f43c9e1297d20 (0x5615738c13b9)
   6: std::rt::lang_start::{{closure}}::hf3e2b53967dd2936 (0x5615738a06c2)
   7: std::rt::lang_start_internal::{{closure}}::h2cd8b452b6782704 (0x56157390cc12)
             at src/libstd/rt.rs:49
      std::panicking::try::do_call::hd15c5e8e2521231c
             at src/libstd/panicking.rs:297
   8: __rust_maybe_catch_panic (0x5615739154d9)
             at src/libpanic_unwind/lib.rs:92
   9: std::panicking::try::h5fada6fea816cadd (0x56157390d765)
             at src/libstd/panicking.rs:276
      std::panic::catch_unwind::he4d80b3fbb117735
             at src/libstd/panic.rs:388
      std::rt::lang_start_internal::hf70c4d238c71a004
             at src/libstd/rt.rs:48
  10: main (0x5615738c1e41)
  11: __libc_start_main (0x7f0ab9fc3b96)
  12: _start (0x5615738954b9)
  13: <unknown> (0x0)
@roblabla
Copy link
Member

roblabla commented Jan 16, 2019

You might want to check out libnx-rs, an alternative based on libnx that is much further along (it has grahics and stuff \o/)

Unfortunately, I haven't had the time to update MTH in a while, and I think a recent xargo update broke it. I'd need to port it to the latest rust to fix it. Rust 1.32 is going to come out on friday, so I might try getting it fixed during the week-end.

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