!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
21 Jun 2024
@emilgardis:matrix.orgemilgardis *

if it's just a docker image like

ARG TARGET
ARG SHA
FROM ghcr.io/cross-rs/$TARGET:$SHA as builder
RUN <install rustup>

i'm absolutely fine with it

00:17:18
@emilgardis:matrix.orgemilgardisI've alloted some of my vacation time in august to clean up my projects, cross-rs being the most in need, hoping to get 0.3.0 out for real (I'm looking forward to break a bunch of rust projects in the wild 😎)00:17:53
@valkyrie_pilot:niko.lgbtvalkyrie_pilot 🏳️‍🌈that'd be much appreciated00:18:55
@emilgardis:matrix.orgemilgardishttps://github.com/cross-rs/cross/issues/151600:22:11
@emilgardis:matrix.orgemilgardisgoing to try to catch some sleep now :)00:22:35
@sasa-tomic:matrix.org@sasa-tomic:matrix.org joined the room.10:45:36
22 Jun 2024
@valkyrie_pilot:niko.lgbtvalkyrie_pilot 🏳️‍🌈
In reply to @emilgardis:matrix.org

if it's just a docker image like

ARG TARGET
ARG SHA
FROM ghcr.io/cross-rs/$TARGET:$SHA as builder
RUN <install rustup>

i'm absolutely fine with it

https://github.com/docker/build-push-action/discussions/1150
So... still not perfect... Docker, why are you the way you are.
05:36:24
@valkyrie_pilot:niko.lgbtvalkyrie_pilot 🏳️‍🌈Or i can google it again and instantly learn that my google-fu just sucked that day.05:37:05
@valkyrie_pilot:niko.lgbtvalkyrie_pilot 🏳️‍🌈https://stackoverflow.com/questions/73978929/how-to-build-docker-image-for-multiple-platforms-with-cross-compile05:38:43
@emilgardis:matrix.orgemilgardis I don't follow how that comment is related to cross-platform images valkyrie_pilot 🏳️‍🌈 ? 06:43:43
23 Jun 2024
@valkyrie_pilot:niko.lgbtvalkyrie_pilot 🏳️‍🌈It simply taught me how to fix the issues when you try to use x86-only containers in a build step for an arm container on an x86 machine07:35:56
24 Jun 2024
@alloyshaper:matrix.orgAlloy Shaper changed their display name from Charles R. Tyrrell to Alloy Shaper.04:14:13
@alloyshaper:matrix.orgAlloy Shaper set a profile picture.04:14:29
25 Jun 2024
@xhagon:matrix.orgX Hagon joined the room.18:28:10
27 Jun 2024
@louis030195:matrix.orglouis030195hi, how do you build for mac m3?11:43:36
@louis030195:matrix.orglouis030195https://github.com/louis030195/screen-pipe/actions/runs/9660680149/job/26646777754 https://github.com/louis030195/screen-pipe/blob/main/.github/workflows/release.yml11:43:51
@louis030195:matrix.orglouis030195is "aarch64-unknown-linux-gnu" mac m3? had issue running my binary the other day with this target11:45:07
@louis030195:matrix.orglouis030195do you have any example of github action that build for linux, mac, and windows?11:50:48
@louis030195:matrix.orglouis030195

./target/aarch64-unknown-linux-gnu/debug/screenpipe
bash: ./target/aarch64-unknown-linux-gnu/debug/screenpipe: cannot execute binary file: Exec format error

11:57:21
@9names:matrix.org9names
In reply to @louis030195:matrix.org
is "aarch64-unknown-linux-gnu" mac m3? had issue running my binary the other day with this target
-unknown-linux- is linux, not mac. target triple for apple m3 targets would be "aarch64-apple-darwin"
apple don't let you cross compile for their targets unless you're running on apple hardware + software.
[see https://github.com/cross-rs/cross/issues/508](https://github.com/cross-rs/cross/issues/508#issuecomment-1172861406
14:03:38
28 Jun 2024
@kebonly:matrix.org@kebonly:matrix.org joined the room.22:57:05
1 Jul 2024
@sirmangler:matrix.orgSir Mangler is there anyway to use the include!_ macros? 09:17:17
@sirmangler:matrix.orgSir Mangler * is there anyway to use the include!_ macros? (without generating the file with build.rs) 09:17:36
2 Jul 2024
@jonasrsv42:matrix.orgJonas Valfridsson joined the room.10:06:51
@jonasrsv42:matrix.orgJonas Valfridssonimage.png
Download image.png
10:08:06
@jonasrsv42:matrix.orgJonas ValfridssonHey, I am trying to cross compile a rust binary that depends on a shared library that requires at-least glibc 2.31 when I use the image I get undefined reference errors when linking against the shared library. Looking into that container it looks like the aarch64 glibc version is 2.23. Is there a simple way for me to update the glibc version I cross compile against? :)10:08:59
@jonasrsv42:matrix.orgJonas ValfridssonOr a complicated way10:09:36
@jonasrsv42:matrix.orgJonas Valfridsson turns out I was including the image tagged as latest by switching to edge it now includes 2.31 which is great :) 10:52:12
@str4va:matrix.orgstr4va joined the room.19:46:16
3 Jul 2024
@dark_therion:matrix.orgdark_therion joined the room.19:58:22

Show newer messages


Back to Room ListRoom Version: 6