Tried to cross-compile for aarch64 Linux and got this:
```
#22 108.6 Compiling hwlocality v1.0.0 (https://github.com/HadrienG2/hwlocality?rev=3141847b0a463f38adcf623a2d720931757a38ae#3141847b)
#22 109.0 error[E0308]: mismatched types
#22 109.0 --> /root/.cargo/git/checkouts/hwlocality-e92c49001d785139/3141847/src/ffi/mod.rs:107:22
#22 109.0 |
#22 109.0 107 | snprintf(buf.as_mut_ptr(), buf.len()),
#22 109.0 | -------- ^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8`
#22 109.0 | |
#22 109.0 | arguments to this function are incorrect
#22 109.0 |
#22 109.0 = note: expected raw pointer `*mut u8`
#22 109.0 found raw pointer `*mut i8`
#22 109.0
#22 109.0 error[E0277]: the trait bound `Box<[u8]>: From>` is not satisfied
#22 109.0 --> /root/.cargo/git/checkouts/hwlocality-e92c49001d785139/3141847/src/ffi/mod.rs:116:13
#22 109.0 |
#22 109.0 116 | buf.into()
#22 109.0 | ^^^^ the trait `From>` is not implemented for `Box<[u8]>`
#22 109.0 |
#22 109.0 = help: the following other types implement trait `From`:
#22 109.0 as From>>
#22 109.0 as From>
#22 109.0 as From<&OsStr>>
#22 109.0 as From>>
#22 109.0 as From>
#22 109.0 as From<&Path>>
#22 109.0 as From>>
#22 109.0 as From>
#22 109.0 and 18 others
#22 109.0 = note: required for `Vec` to implement `Into>`
#22 109.0
#22 109.0 Some errors have detailed explanations: E0277, E0308.
#22 109.0 For more information about an error, try `rustc --explain E0277`.
#22 109.1 error: could not compile `hwlocality` (lib) due to 2 previous errors
#22 109.1 warning: build failed, waiting for other jobs to finish...
#22 ERROR: process "/bin/sh -c /root/.cargo/bin/cargo build --locked -Z build-std --profile $PROFILE --bin subspace-farmer --target aarch64-unknown-linux-gnu && mv target/*/*/subspace-farmer subspace-farmer && rm -rf target" did not complete successfully: exit code: 101
------
> [stage-0 16/16] RUN /root/.cargo/bin/cargo build --locked -Z build-std --profile production --bin subspace-farmer --target aarch64-unknown-linux-gnu && mv target/*/*/subspace-farmer subspace-farmer && rm -rf target:
109.0 as From<&Path>>
109.0 as From>>
109.0 as From>
109.0 and 18 others
109.0 = note: required for `Vec` to implement `Into>`
109.0
109.0 Some errors have detailed explanations: E0277, E0308.
109.0 For more information about an error, try `rustc --explain E0277`.
109.1 error: could not compile `hwlocality` (lib) due to 2 previous errors
109.1 warning: build failed, waiting for other jobs to finish...
```
Looks like there are some platform-dependent type?
Tried to cross-compile for aarch64 Linux and got this:
Looks like there are some platform-dependent type?