Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Broken on latest Rust nightly #75

@anyputer

Description

@anyputer
RUST_TARGET_PATH=/d/projects/3ds-test xargo build --release
    Updating crates.io index
   Compiling cc v1.0.28
   Compiling core v0.0.0 (C:\Users\yarsa\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src\libcore)
   Compiling compiler_builtins v0.1.5
   Compiling rustc-std-workspace-core v1.0.0 (C:\Users\yarsa\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src\tools\rustc-std-workspace-core)
   Compiling alloc v0.0.0 (C:\Users\yarsa\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src\liballoc)
    Finished release [optimized] target(s) in 36.42s
   Compiling libc v0.2.46
error[E0412]: cannot find type `Option` in this scope
   --> C:\Users\yarsa\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.46\src\unix\newlib\mod.rs:723:36
    |
723 |     pub fn pthread_atfork(prepare: Option<unsafe extern fn()>,
    |                                    ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
1   | use core::option::Option;
    |
1   | use core::prelude::v1::Option;
    |

error[E0412]: cannot find type `Option` in this scope
   --> C:\Users\yarsa\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.46\src\unix\newlib\mod.rs:724:35
    |
724 |                           parent: Option<unsafe extern fn()>,
    |                                   ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
1   | use core::option::Option;
    |
1   | use core::prelude::v1::Option;
    |

error[E0412]: cannot find type `Option` in this scope
   --> C:\Users\yarsa\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.46\src\unix\newlib\mod.rs:725:34
    |
725 |                           child: Option<unsafe extern fn()>) -> ::c_int;
    |                                  ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
1   | use core::option::Option;
    |
1   | use core::prelude::v1::Option;
    |

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0412`.
error: Could not compile `libc`.

To learn more, run the command again with --verbose.
error: `"cargo" "build" "--release" "--manifest-path" "C:\\Users\\yarsa\\AppData\\Local\\Temp\\xargo.S4U22119KTa1\\Cargo.toml" "--target" "3ds" "-p" "panic_abort"` failed with exit code: Some(101)
stack backtrace:
   0: <no info> (0x7ff6657eefb2)
   1: <no info> (0x7ff6657ef053)
   2: <no info> (0x7ff6657a3035)
   3: <no info> (0x7ff6657acf0b)
   4: <no info> (0x7ff6657b2acd)
   5: <no info> (0x7ff6657c0cf3)
   6: <no info> (0x7ff66579b736)
   7: <no info> (0x7ff665808207)
   8: <no info> (0x7ff665812c92)
   9: <no info> (0x7ff665808ac2)
  10: <no info> (0x7ff6657c1da7)
  11: <no info> (0x7ff665822518)
  12: BaseThreadInitThunk (0x7ff92b0f3034)
make: *** [Makefile:20: target/3ds/release/rust3ds-template.elf] Error 1```

Metadata

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