!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
FAILED: glib/poppler-enums.h /build/poppler-24.02.0/build/glib/poppler-enums.h
cd /build/poppler-24.02.0/glib && /nix/store/c1fbv3y657fp2m514gjxqqgqfsvayp6v-python3-3.12.7/bin/python3 GLIB2_MKENUMS-NOTFOUND --template poppler-enums.h.template poppler-action.h poppler-date.h poppler-document.h poppler-page.h poppler-attachment.h poppler-form-field.h poppler-annot.h poppler-layer.h poppler-movie.h poppler-media.h poppler.h poppler-structure-element.h > /build/poppler-24.02.0/build/glib/poppler-enums.h
/nix/store/c1fbv3y657fp2m514gjxqqgqfsvayp6v-python3-3.12.7/bin/python3: can't open file '/build/poppler-24.02.0/glib/GLIB2_MKENUMS-NOTFOUND': [Errno 2] No such file or directory

Um, poppler-glib fails and idk why this is happening consistently

What does the find_program output in the configure phase?
03:57:36
@artturin:matrix.orgArtturinTry enabling introspection 04:00:07
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/2810388b346603e13900778f3b7f92c58a2a4277/pkgs/development/libraries/poppler/default.nix#L2804:00:10
@rosscomputerguy:matrix.orgTristan RossIt fails in a long dep chain04:00:19
@rosscomputerguy:matrix.orgTristan RossLooking for the drv04:00:49
@artturin:matrix.orgArtturin
    lib.meta.availableOn stdenv.hostPlatform gobject-introspection
    && stdenv.hostPlatform.emulatorAvailable buildPackages,
04:02:01
@rosscomputerguy:matrix.orgTristan Ross It seems nativeBuildInputs aren't working with cross in certain packages 04:02:23
@rosscomputerguy:matrix.orgTristan Rossunbound has yacc not found04:02:32
@artturin:matrix.orgArtturin https://gitlab.com/search?search=Mkenum&nav_source=navbar&project_id=18965638&group_id=8008379&search_code=true&repository_ref=master 04:02:41
@rosscomputerguy:matrix.orgTristan RossX11-fonts are resulting in exec format errors04:02:44
@rosscomputerguy:matrix.orgTristan RossCould strictDeps be causing the problems I am experiencing?04:03:46
@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

Show newer messages


Back to Room ListRoom Version: 6