!ZFqvHUjUqgONNObpSJ:matrix.org

cross-rs

275 Members
Development of the Cross cross-compilation tool https://github.com/cross-rs/cross31 Servers

Load older messages


SenderMessageTime
3 Jul 2024
@dark_therion:matrix.orgdark_therion I'm having issues cross compiling for rp on m2 mac
when I run cross build --target arm-unknown-linux-gnueabihf Error response from daemon: Head "https://ghcr.io/v2/cross-rs/arm-unknown-linux-gnueabihf/manifests/main": denied: denied.
19:59:34
@dark_therion:matrix.orgdark_therionForgive me if I'm just being dumb I was just following a guide19:59:58
@dark_therion:matrix.orgdark_therionima jus go use zig20:18:17
4 Jul 2024
@n8henrie:matrix.org@n8henrie:matrix.org left the room.02:44:54
@9names:matrix.org9names
In reply to @dark_therion:matrix.org
Forgive me if I'm just being dumb I was just following a guide
hi! can you link to the guide please
08:32:48
5 Jul 2024
@emilgardis:matrix.orgemilgardis
In reply to @sirmangler:matrix.org
is there anyway to use the include!_ macros? (without generating the file with build.rs)
Yes, just make sure cross mounts the directory the included file lives in, see https://github.com/cross-rs/cross/blob/main/docs/config_file.md#buildenv
13:12:50
@emilgardis:matrix.orgemilgardis
In reply to @dark_therion:matrix.org
I'm having issues cross compiling for rp on m2 mac
when I run cross build --target arm-unknown-linux-gnueabihf Error response from daemon: Head "https://ghcr.io/v2/cross-rs/arm-unknown-linux-gnueabihf/manifests/main": denied: denied.
You probably have expired ghcr tokens in docker, you need to reauth https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry or remove the login information
13:14:15
@sirmangler:matrix.orgSir Mangler
In reply to @emilgardis:matrix.org
Yes, just make sure cross mounts the directory the included file lives in, see https://github.com/cross-rs/cross/blob/main/docs/config_file.md#buildenv
Thanks!
13:14:36
7 Jul 2024
@kebonly:matrix.org@kebonly:matrix.org changed their display name from Kevin Ly to kebonly.08:04:51
19 Jul 2024
@spectral369:matrix.orgspectral369

hey,
I got an issue.

I have this Cargo.toml

[package]
name = "aurras2"
version = "0.1.0"
edition = "2021"

[dependencies]
symphonia = { version = "0.5.4", features = ["aac", "mp3", "isomp4", "alac", "flac", "vorbis"]}
#tokio = { version = "1.37.0", features = ["full"] }
tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread", "sync", "signal"] }
serenity = { version = "0.12.1", features = ["full"] }
#songbird = { version = "0.4.1", default-features = true, features = ["builtin-queue"] }
#tracing-subscriber = "0.3.18"
poise = "0.6.1"
regex = "1.10.4"
reqwest = { version = "0.11.27",default-features = false, features = ["json", "rustls-tls-native-roots", "stream"] }

[dependencies.songbird]
default-features = true
git = "https://github.com/serenity-rs/songbird.git"
#branch = "next"
#rev = "261c7c04335d4fb08924f21c6d6a05f26c5653f4" # works
rev = "a5d9b58e941d568dcd8a4cc1cbb5bf9266f7d006"
features = ["rustls", "driver", "gateway", "twilight", "builtin-queue"]

[profile.release]
lto = true
opt-level = 3
debug = false

and this .cargo/config.toml

[build]

cortex-a72 for RPI4 //not working for some reason

cortex-a76 for orage-pi 5B

rustflags = ["-C", "target-cpu=cortex-a72"]
[profile.release]
lto = true
opt-level = 3
debug = false

and I build the stuff with: cross build --target aarch64-unknown-linux-gnu --bins --release

it works for Orange PI but it does not for Raspberry pi 4. just shows Illegal instruction

cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Revision : c03114
Serial : 1000000048a9ba09
Model : Raspberry Pi 4 Model B Rev 1.4

any tips on how to solve this ?

07:10:04
@emilgardis:matrix.orgemilgardistry attaching gdb to see the illegal instruction07:32:15
@spectral369:matrix.orgspectral369ok, I'll try07:40:30
@spectral369:matrix.orgspectral369lol idk how to use gdb sing host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff7ccf040 (LWP 12562)] [New Thread 0x7ff7abf040 (LWP 12563)] [New Thread 0x7ff78af040 (LWP 12565)] [New Thread 0x7ff769f040 (LWP 12566)] [New Thread 0x7ff748f040 (LWP 12567)] [New Thread 0x7ff727f040 (LWP 12568)] Thread 1 "aurras2" received signal SIGILL, Illegal instruction. 0x0000005555f545ac in ring_core_0_17_8_aes_hw_set_encrypt_key () 07:54:20
@emilgardis:matrix.orgemilgardisdo bt07:54:53
@spectral369:matrix.orgspectral369 I see some github issues with ing_core_0_17_8_aes_hw_set_encrypt_key 07:56:37
@emilgardis:matrix.orgemilgardisah yeah, it's precisely this: https://github.com/briansmith/ring/issues/185807:57:19
@spectral369:matrix.orgspectral369so, what can I do ? how do I disable some crypro hw features that are enabled by default ? https://github.com/rust-lang/rust/issues/125033 ? 07:58:25
@emilgardis:matrix.orgemilgardisan unreleased version of ring seems to have fixed it: https://github.com/briansmith/ring/pull/2050 so you'll need to get that one08:02:51
@spectral369:matrix.orgspectral369yeah, for now seems I'll just have to wait. thank you :-)08:18:07
@emilgardis:matrix.orgemilgardisyou could try a patch08:18:28
@spectral369:matrix.orgspectral369 neah, it's ok, for now I'll jut use rustflags = ["-C", "target-cpu=generic"] 08:19:05
@emilgardis:matrix.orgemilgardisalright!08:19:16
@keyperson:matrix.orgkeyperson joined the room.09:34:02
@keyperson:matrix.orgkeypersonimage.png
Download image.png
09:35:35
@keyperson:matrix.orgkeyperson cross build --target x86_64-pc-windows-gnu09:35:37
@keyperson:matrix.orgkeypersonHelp: what's wrong and how to do?09:36:07
@spectral369:matrix.orgspectral369You need cairo package Create a file Cross.toml in the root of the project and add [target.aarch64-unknown-linux-gnu] pre-build = ["dpkg --add-architecture arm64 && apt-get update && apt-get install --assume-yes libcairo2-dev:arm64"] this if you're building for arm64 adapt this for your needs10:24:39
@spectral369:matrix.orgspectral369this if I understood right the issue lol10:25:13
20 Jul 2024
@bromles:matrix.orgBromles changed their display name from Aleksandr Ushakov to Bromles.20:15:21
22 Jul 2024
@redeexpressos:matrix.orgredeexpressosAssuming I have a library that uses prost and needs protobuf-compiler. Im doing cross compilation with cross. Should I add a Cross.toml to my crate that installs needed dependencies, or do i let that for the user?10:45:34

Show newer messages


Back to Room ListRoom Version: 6