!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

565 Members
124 Servers

Load older messages


SenderMessageTime
19 Aug 2021
@sternenseemann:systemli.orgsterniso you need to use targetPackages if you want to get the “default” compiler of that package set19:07:13
@qyliss:fairydust.spaceAlyssa Ross that's the same as just nativeBuildInputs = [ targetPackages.stdenv.cc ]; when using callPackage though, right? thanks to splicing? 19:08:33
@symphorien:xlumurb.eusymphorienweird because the manual says targetPackages is a synonym for pkgsTargetTarget so the cc from targetPackage should never be cross ???19:08:35
@symphorien:xlumurb.eusymphorienah you said "cc is the cc used to build the set"19:09:30
@symphorien:xlumurb.eusymphorienso cc does not really "belong" to the set19:09:39
@qyliss:fairydust.spaceAlyssa Rossyeah stdenv is sort of one level back in the chain19:09:52
@symphorien:xlumurb.eusymphorienok I think I understand19:10:04
@qyliss:fairydust.spaceAlyssa Rosswhen you cross compile, there are three package sets involved19:10:24
@qyliss:fairydust.spaceAlyssa Ross(build, build, build) -> (build, build, target) -> (build, target, target)19:11:06
@qyliss:fairydust.spaceAlyssa Rossstdenv.cc is the compiler from the middle package set19:11:29
@sternenseemann:systemli.orgsterni
In reply to @symphorien:xlumurb.eu
weird because the manual says targetPackages is a synonym for pkgsTargetTarget so the cc from targetPackage should never be cross ???
note also that targetPackages and buildPackages are relative terms i. e. for a given set, set.buildPackages is the “previous” set used to build the set and targetPackages is the “next” set built using the set
19:24:27
@sternenseemann:systemli.orgsternie. g. pkgs.buildPackages.targetPackages = pkgs19:24:57
@sternenseemann:systemli.orgsterni symphorien: also have you seen? https://github.com/NixOS/nixpkgs/pull/124498 may be related to what you are trying to do 19:27:58
20 Aug 2021
@sternenseemann:systemli.orgsterni John Ericson: https://github.com/NixOS/nixpkgs/blob/f4ddae2ba55889d5f21bd4601bcf6cc256baf39c/pkgs/stdenv/adapters.nix#L70-L73 shouldn't this read libc == "glibc"? I just stumbled over this while reviewing your PR 08:51:19
@sternenseemann:systemli.orgsternialthough it is if at all an unrelated bug08:51:29
@Ericson2314:matrix.orgJohn Ericson sterni (he/him): yeah it should be 15:01:59
@Ericson2314:matrix.orgJohn Ericsongood catch!15:02:02
21 Aug 2021
@Ericson2314:matrix.orgJohn Ericson sterni (he/him): hmm aarch64 + musl is failing with gcc-ng 20:09:24
@Ericson2314:matrix.orgJohn Ericsonconfigure time20:09:27
@Ericson2314:matrix.orgJohn Ericsonlooks like some CPP issue20:09:49
@Ericson2314:matrix.orgJohn Ericson-gnu suceeds and -musl fails20:10:02
@Ericson2314:matrix.orgJohn Ericson but this is funny as this this is pre building any libcs 20:10:14
@Ericson2314:matrix.orgJohn Ericson There was a thing messing with LOCAL_INCLUDE_DIR. Maybe that will help. 20:16:29
@Ericson2314:matrix.orgJohn Ericsonnope20:25:04
@sternenseemann:systemli.orgsterni John Ericson: sure that -gnu / -musl doesn't also influence buildPackages in that case? 20:26:39
@Ericson2314:matrix.orgJohn Ericsonoh it definitely does20:26:53
@sternenseemann:systemli.orgsternisurely gcc needs a build platform libc20:26:55
@Ericson2314:matrix.orgJohn Ericsonsome specfile nonsense20:26:57
@Ericson2314:matrix.orgJohn Ericsonthe build platform libc is glibc in both cases20:27:14
@sternenseemann:systemli.orgsterni okay so you're not using pkgsMusl 20:27:32

Show newer messages


Back to Room ListRoom Version: 6