!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

567 Members
123 Servers

Load older messages


SenderMessageTime
30 Jun 2021
@qyliss:fairydust.spaceAlyssa RossI'm pretty sure it's going to need an LLVM patch to fix :(21:47:58
1 Jul 2021
@sternenseemann:systemli.orgsterni (he/him) Alyssa Ross: when I add buildPackages.stdenv.cc and ncurses to depsBuildBuild $CC_FOR_BUILD … -ltinfo seems to do what its supposed to 16:02:12
@qyliss:fairydust.spaceAlyssa RossI'd really appreciate any help anybody could give me figuring out this really hairy cross-compilation issue https://github.com/NixOS/nixpkgs/pull/12888814:27:58
@sternenseemann:systemli.orgsterni (he/him)but no idea yet whether it'll just work with llvm 1216:06:21
@qyliss:fairydust.spaceAlyssa Ross(cross-compilation of anything graphical is currently blocked on this, because Mesa depends on LLVM 12)14:28:16
@sternenseemann:systemli.orgsterni (he/him)(it doesn't)20:29:06
@qyliss:fairydust.spaceAlyssa Rossyeah I could get it to work fine outside of the LLVM derivation17:02:36
2 Jul 2021
@ius:nltrix.netius joined the room.19:00:09
3 Jul 2021
@sternenseemann:systemli.orgsterni (he/him) Alyssa Ross: do you know if only with 12 llvm started to link against ncurses for llvm-config? because I don't see why it would work with the prior versions 09:44:00
@sternenseemann:systemli.orgsterni (he/him)there, ncurses is always a non native dependency09:44:11
@hexa:lossy.networkhexa joined the room.15:51:24
@piegames:matrix.orgpiegames joined the room.15:51:38
@ius:nltrix.netius I made some changes to patchelf and would like to test it by rebuilding all derivations targeting my cross arch (and only those), is there a way to do this? crossOverlays seems pretty convenient for packages running on the target, but it seems of little use for tools which run on the build machine. A naive overlay runs into a recursion issue due to affecting all derivations.. 18:59:57
@ius:nltrix.netius I tackled similar issues with gcc before, for which checking stdenv.targetPlatfor.isXX seems to work, but can't get it to work for patchelf.. 19:01:15
@ius:nltrix.netius I spent some time reading the nixpkgs manuals, and wonder whether pkgs{Build/Host.Target} would be useful/relevant in any way (but have to admit I don't understand them well enough) 19:02:49
@symphorien:xlumurb.eusymphorien fork nixpkgs and patch the derivation for patchelf with: src = if stdenv.targetPlatform == "foo" then mysource else theoriginalsource ? 19:22:49
@symphorien:xlumurb.eusymphorienhopefully this should not affect non-cross patchelf19:23:41
@ius:nltrix.netiusHmm, I already tried that using an overlay, but ended up forking nixpkgs anyway for the gcc issues I had earlier - let me give that a go to see if it helps19:36:31
@ius:nltrix.netius So I just tried that, doesn't seem to have any effect. In many hours of Googling I also discovered builtins.trace, adding that to print the build/host/target triplet shows it's being evaluated 3 times: {x64, x64, x64}; {x64, x64, x64}; {x64, x64, ppc} 20:22:43
4 Jul 2021
@symphorien:xlumurb.eusymphorien there are more handy functions in lib.debug 14:54:19
@ius:nltrix.netius Ah excellent, at the very least my trace printing is less awkward now (just trace won't eval a sequence), traceSeq does 15:53:23
@ius:nltrix.netius Maybe I need to approach this from the other end and instead of patching patchelf, try to modify the part where stdenv includes it? 16:33:41
@ius:nltrix.netius

Looking into stdenv I notice there are some other peculiarities (although I hardly understand how it works in the first place)

 55     mipsel-linux = stagesLinux;
 56     powerpc-linux = /* stagesLinux */ stagesNative;
 57     powerpc64-linux = stagesLinux;

powerpc is the odd one out for some reason

16:34:42
5 Jul 2021
@qyliss:fairydust.spaceAlyssa Rosssternenseemann: I think I found the commit that changed it...12:29:28
@sternenseemann:systemli.orgsterni (he/him) Alyssa Ross: in llvm? 13:07:08
@qyliss:fairydust.spaceAlyssa Rossyeah13:07:13
@sternenseemann:systemli.orgsterni (he/him)interesting!13:07:20
@qyliss:fairydust.spaceAlyssa RossI'm going to need to find it again now...13:07:30
@sternenseemann:systemli.orgsterni (he/him)I'm intrigued now what the actual cause is because the only explanation that would make sense to me is that the terminfo dependency is new in LLVM 1213:08:11
@qyliss:fairydust.spaceAlyssa Rossnope, it was a cmake refactor13:08:33

Show newer messages


Back to Room ListRoom Version: 6