Sender | Message | Time |
---|---|---|
1 Oct 2024 | ||
Colin |
| 08:15:32 |
Colin | python packages take about 10x as long to evaluate for cross compilation than non-cross | 08:15:50 |
Colin | this one is 6.4s on my machine ( | 08:16:31 |
Colin | first: is this reproducible by anyone here, or some quirk with my setup? and second: any idea where to look, or how to workaround this? | 08:17:21 |
Artturin | https://github.com/NixOS/nixpkgs/issues/338231 | 08:17:54 |
kjeremy | Seems to be becoming a higher priority | 13:07:52 |
-_o joined the room. | 20:59:14 | |
4 Oct 2024 | ||
frontear joined the room. | 05:31:56 | |
f44 joined the room. | 08:45:30 | |
6 Oct 2024 | ||
@sofo:matrix.org left the room. | 15:23:50 | |
srasu joined the room. | 15:51:38 | |
srasu | I'm just getting started with a project I'm trying to get to cross compile on nix, and I'm trying to get my feet. Is the cross compilation page on the nix.dev tutorials site still the best place to get started? | 15:55:15 |
srasu | Right now I'm trying to find what to add to my include directories on nix when on my arch machine it's /usr/x86_64-w64-mingw32/include , which obviously doesn't exist on nix and I can't find enough docs on pkgsCross.mingwW64 to figure out how to find the equivalent directory. | 15:58:14 |
Artturin | In reply to @suskeyhose:matrix.orgAdd your deps to buildInputs and they'll be in your "include" dirs | 16:02:50 |
Artturin | https://github.com/NixOS/nixpkgs/blob/570a50b878ca7654548a493509de3e8175c84364/pkgs/build-support/cc-wrapper/setup-hook.sh#L72 | 16:03:33 |
srasu | In reply to @artturin:matrix.orgThat's all fine and dandy but I have no idea what package would be the one to be included, because it's not a specific package? It's a part of the mingw runtime. | 16:05:29 |
Artturin | ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64 | 16:06:55 |
srasu | thanks, I'll give that a shot | 16:07:26 |
Artturin |
| 16:07:28 |
Artturin | mingw_w64_headers | 16:09:02 |
srasu | that's gotten me closer than I've gotten before with nix, now I'm not running into issues with the wrong sizes of stdint being defined, which is good | 16:09:10 |
Artturin | * mingw_w64_headers EDIT mingw_w64 contains headers, there's a separate package for bootstrapping reasons it seems | 16:10:20 |
srasu | Ok, now I'm back to getting libblocksruntime to be visible to the target, but I've dealt with that some before | 16:11:56 |
Artturin | You can --keep-failed and check the env-vars in the dir in /tmp | 16:13:20 |
Artturin | What's your error, is the lib in buildInputs? | 16:14:26 |
Artturin | Show the expr | 16:15:11 |
srasu | doing a devShell
| 16:16:11 |
srasu | that windows-pkgs is just an extra nixpkgs with an override on libblocksruntime that patches the builder to use the mingw compiler | 16:17:00 |
srasu | without it the build fails | 16:17:08 |
srasu | it's on a custom makefile which replaces cpath with wincpath for cross compilation | 16:18:18 |