Skip to content

Instantly share code, notes, and snippets.

@CenTdemeern1
Created April 27, 2024 21:14
Show Gist options
  • Save CenTdemeern1/fca46a415a0ba8953ee68210c469d77e to your computer and use it in GitHub Desktop.
Save CenTdemeern1/fca46a415a0ba8953ee68210c469d77e to your computer and use it in GitHub Desktop.
centdemeern1@CenTdemeern1s-Mac-mini citro3d-rs % cargo 3ds run --example triangle
No pre-build std found, using build-std
Warning: unable to check if `ctru` debuginfo should be linked: `ctru-sys` not found
Compiling compiler_builtins v0.1.109
Compiling core v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core)
Compiling libc v0.2.153
Compiling memchr v2.5.0
Compiling std v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std)
Compiling proc-macro2 v1.0.81
Compiling unicode-ident v1.0.12
Compiling glob v0.3.1
Compiling clang-sys v1.7.0
Compiling rustc-std-workspace-core v1.99.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling prettyplease v0.2.19
Compiling rustix v0.38.34
Compiling siphasher v0.3.11
Compiling rand_core v0.6.4
Compiling rand v0.8.5
Compiling phf_shared v0.11.2
Compiling minimal-lexical v0.2.1
Compiling cfg-if v1.0.0
Compiling regex-syntax v0.8.3
Compiling alloc v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc)
Compiling unwind v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/unwind)
Compiling adler v1.0.2
Compiling rustc-demangle v0.1.23
Compiling errno v0.3.8
Compiling either v1.11.0
Compiling bitflags v2.5.0
Compiling memchr v2.7.2
Compiling libloading v0.8.3
Compiling quote v1.0.36
Compiling phf_generator v0.11.2
Compiling yansi-term v0.1.2
Compiling unicode-width v0.1.12
Compiling syn v2.0.60
Compiling home v0.5.9
Compiling nom v7.1.3
Compiling annotate-snippets v0.9.2
Compiling log v0.4.21
Compiling lazycell v1.3.0
Compiling which v4.4.2
Compiling regex-automata v0.4.6
Compiling lazy_static v1.4.0
Compiling rustc-hash v1.1.0
Compiling rustc-std-workspace-alloc v1.99.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
Compiling gimli v0.28.1
Compiling object v0.32.2
Compiling miniz_oxide v0.7.2
Compiling hashbrown v0.14.3
Compiling std_detect v0.1.5 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
Compiling panic_unwind v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/panic_unwind)
Compiling panic_abort v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/panic_abort)
Compiling cexpr v0.6.0
Compiling regex v1.10.4
Compiling peeking_take_while v0.1.2
Compiling shlex v1.3.0
Compiling bindgen v0.65.1
Compiling cc v1.0.95
Compiling addr2line v0.21.0
Compiling bitflags v1.3.2
Compiling itertools v0.11.0
Compiling serde v1.0.199
Compiling bindgen v0.68.1
Compiling autocfg v1.2.0
Compiling litrs v0.4.1
Compiling num-traits v0.2.18
Compiling citro3d-macros v0.1.0 (/Users/centdemeern1/Documents/3DSProjects/citro3d-rs/citro3d-macros)
Compiling document-features v0.2.8
Compiling phf_macros v0.11.2
Compiling rustc-std-workspace-std v1.99.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-std)
Compiling proc_macro v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/proc_macro)
Compiling unicode-width v0.1.11
Compiling getopts v0.2.21
Compiling test v0.0.0 (/Users/centdemeern1/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/test)
Compiling toml v0.5.11
Compiling phf v0.11.2
Compiling doxygen-rs v0.4.2
Compiling spin v0.9.8
Compiling static_assertions v1.1.0
Compiling const-zero v0.1.1
Compiling macaddr v1.0.1
Compiling widestring v1.1.0
Compiling bytemuck v1.15.0
Compiling approx v0.5.1
Compiling glam v0.24.2
Compiling ctru-rs v0.7.1 (https://github.com/rust3ds/ctru-rs.git#e3250bb6)
Compiling ctru-sys v0.5.0 (https://github.com/rust3ds/ctru-rs.git#e3250bb6)
Compiling citro3d-sys v0.1.0 (/Users/centdemeern1/Documents/3DSProjects/citro3d-rs/citro3d-sys)
Compiling shim-3ds v0.1.0 (https://github.com/rust3ds/shim-3ds.git#98015084)
Compiling pthread-3ds v0.1.0 (https://github.com/rust3ds/pthread-3ds.git#c885d8cd)
Compiling test-runner v0.1.0 (https://github.com/rust3ds/test-runner.git#162f0604)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:921:18
|
921 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u32` (32 bits)
= note: target type: `u8` (8 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:926:28
|
926 | let val: u32 = ::core::mem::transmute(val);
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u8` (8 bits)
= note: target type: `u32` (32 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:945:37
|
945 | let fmt: u32 = unsafe { ::core::mem::transmute(fmt) };
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u8` (8 bits)
= note: target type: `u32` (32 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:979:18
|
979 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u32` (32 bits)
= note: target type: `u8` (8 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:984:28
|
984 | let val: u32 = ::core::mem::transmute(val);
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u8` (8 bits)
= note: target type: `u32` (32 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:990:18
|
990 | unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 3u8) as u32) }
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u32` (32 bits)
= note: target type: `u8` (8 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:995:28
|
995 | let val: u32 = ::core::mem::transmute(val);
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u8` (8 bits)
= note: target type: `u32` (32 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:1023:40
|
1023 | let format: u32 = unsafe { ::core::mem::transmute(format) };
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u8` (8 bits)
= note: target type: `u32` (32 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /Users/centdemeern1/Documents/3DSProjects/citro3d-rs/target/armv6k-nintendo-3ds/debug/build/citro3d-sys-4b5d15b81e378846/out/bindings.rs:1027:39
|
1027 | let type_: u32 = unsafe { ::core::mem::transmute(type_) };
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `u8` (8 bits)
= note: target type: `u32` (32 bits)
error[E0308]: mismatched types
--> citro3d-sys/src/gx.rs:23:5
|
22 | pub fn GX_TRANSFER_IN_FORMAT(format: GX_TRANSFER_FORMAT) -> u32 {
| --- expected `u32` because of return type
23 | format << 8
| ^^^^^^^^^^^ expected `u32`, found `u8`
|
help: you can convert a `u8` to a `u32`
|
23 | (format << 8).into()
| + ++++++++
error[E0308]: mismatched types
--> citro3d-sys/src/gx.rs:28:5
|
27 | pub fn GX_TRANSFER_OUT_FORMAT(format: GX_TRANSFER_FORMAT) -> u32 {
| --- expected `u32` because of return type
28 | format << 12
| ^^^^^^^^^^^^ expected `u32`, found `u8`
|
help: you can convert a `u8` to a `u32`
|
28 | (format << 12).into()
| + ++++++++
error[E0308]: mismatched types
--> citro3d-sys/src/gx.rs:33:5
|
32 | pub fn GX_TRANSFER_SCALING(scale: GX_TRANSFER_SCALE) -> u32 {
| --- expected `u32` because of return type
33 | scale << 24
| ^^^^^^^^^^^ expected `u32`, found `u8`
|
help: you can convert a `u8` to a `u32`
|
33 | (scale << 24).into()
| + ++++++++
Some errors have detailed explanations: E0308, E0512.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `citro3d-sys` (lib) due to 12 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment