Nix Cross Compiling | 568 Members | |
| 124 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Jul 2021 | ||
| 20:25:13 | ||
Can somebody explain to me where the non 32 bit version of the mingw headers are? One would assume it's pkgsCross.mingwW64.windows.mingw_w64_headers but that evalutes to /nix/store/m7mvg8ldx7fj0rliz60gjyrzy7rm6ig2-mingw-w64-x86_64-w64-mingw32-6.0.0-headers and throws an #error Only Win32 target is supported! error. | 20:27:15 | |
| Package for reference:
| 20:27:52 | |
| * Package for reference:
| 20:52:35 | |
| 19 Jul 2021 | ||
| You need to take all your packages from pkgCross.ming.... | 05:29:30 | |
| The easiest way is to take callPackage from it like in https://nixos.wiki/wiki/Cross_Compiling | 05:31:46 | |
| thx, will look into that. | 08:18:33 | |
| I ended up with
called via | 15:00:17 | |
| Redacted or Malformed Event | 22:23:14 | |
| Redacted or Malformed Event | 22:23:27 | |
| 20 Jul 2021 | ||
| Don't use pkgCross at all in the callPackaged file | 06:03:28 | |
| Instead of depsBuildTarget it's probably buildInputs ie depsBuildHost | 06:03:39 | |
| Hmmm I have a doubt, I'm not used to the rigorous names | 06:15:44 | |
When I don't use pkgsCross, how do I get the mingw_w64_headers then? They only live in the crossPackages afaik. | 10:09:38 | |
| It's magic and called splicing: you get a different one depending on whether you use it in buildInputs or nativeBuildInputs | 10:26:08 | |
| Ah, turns out I conflated general cross compiling issues with issues stemming from the mingw64 version in nixpkgs being pretty old. | 15:57:19 | |
| 22 Jul 2021 | ||
| philipp: the mingw versions were updated recently | 13:01:55 | |
| https://github.com/NixOS/nixpkgs/pull/130864 | 13:02:10 | |
| * philipp: the mingw versions were updated recently (23 hours ago) | 13:02:20 | |
| I filed the pr. Thanks for merging 😄 | 13:17:13 | |
| 19:58:45 | ||
| 23 Jul 2021 | ||
| Room Avatar Renderer. | 23:22:33 | |
| 24 Jul 2021 | ||
| gotten GNAT to build a cross-compiler, but at the cost of disabling libada in the build which doesn't seem to be supported / working: https://github.com/NixOS/nixpkgs/pull/131136 | 10:44:05 | |
| so cross GNAT is not that useful unfortunately this way, but I haven't found any good pointers so far how to cross compile libada, may try to do something similar to our libgcc derivation at some point | 10:44:47 | |
| * so cross GNAT is not that useful unfortunately this way, but I haven't found any good pointers so far how to cross compile libada, may try to do something similar to our libgcc derivation at some point, but I don't really have the energy presently | 10:45:00 | |
| At the risk of sounding like a broken record - I still can't manage to override My 'solution' was to prepend my modified All my other attempts either do nothing (e.g. overlaying | 12:27:59 | |
| Main issue seems to be that patchelf is a host executable, but I'm trying to override it based on the context it's used in.. Alternatively, merging this patchelf PR would obsolete my need for patching patchelf: https://github.com/NixOS/patchelf/pull/269 (I just submitted a test case) .. though I assume it would take some time to trickle down to nixpkgs.. | 12:32:41 | |
| Honnestly you should probably work on top of a fork and not try to override such deep dependencies. Not that it would be useless to support that, but I fear you are losing much time sticking to overlays | 12:43:42 | |
| I'd love reviews for (m68k) https://github.com/NixOS/nixpkgs/pull/131310 and (s390) https://github.com/NixOS/nixpkgs/pull/131317 . I've tested both the PRs and they cross-compile various programs. | 13:28:41 | |
Maybe someone can help advise me for how to deal with the double pdp11-aout in https://github.com/NixOS/nixpkgs/pull/131332 | 13:29:04 | |