!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
128 Servers

Load older messages


SenderMessageTime
5 Jan 2025
@artturin:matrix.orgArtturin
In reply to @rosscomputerguy:matrix.org
unbound has yacc not found
I was looking at the code in the web interface and didn't see anything wrong.. because the fix was merged 16h ago https://github.com/NixOS/nixpkgs/commit/a8f36e39dcd9ac6f76c9ca5a9856401fd322d464
04:15:08
@rosscomputerguy:matrix.orgTristan RossHuh04:15:24
@rosscomputerguy:matrix.orgTristan RossOh Jarred lol04:15:52
@rosscomputerguy:matrix.orgTristan RossI was on a nixpkgs commit from this morning so that's why it failed in my pull04:16:43
@rosscomputerguy:matrix.orgTristan RossWell, 100 builds to go to having COSMIC on RISC-V (cross).04:25:29
@rosscomputerguy:matrix.orgTristan Ross
  --- stderr
  thread 'main' panicked at /build/cosmic-settings-1.0.0-alpha.4-unstable-2024-12-17-vendor/bindgen-0.69.5/lib.rs:622:31:
  Unable to find libclang: "the `libclang` shared library at /nix/store/pcs60p9pghggp5ycs47kk53cddvgym86-clang-riscv64-unknown-linux-gnu-18.1.8-lib/lib/libclang.so.18.1.8 could not be opened: /nix/store/pcs60p9pghggp5ycs47kk53cddvgym86-clang-riscv64-unknown-linux-gnu-18.1.8-lib/lib/libclang.so.18.1.8: cannot open shared object file: No such file or directory"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish..

Rip

05:02:38
@bitestring:matrix.orgbitestring joined the room.08:24:02
@rosscomputerguy:matrix.orgTristan Ross I've discovered that using pkgs in nixosSystem vs nixpkgs.{cross,local}System options has different behaviors regarding nativeBuildInputs. 18:07:05
@rosscomputerguy:matrix.orgTristan RossSo cross compiling isn't likely to go right with the options.18:07:27
@artturin:matrix.orgArtturinHow so?18:07:33
@rosscomputerguy:matrix.orgTristan RossI'm not entirely sure.18:07:43
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/NixOS/nixpkgs/pull/371049 this issue is where it was discovered18:07:55
@rosscomputerguy:matrix.orgTristan Ross
let
  someRevOnMaster = "742e83951eefc0a0a74dd95a6523300dacfb4238";
  inherit
    (import (builtins.getFlake "github:nixos/nixpkgs/${someRevOnMaster}") {
      system = "aarch64-linux";
    })
    pkgsCross
    ;
in
builtins.head (
  builtins.filter (drv: drv.name == "X11-fonts")
    (pkgsCross.riscv64.nixos {
      fonts.fontDir.enable = true;
      boot.isContainer = true;
    }).config.environment.systemPackages
)

This builds

18:08:13
@rosscomputerguy:matrix.orgTristan Ross
let
  nixpkgs = builtins.getFlake "github:nixos/nixpkgs/d29ab98cd4a70a387b8ceea3e930b3340d41ac5a";
in
builtins.head (
  builtins.filter (drv: drv.name == "X11-fonts")
    (import "${nixpkgs}/nixos/lib/eval-config.nix" {
      modules = [
        {
          fonts.fontDir.enable = true;
          boot.isContainer = true;
          nixpkgs.crossSystem = { system = "riscv64-linux"; };
          nixpkgs.localSystem = { system = "aarch64-linux"; };
        }
      ];
    }).config.environment.systemPackages
)

This throws an exec format error

18:08:28
@rosscomputerguy:matrix.orgTristan RossI though they'd have the exact same behavior but it seems they don't18:09:27
@artturin:matrix.orgArtturin Both build on 89019580b73ddd7d4b05fa5f6952a4676538c031 (Changed them to my local master so I don't have to rebuild things) 18:19:15
@rosscomputerguy:matrix.orgTristan RossBoth build?18:19:41
@rosscomputerguy:matrix.orgTristan RossDo you have binfmt?18:19:51
@artturin:matrix.orgArtturinNope18:20:32
@artturin:matrix.orgArtturinAlso I'm on x86_64 linux lol18:20:44
@rosscomputerguy:matrix.orgTristan RossOh lol18:20:49
@rosscomputerguy:matrix.orgTristan RossThat makes this even stranger18:20:57
@rosscomputerguy:matrix.orgTristan RossSo it's only an issue on aarch64 with the local/cross system nixpkgs options then?18:21:24
@artturin:matrix.orgArtturin
$ nix eval --file test.nix drvPath
"/nix/store/0gp81b50wg2bf2dbqswkbhvy21i8x552-X11-fonts.drv"
$ nix eval --file test-fail.nix drvPath
"/nix/store/0gp81b50wg2bf2dbqswkbhvy21i8x552-X11-fonts.drv"
18:24:07
@artturin:matrix.orgArtturinSame for you? 18:25:15
@artturin:matrix.orgArtturin
$ nix build --file test.nix --rebuild
evaluation warning: system.stateVersion is not set, defaulting to 25.05. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion.
error: a 'aarch64-linux' with features {} is required to build '/nix/store/0gp81b50wg2bf2dbqswkbhvy21i8x552-X11-fonts.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, ca-derivations, kvm, nixos-test}

I got the drv from cache it seems

18:26:04
@rosscomputerguy:matrix.orgTristan Ross
  1. /nix/store/0gp81b50wg2bf2dbqswkbhvy21i8x552-X11-fonts.drv
  2. /nix/store/1xfdmcvvjc1s57lp4yfq5x5cl9zva9bk-X11-fonts.drv
18:26:06
@artturin:matrix.orgArtturinnix-diff those18:26:17
@rosscomputerguy:matrix.orgTristan Rosshttps://termbin.com/2ipd18:27:01
@rosscomputerguy:matrix.orgTristan RossIf I use the same rev from the 2nd in the 1st one then the 1st fails18:28:33

Show newer messages


Back to Room ListRoom Version: 6