!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
129 Servers

Load older messages


SenderMessageTime
23 Aug 2021
@alexfmpe:matrix.orgalexfmpe
In reply to @alexfmpe:matrix.org
and started adding those changes to non-8.10 ghc

mingw 9.10 seems to also be broken, I get a few

In file included from compiler/cbits/genSym.c:1:0: error: 

includes/Rts.h:29:10: error:
     fatal error: windows.h: No such file or directory
       29 | #include <windows.h>
          |          ^~~~~~~~~~~
   |
29 | #include <windows.h>
15:17:01
@alexfmpe:matrix.orgalexfmpe
In reply to @alexfmpe:matrix.org
and started adding those changes to non-8.10 ghc
*

mingw ghc 9.0 seems to also be broken, I get a few

In file included from compiler/cbits/genSym.c:1:0: error: 

includes/Rts.h:29:10: error:
     fatal error: windows.h: No such file or directory
       29 | #include <windows.h>
          |          ^~~~~~~~~~~
   |
29 | #include <windows.h>
15:17:10
@alexfmpe:matrix.orgalexfmpeI don't see anything obviously related to <windows.h> in 8.10.4.nix15:17:42
@rick:matrix.ciphernetics.nlRick (Mindavi)Case-sensitive?15:41:29
@rick:matrix.ciphernetics.nlRick (Mindavi)I could imagine that it's not shipped too, but I don't know15:42:57
@alexfmpe:matrix.orgalexfmpe
In reply to @rick:matrix.ciphernetics.nl
Case-sensitive?
I mean, there are serveral .isWindows in both ghc derivations
15:44:28
@alexfmpe:matrix.orgalexfmpeboth they're the same, except for one I just added to 8.10.415:44:44
@alexfmpe:matrix.orgalexfmpebut 9.0 is failing way before that15:44:51
@alexfmpe:matrix.orgalexfmpe
In reply to @rick:matrix.ciphernetics.nl
I could imagine that it's not shipped too, but I don't know
this is probably it
so I need to make it available somehow?
15:46:15
@rick:matrix.ciphernetics.nlRick (Mindavi)I guess, haven't done anything with cross-compiling to Windows so I don't know much about it (aarch64 is enough of a challenge already...)15:49:43
@alexfmpe:matrix.orgalexfmpethis looks like it might work, but I can't figure out how to add it to whatever fooBuildInputs https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/windows/w32api/default.nix17:30:43
@alexfmpe:matrix.orgalexfmpehow do I even build this17:30:50
@alexfmpe:matrix.orgalexfmpe oh apparently nix-build -A pkgsCross.mingwW64.windows.w32api 17:31:33
26 Aug 2021
@s1341:matrix.orgs1341 joined the room.01:56:09
30 Aug 2021
@sternenseemann:systemli.orgsterniany comments on this? https://github.com/NixOS/nixpkgs/pull/13569223:26:38
4 Sep 2021
@sternenseemann:systemli.orgsterni John Ericson: Any idea why pkgsLLVM.llvmPackages_12.stdenv.cc.bintools would be GNU binutils? 19:22:17
@sternenseemann:systemli.orgsterni that would mean that buildLlvmTools.clang would be using that as well 19:22:43
@Ericson2314:matrix.orgJohn Ericson sterni: no idea that's weird 19:24:46
@Ericson2314:matrix.orgJohn Ericsonany other stdenvs like that?19:24:56
@sternenseemann:systemli.orgsterniseems to affect all llvmPackages sets, even llvmPackages_719:25:54
@sternenseemann:systemli.orgsterni it probably needs the same conditional logic which switches between clang, clangNoLibc clangNoLibcCompilerRt etc. or whatever they are all called 19:27:28
@sternenseemann:systemli.orgsterni or I guess rather clangUseLlvm and clang 19:28:12
@sternenseemann:systemli.orgsterni right because buildLlvmTools totally doesn't care about the stdenv per se 19:28:28
@sternenseemann:systemli.orgsternino wait the bintools logic is separate from that now19:32:58
@Ericson2314:matrix.orgJohn Ericsonis stdenv in tools or libs?19:34:08
@sternenseemann:systemli.orgsternistdenv is in libraries19:34:54
@sternenseemann:systemli.orgsternibut the stdenv it modifies comes via callPackage, so it should be the default one19:35:22
@sternenseemann:systemli.orgsterniI guess this is an unfortunate consequence that bintools are contained in the cc wrapper always19:35:58
5 Sep 2021
@Ericson2314:matrix.orgJohn Ericson sterni: hmm it really should be correct then 03:54:45
8 Sep 2021
@trofi:matrix.orgtrofi joined the room.17:05:58

Show newer messages


Back to Room ListRoom Version: 6