!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

557 Members
121 Servers

Load older messages


SenderMessageTime
13 Dec 2021
@rick:matrix.ciphernetics.nlRick (Mindavi)Yeah, last I checked it worked fine :)22:13:29
14 Dec 2021
@mic92:nixos.devMic92for those who care about cross-compiling systemd: https://github.com/NixOS/nixpkgs/pull/150491/files#r76735153514:17:54
15 Dec 2021
@mic92:nixos.devMic92Regression in statically-compiled util-linux blocks nixpkgs-bump in the nix repo https://hydra.nixos.org/build/161448992/nixlog/113:35:43
@mic92:nixos.devMic92 * Regression in statically-compiled util-linux blocks nixpkgs-bump in the nix repo https://hydra.nixos.org/build/161448992/nixlog/1 https://hydra.nixos.org/build/161448992 https://github.com/NixOS/nix/pull/5722#issuecomment-99477034713:36:02
@qyliss:fairydust.spaceAlyssa Rossthanks for the heads up!14:29:23
@qyliss:fairydust.spaceAlyssa Ross(about systemd)14:29:36
17 Dec 2021
@t_unix:matrix.orgT_UNIX changed their display name from t_unix to T_UNIX.12:26:05
@trofi:matrix.orgtrofi What is the correct way to pull in openmp related to stdenv? Example package failure: https://github.com/NixOS/nixpkgs/pull/150912 18:14:48
@trofi:matrix.orgtrofi I think it would be useful for clangStdenv to contain reference to matching llvmPackages. 18:19:24
@trofi:matrix.orgtrofiHeh https://github.com/NixOS/nixpkgs/issues/7981818:28:28
19 Dec 2021
@Las:matrix.orgLas Do I need to have nativeBuildInputs = [ buildPackages.stdenv.cc ]; to support cross-compilation? 17:27:08
@Las:matrix.orgLasThis is in alsa-firmware17:27:12
@rick:matrix.ciphernetics.nlRick (Mindavi)That's probably related to the attached patch, I don't think it's always needed17:52:36
@artturin:matrix.orgArtturin
In reply to @Las:matrix.org
Do I need to have nativeBuildInputs = [ buildPackages.stdenv.cc ]; to support cross-compilation?
having that is redundant
18:03:44
@artturin:matrix.orgArtturin you can confirm it by building ".#pkgsCross.aarch64-multiplatform.alsa-firmware" and then removing buildPackages.stdenv.cc and building again 18:04:29
@artturin:matrix.orgArtturinnothing will be rebuilt18:04:35
@Las:matrix.orgLas Is the gcc used for cross compilation still called gcc? 19:01:56
@Las:matrix.orgLas * Is the gcc used for cross compilation still called cc? 19:02:05
@rick:matrix.ciphernetics.nlRick (Mindavi) No, I don't think so, you can check in a nix-shell with echo $CC 19:11:19
@sternenseemann:systemli.orgsterni ${stdenv.cc.targetPrefix}cc 23:16:38
@sternenseemann:systemli.orgsterni
In reply to @Las:matrix.org
Do I need to have nativeBuildInputs = [ buildPackages.stdenv.cc ]; to support cross-compilation?
that compiler is for building something for the build system and is only necessary if you e. g. need to compile the build system which is executed during the build then
23:17:46
@sternenseemann:systemli.orgsterni putting it into nativeBuildInputs is hacky at best though, you can get such a compiler by simply putting something into depsBuildBuild (probably another way to force it?) and it'll be available as $CC_FOR_BUILD. 23:18:27
@Las:matrix.orgLasThanks.23:18:51
@Las:matrix.orgLasTBF I think that's hackier, if you have to put "something" in but it doesn't matter what it is.23:19:14
20 Dec 2021
@kunrooted:matrix.orgkunrooted changed their profile picture.09:14:29
@sternenseemann:systemli.orgsterni Las: well just put buildPackages.stdenv.cc in there 09:25:12
@sternenseemann:systemli.orgsternithen it's in its correct place plus you get it as $CC_FOR_BUILD09:25:25
@cdepillabout:matrix.orgcdepillabout
In reply to @sternenseemann:systemli.org
putting it into nativeBuildInputs is hacky at best though, you can get such a compiler by simply putting something into depsBuildBuild (probably another way to force it?) and it'll be available as $CC_FOR_BUILD.
I've always wondered how this worked. I wonder if I'd be able to refactor some of my derivations at work to stop explicitly taking things from pkgsBuildHost and instead putting things intodepsBuildBuild.
14:20:33
@artturin:matrix.orgArtturin
In reply to @cdepillabout:matrix.org
I've always wondered how this worked. I wonder if I'd be able to refactor some of my derivations at work to stop explicitly taking things from pkgsBuildHost and instead putting things intodepsBuildBuild.
shouldn't pkgsBuildHost packages just be in nativeBuildInputs and then you wont have to explicitly take then from pkgsBuildHost
17:02:26
@artturin:matrix.orgArtturin

https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies

| host → target | attribute name | offset |
| ------------------- | ------------------- | -------- |
| build --> build | depsBuildBuild | -1, -1 |
| build --> host | nativeBuildInputs | -1, 0 |
| build --> target | depsBuildTarget | -1, 1 |
| host --> host | depsHostHost | 0, 0 |
| host --> target | buildInputs | 0, 1 |
| target --> target | depsTargetTarget | 1, 1 |

17:02:35

There are no newer messages yet.


Back to Room ListRoom Version: 6