!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

398 Members
92 Servers

Load older messages


SenderMessageTime
26 Sep 2024
@artturin:matrix.orgArtturinI evalled with nix-eval-jobs on that branch and took a few hours but didn't use a massive amount of memory13:50:09
@artturin:matrix.orgArtturin
In reply to @artturin:matrix.org
I evalled with nix-eval-jobs on that branch and took a few hours but didn't use a massive amount of memory
With the ofborg outpaths.nix that's why it took so long I think
13:57:30
@artturin:matrix.orgArtturinEven with parallel workers13:57:44
@kjeremy:matrix.orgkjeremyI thought that someone suggested that nix-eval-jobs wouldn't exhibit the memory issue14:12:38
27 Sep 2024
@artturin:matrix.orgArtturin I'll merge https://github.com/NixOS/nixpkgs/pull/344499
In 10h as its just simple 0 rebuilds fixes
03:55:13
@elikoga:matrix.orgelikoga set a profile picture.16:27:21
@artturin:matrix.orgArtturin

K900:

nix-repl> pkgsCross.aarch64-multiplatform.mesa
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:9:12:
            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'mesa-aarch64-unknown-linux-gnu-24.2.2'
         whose name attribute is located at /home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute '__impureHostDeps' of derivation 'mesa-aarch64-unknown-linux-gnu-24.2.2'
         at /home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/make-derivation.nix:451:7:
          450|       __propagatedSandboxProfile = unique (computedPropagatedSandboxProfile ++ [ propagatedSandboxProfile ]);
          451|       __impureHostDeps = computedImpureHostDeps ++ computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps ++ __impureHostDeps ++ stdenv.__extraImpureHostDeps ++ [
             |       ^
          452|         "/dev/zero"

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'driversdev' missing
       at /home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/development/libraries/mesa/default.nix:292:5:
          291|   ] ++ lib.optionals needNativeCLC [
          292|     buildPackages.mesa.driversdev
             |     ^
          293|   ];
20:09:51
@k900:0upti.meK900Huhhhhh20:10:02
@artturin:matrix.orgArtturin *

K900:

nix repl --file . --system aarch64-darwin
nix-repl> pkgsCross.aarch64-multiplatform.mesa
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:9:12:
            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'mesa-aarch64-unknown-linux-gnu-24.2.2'
         whose name attribute is located at /home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute '__impureHostDeps' of derivation 'mesa-aarch64-unknown-linux-gnu-24.2.2'
         at /home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/make-derivation.nix:451:7:
          450|       __propagatedSandboxProfile = unique (computedPropagatedSandboxProfile ++ [ propagatedSandboxProfile ]);
          451|       __impureHostDeps = computedImpureHostDeps ++ computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps ++ __impureHostDeps ++ stdenv.__extraImpureHostDeps ++ [
             |       ^
          452|         "/dev/zero"

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'driversdev' missing
       at /home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/development/libraries/mesa/default.nix:292:5:
          291|   ] ++ lib.optionals needNativeCLC [
          292|     buildPackages.mesa.driversdev
             |     ^
          293|   ];
20:10:05
@artturin:matrix.orgArtturin nix repl --file . --system aarch64-darwin 20:10:08
@k900:0upti.meK900Oh20:10:15
@k900:0upti.meK900Yeah that makes sense20:10:18
@k900:0upti.meK900Yeah no Darwin to Linux cross for Mes20:10:24
@k900:0upti.meK900* Yeah no Darwin to Linux cross for Mesa20:10:25
@k900:0upti.meK900No shot20:10:27
@k900:0upti.meK900Not happening20:10:29
@artturin:matrix.orgArtturin I'll just add a or null then 20:11:13
@k900:0upti.meK900If you just want it to eval, maybe make it throw on Darwin cross or something20:12:02
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/34494220:18:24
@k900:0upti.meK900Actually20:18:47
@k900:0upti.meK900 You can just force needNativeCLC to false on Darwin 20:19:02
@k900:0upti.meK900Which is arguably more correct?20:19:09
@k900:0upti.meK900Because there can be no native CLC on Darwin20:19:17
@yehowshua:matrix.orgyehowshua I have a very unusual need. I need to build a riscv cross compiler tuned to a certain architecture. Can I possible use pkgs.pkgsCross.riscv32.gcc as a starting point? If so, how would I go about modifying pkgs.pkgsCross.riscv32.gcc? 20:20:45
@k900:0upti.meK900What do you mean by "tuned to a certain architecture"?20:21:00
@k900:0upti.meK900 Like, -march/-mtune? 20:21:07
@k900:0upti.meK900You can just pass those to any cross GCC and it should just work20:21:22
@yehowshua:matrix.orgyehowshuabasically, I need to pass the binutils config certain options20:21:24
@yehowshua:matrix.orgyehowshuawell - this is a non upstream gcc fork I'm working on20:21:35
@yehowshua:matrix.orgyehowshuaI also need to point the derivation at src at the GitHub repo20:21:57

Show newer messages


Back to Room ListRoom Version: 6