!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

465 Members
Rust111 Servers

Load older messages


SenderMessageTime
23 Aug 2024
@k900:0upti.meK900MinGW is generally only tested with the GNU toolchain 04:17:00
@k900:0upti.meK900There is a way, yes04:17:12
@k900:0upti.meK900The way is to use the native MSVC ABI targets 04:17:20
@k900:0upti.meK900 See e.g. https://gitlab.com/K900/rust-cross-windows 04:17:37
@creepinson:matrix.orgTheo ParisThat requires the proprietary msvc libraries, but it's certainly something I can try. I'd like to be able to get llvm and mingw to work with nix in the future if that is possible to achieve.04:19:44
@k900:0upti.meK900It is probably possible, but it's going to be a sizable amount of work, and honestly, MinGW is a gigantic hack anyway 04:20:15
@k900:0upti.meK900I personally would much prefer to see better support for MSVC targets 04:20:28
@k900:0upti.meK900But that's way harder 04:20:32
@creepinson:matrix.orgTheo Paris I did get closer outside of nix/nixpkgs by using rust-lld with x86_64-pc-windows-gnullvm but ran into the fact that rustc hard codes the --nxcompat flag for windows targets, which fails to work with lld-link.
So I think the crossSystem and compiler-rt issues are specific to nixpkgs
04:21:47
@creepinson:matrix.orgTheo Paris * I did get closer outside of nix/nixpkgs by using lld with x86_64-pc-windows-gnullvm but ran into the fact that rustc hard codes the --nxcompat flag for windows targets, which fails to work with lld-link.
So I think the crossSystem and compiler-rt issues are specific to nixpkgs
04:22:09
@creepinson:matrix.orgTheo Paris * I did get closer outside of nix/nixpkgs by using lld-link with x86_64-pc-windows-gnullvm but ran into the fact that rustc hard codes the --nxcompat flag for windows targets, which fails to work with lld-link.
So I think the crossSystem and compiler-rt issues are specific to nixpkgs
04:22:24
@aktaboot:tchncs.deaktabootwhat do you usually do to get rust-nightly packages in your system ?17:53:32
@k900:0upti.meK900rust-overlay or fenix17:56:46
@aktaboot:tchncs.deaktabootthanks I guess rust-overlay fits what I am looking for :)17:59:20
@damccull:matrix.orgdamccullIf I cargo build on a nixos system, I'm getting an exe with the wrong interpreter for a regular system...I think...how do I tell nix build to build it for a regular system so I can copy over to one of those?22:04:13
24 Aug 2024
@k900:0upti.meK900You can't really03:35:48
@k900:0upti.meK900And it's not guaranteed to work properly anyway because of glibc symbol versioning nonsense03:36:04
@k900:0upti.meK900If you want a portable binary, build it fully static with musl03:36:19
@cafkafk:gitter.imcafkafk changed their profile picture.07:02:12
@ralith:ralith.comRalithdoes musl have dlopen these days?19:49:52
@k900:0upti.meK900It does but why 19:50:35
@ralith:ralith.comRalithI guess more importantly, what happens when you dlopen something that links the host libc?19:52:00
@k900:0upti.meK900Kaboom19:53:03
@ralith:ralith.comRalithaw :(19:53:09
@k900:0upti.meK900As expected 19:53:10
@qyliss:fairydust.spaceAlyssa RossIt doesn't work19:53:10
@ralith:ralith.comRalithstill no graphics in static binaries then19:53:18
@emilazy:matrix.orgemily cough libcapsule 19:53:54
@ralith:ralith.comRalithspicy19:58:09
@ralith:ralith.comRalith(the libcapsule README is a pretty good in-depth answer to "but why", if anyone is still confused)19:58:53

Show newer messages


Back to Room ListRoom Version: 6