!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
125 Servers

Load older messages


SenderMessageTime
26 Feb 2026
@emilazy:matrix.orgemilytbf I assume the MSVC target doesn't use a pthreads emulation library.20:14:35
@emilazy:matrix.orgemilyI hope?20:14:36
@dramforever:matrix.orgdramforeverboth work20:14:40
@dramforever:matrix.orgdramforever* both ld and gcc work20:14:49
@dramforever:matrix.orgdramforeveri think we should be using gcc20:14:52
@rosssmyth:matrix.org@rosssmyth:matrix.orgYes20:15:03
@dramforever:matrix.orgdramforeverso like obviously my worry is not that it's not sending pthreads into rustc20:15:32
@dramforever:matrix.orgdramforeverbut that we've managed to have it use the wrong linker20:15:44
@emilazy:matrix.orgemilystop doing MinGW / Windows was not supposed to be given GCC / etc.20:15:54
@rosssmyth:matrix.org@rosssmyth:matrix.orgrustc just tells the linker to use it 20:15:54
@emilazy:matrix.orgemilywanted to run the GNU toolchain on a Microsoft platform anyway for a laugh? we had a tool for that: it was called DJGPP20:16:19
@rosssmyth:matrix.org@rosssmyth:matrix.orgRustc itself doesn't need to know where it is 20:16:21
@dramforever:matrix.orgdramforeveri didn't have to tell where the linker should be looking20:16:43
@rosssmyth:matrix.org@rosssmyth:matrix.orgok20:16:48
@rosssmyth:matrix.org@rosssmyth:matrix.orgThat is nice20:16:52
@emilazy:matrix.orgemily my guess is that it's using unprefixed gcc or something 20:16:58
@emilazy:matrix.orgemilyRust loves to do that kind of thing20:17:01
@emilazy:matrix.orgemily like when they shipped x86 Linux .o files in the official rustup WASM toolchain distribution 20:17:13
@dramforever:matrix.orgdramforeverbut how could unprefixed gcc be linking real windows programs20:17:19
@emilazy:matrix.orgemily because the compiler-builtins build would just shrug and use any old GCC if it couldn't find a Clang to pass --target to 20:17:29
@emilazy:matrix.orgemilyC compilers is the same20:17:36
@emilazy:matrix.orgemilyyeah I don't know. creatively20:17:49
@emilazy:matrix.orgemilyoh20:17:53
@emilazy:matrix.orgemilythere's the thing where we fail to wrap some compilers right20:17:57
@emilazy:matrix.orgemilylike some prefixed binutils don't get wrappers or something20:18:05
@dramforever:matrix.orgdramforeverthat would be hilarious20:18:14
@emilazy:matrix.orgemilyI remember there's something awful like that and it causes headaches20:18:15
@emilazy:matrix.orgemilyI think Artturin exposed me to that particular horror20:18:24
@rosssmyth:matrix.org@rosssmyth:matrix.orgYes, rustup ships a full mingw toolchain in the distribution bundle (including libpthread)20:18:25
@emilazy:matrix.orgemily (why does Rust even use libpthread on MinGW if it can use native threads on the MSVC target; is it required to use their shim layer for interoperability or something…) 20:18:55

Show newer messages


Back to Room ListRoom Version: 6