21 Jun 2024 |
emilgardis | * 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 | I'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 🏳️🌈 | that'd be much appreciated | 00:18:55 |
emilgardis | https://github.com/cross-rs/cross/issues/1516 | 00:22:11 |
emilgardis | going to try to catch some sleep now :) | 00:22:35 |
| @sasa-tomic:matrix.org joined the room. | 10:45:36 |
22 Jun 2024 |
valkyrie_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 🏳️🌈 | Or i can google it again and instantly learn that my google-fu just sucked that day. | 05:37:05 |
valkyrie_pilot 🏳️🌈 | https://stackoverflow.com/questions/73978929/how-to-build-docker-image-for-multiple-platforms-with-cross-compile | 05:38:43 |
emilgardis | I don't follow how that comment is related to cross-platform images valkyrie_pilot 🏳️🌈 ? | 06:43:43 |
23 Jun 2024 |
valkyrie_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 machine | 07:35:56 |
24 Jun 2024 |
| Alloy Shaper changed their display name from Charles R. Tyrrell to Alloy Shaper. | 04:14:13 |
| Alloy Shaper set a profile picture. | 04:14:29 |
25 Jun 2024 |
| X Hagon joined the room. | 18:28:10 |
27 Jun 2024 |
louis030195 | hi, how do you build for mac m3? | 11:43:36 |
louis030195 | https://github.com/louis030195/screen-pipe/actions/runs/9660680149/job/26646777754
https://github.com/louis030195/screen-pipe/blob/main/.github/workflows/release.yml | 11:43:51 |
louis030195 | is "aarch64-unknown-linux-gnu" mac m3? had issue running my binary the other day with this target | 11:45:07 |
louis030195 | do you have any example of github action that build for linux, mac, and windows? | 11:50:48 |
louis030195 |
./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 | 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 joined the room. | 22:57:05 |
1 Jul 2024 |
Sir Mangler | is there anyway to use the include!_ macros? | 09:17:17 |
Sir Mangler | * is there anyway to use the include!_ macros? (without generating the file with build.rs) | 09:17:36 |
2 Jul 2024 |
| Jonas Valfridsson joined the room. | 10:06:51 |
Jonas Valfridsson | Download image.png | 10:08:06 |
Jonas Valfridsson | Hey, 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 |
Jonas Valfridsson | Or a complicated way | 10:09:36 |
Jonas 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 joined the room. | 19:46:16 |
3 Jul 2024 |
| dark_therion joined the room. | 19:58:22 |