!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

574 Members
127 Servers

Load older messages


SenderMessageTime
5 Jan 2025
@artturin:matrix.orgArtturin
In reply to @rosscomputerguy:matrix.org
Could strictDeps be causing the problems I am experiencing?
It exposes broken build systems or derivations
04:08:41
@artturin:matrix.orgArtturinWhich by luck work on native04:08:59
@rosscomputerguy:matrix.orgTristan RossOh04:09:06
@rosscomputerguy:matrix.orgTristan Ross Adding buildPackages.bison to depsBuildBuild fixes unbound 04:10:18
@rosscomputerguy:matrix.orgTristan RossNow, let's see if poppler can make more progress04:13:49
@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

Show newer messages


Back to Room ListRoom Version: 6