15 Apr 2024 |
jfaz1 | It's a Bevy project, my Cross.toml pretty much just installs the prereqs: g++-arm-linux-gnueabihf gcc-arm-linux-* pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 | 17:33:24 |
jfaz1 | It makes it all the way to the end of compilation, it seems like it's a linker issue: https://pastebin.com/zw5vggit | 17:34:23 |
jfaz1 | Needless to say it compiles and runs fine on the host PC (fedora) | 17:34:43 |
emilgardis | the problem is that it needs dynamic linking, I'm not sure how to fix it easily, don't know what bevy does exactly | 18:27:40 |
emilgardis | the error
/usr/lib/x86_64-linux-gnu/libdl.so: file not recognized: file format not recognized
is not surprising, it's not correct for arm-unknown-linux-gnueabihf
| 18:28:37 |
emilgardis | a question, what do you mean with
my Cross.toml pretty much just installs the prereqs
do you have your own custome image?
| 18:39:07 |
emilgardis | * a question, what do you mean with
my Cross.toml pretty much just installs the prereqs
do you have your own custom image? because the image cross comes with doesn't let you install packages for arm-unknown-linux-gnueabihf, because ubuntus armhf is armv7, but rust arm-unknown-linux-gnueabihf is armv6
if you want armv7 you should use armv7-unknown-linux-gnueabihf, and our images have libdl for that target
I have no name!@67a604245533:/Users/emil/workspace/$ ls /usr/arm-linux-gnueabihf/lib/libdl*
/usr/arm-linux-gnueabihf/lib/libdl-2.31.so /usr/arm-linux-gnueabihf/lib/libdl.a /usr/arm-linux-gnueabihf/lib/libdl.so /usr/arm-linux-gnueabihf/lib/libdl.so.2
| 18:42:08 |
jfaz1 | In reply to @emilgardis:matrix.org
a question, what do you mean with
my Cross.toml pretty much just installs the prereqs
do you have your own custom image? because the image cross comes with doesn't let you install packages for arm-unknown-linux-gnueabihf, because ubuntus armhf is armv7, but rust arm-unknown-linux-gnueabihf is armv6
if you want armv7 you should use armv7-unknown-linux-gnueabihf, and our images have libdl for that target
I have no name!@67a604245533:/Users/emil/workspace/$ ls /usr/arm-linux-gnueabihf/lib/libdl*
/usr/arm-linux-gnueabihf/lib/libdl-2.31.so /usr/arm-linux-gnueabihf/lib/libdl.a /usr/arm-linux-gnueabihf/lib/libdl.so /usr/arm-linux-gnueabihf/lib/libdl.so.2
I don't have a custom image, it's just a build step:
[build]
pre-build = [
"apt-get update && apt-get --assume-yes install gcc-arm-linux-* g++-arm-linux-* pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0"
]
| 18:50:40 |
jfaz1 | I'll try armv7-unknown-linux-gnueabihf , thanks for the help | 18:51:19 |
emilgardis | ok, gcc-arm-linux-* g++-arm-linux-* is doing nothing here, you're using another compiler we've already installed | 18:51:37 |
jfaz1 | In reply to @emilgardis:matrix.org ok, gcc-arm-linux-* g++-arm-linux-* is doing nothing here, you're using another compiler we've already installed Yeah that's just desperate tweaking coming through 😆 | 18:52:34 |
jfaz1 | In reply to @emilgardis:matrix.org ok, gcc-arm-linux-* g++-arm-linux-* is doing nothing here, you're using another compiler we've already installed Ok, I tried using armv7-unknown-linux-gnueabihf but it fails with a ton of rust errors like:
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.19/src/thread.rs:477:9
|
477 | Ok(ScopedJoinHandle {
| ^^ not found in this scope
Not sure what I could've messed up.. I commented out what I had in my Cross.toml as well as .cargo/config.toml and it's not working. If I compile it with cargo instead of cross it gets further along until it needs the dependencies I put in my config, so it's not a platform incompatibility issue
| 20:47:48 |
emilgardis | try cargo clean | 20:48:21 |
jfaz1 | I did, also cleared out the podman cache | 20:48:42 |
emilgardis | Ok not being on scope points to an earlier error, it's part of core prelude | 20:48:58 |
emilgardis | maybe try rustup target remove armv7-unknown-linux-gnueabihf | 20:50:25 |
emilgardis | if you're not on linux and x86_64 you'll have to adjust that command a bit | 20:50:40 |
jfaz1 | In reply to @emilgardis:matrix.org if you're not on linux and x86_64 you'll have to adjust that command a bit Ye I'm on Fedora | 20:52:17 |
jfaz1 | Didn't work unfortunately, not sure why this image is having more issues than the other one | 20:52:33 |
emilgardis | that's fine then :+1: | 20:52:34 |
emilgardis | * that's fine then :thumbsup: | 20:52:38 |
emilgardis | * that's fine then 👍️ | 20:52:43 |
emilgardis | can you show me the putput just before the first errors and also the last errors | 20:53:08 |
emilgardis | * can you show me the output just before the first errors and also the last errors | 20:53:13 |
jfaz1 | So many errors had to increase my terminal's scrollback buffer to 80000 lines 😆 At least there's something useful, looks like it's related to the target not being installed (it is)
╰─ cross build --target armv7-unknown-linux-gnueabihf --release
Compiling cfg-if v1.0.0
Compiling once_cell v1.19.0
Compiling pin-project-lite v0.2.14
Compiling zerocopy v0.7.32
Compiling parking v2.2.0
Compiling allocator-api2 v0.2.18
Compiling libc v0.2.153
Compiling crossbeam-utils v0.8.19
Compiling equivalent v1.0.1
Compiling futures-core v0.3.30
Compiling log v0.4.21
Compiling futures-io v0.3.30
Compiling fastrand v2.0.2
Compiling serde v1.0.197
Compiling thiserror v1.0.58
Compiling bytemuck v1.15.0
error[E0463]: can't find crate for `core`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0463]: can't find crate for `compiler_builtins`
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:77:26
|
77 | pub trait Equivalent<K: ?Sized> {
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:10
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:21
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0463]: can't find crate for `core`
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.14/src/lib.rs:1669:9
|
1669 | use core::mem::ManuallyDrop;
| ^^^^ can't find crate
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
| 20:58:27 |
jfaz1 | * So many, errors had to increase my terminal's scrollback buffer to 80000 lines 😆 At least there's something useful, looks like it's related to the target not being installed (it is)
╰─ cross build --target armv7-unknown-linux-gnueabihf --release
Compiling cfg-if v1.0.0
Compiling once_cell v1.19.0
Compiling pin-project-lite v0.2.14
Compiling zerocopy v0.7.32
Compiling parking v2.2.0
Compiling allocator-api2 v0.2.18
Compiling libc v0.2.153
Compiling crossbeam-utils v0.8.19
Compiling equivalent v1.0.1
Compiling futures-core v0.3.30
Compiling log v0.4.21
Compiling futures-io v0.3.30
Compiling fastrand v2.0.2
Compiling serde v1.0.197
Compiling thiserror v1.0.58
Compiling bytemuck v1.15.0
error[E0463]: can't find crate for `core`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0463]: can't find crate for `compiler_builtins`
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:77:26
|
77 | pub trait Equivalent<K: ?Sized> {
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:10
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:21
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0463]: can't find crate for `core`
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.14/src/lib.rs:1669:9
|
1669 | use core::mem::ManuallyDrop;
| ^^^^ can't find crate
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
| 20:58:36 |
jfaz1 | * So many errors, had to increase my terminal's scrollback buffer to 80000 lines 😆 At least there's something useful, looks like it's related to the target not being installed (it is)
╰─ cross build --target armv7-unknown-linux-gnueabihf --release
Compiling cfg-if v1.0.0
Compiling once_cell v1.19.0
Compiling pin-project-lite v0.2.14
Compiling zerocopy v0.7.32
Compiling parking v2.2.0
Compiling allocator-api2 v0.2.18
Compiling libc v0.2.153
Compiling crossbeam-utils v0.8.19
Compiling equivalent v1.0.1
Compiling futures-core v0.3.30
Compiling log v0.4.21
Compiling futures-io v0.3.30
Compiling fastrand v2.0.2
Compiling serde v1.0.197
Compiling thiserror v1.0.58
Compiling bytemuck v1.15.0
error[E0463]: can't find crate for `core`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0463]: can't find crate for `compiler_builtins`
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:77:26
|
77 | pub trait Equivalent<K: ?Sized> {
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:10
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:21
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0463]: can't find crate for `core`
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.14/src/lib.rs:1669:9
|
1669 | use core::mem::ManuallyDrop;
| ^^^^ can't find crate
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
| 20:59:14 |
jfaz1 | In reply to @emilgardis:matrix.org can you show me the output just before the first errors and also the last errors Tried removing the target/reinstalling the toolchain, still nothing. Weird 🤔 | 21:16:55 |
jfaz1 | * So many errors, had to increase my terminal's scrollback buffer to 80000 lines 😆 At least there's something useful, looks like it's related to the target not being installed (it is, at least on the host)
╰─ cross build --target armv7-unknown-linux-gnueabihf --release
Compiling cfg-if v1.0.0
Compiling once_cell v1.19.0
Compiling pin-project-lite v0.2.14
Compiling zerocopy v0.7.32
Compiling parking v2.2.0
Compiling allocator-api2 v0.2.18
Compiling libc v0.2.153
Compiling crossbeam-utils v0.8.19
Compiling equivalent v1.0.1
Compiling futures-core v0.3.30
Compiling log v0.4.21
Compiling futures-io v0.3.30
Compiling fastrand v2.0.2
Compiling serde v1.0.197
Compiling thiserror v1.0.58
Compiling bytemuck v1.15.0
error[E0463]: can't find crate for `core`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0463]: can't find crate for `compiler_builtins`
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:77:26
|
77 | pub trait Equivalent<K: ?Sized> {
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:10
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `Sized` in this scope
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1/src/lib.rs:82:21
|
82 | impl<Q: ?Sized, K: ?Sized> Equivalent<K> for Q
| ^^^^^ not found in this scope
error[E0463]: can't find crate for `core`
--> /home/jfaz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.14/src/lib.rs:1669:9
|
1669 | use core::mem::ManuallyDrop;
| ^^^^ can't find crate
|
= note: the `armv7-unknown-linux-gnueabihf` target may not be installed
= help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf`
| 21:17:25 |
emilgardis | aha | 21:17:37 |