| 5 Jan 2025 |
Artturin | https://github.com/NixOS/nixpkgs/blob/2810388b346603e13900778f3b7f92c58a2a4277/pkgs/development/libraries/poppler/default.nix#L28 | 04:00:10 |
Tristan Ross | It fails in a long dep chain | 04:00:19 |
Tristan Ross | Looking for the drv | 04:00:49 |
Artturin | lib.meta.availableOn stdenv.hostPlatform gobject-introspection
&& stdenv.hostPlatform.emulatorAvailable buildPackages,
| 04:02:01 |
Tristan Ross | It seems nativeBuildInputs aren't working with cross in certain packages | 04:02:23 |
Tristan Ross | unbound has yacc not found | 04:02:32 |
Artturin | https://gitlab.com/search?search=Mkenum&nav_source=navbar&project_id=18965638&group_id=8008379&search_code=true&repository_ref=master | 04:02:41 |
Tristan Ross | X11-fonts are resulting in exec format errors | 04:02:44 |
Tristan Ross | Could strictDeps be causing the problems I am experiencing? | 04:03:46 |
Artturin | 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 | Which by luck work on native | 04:08:59 |
Tristan Ross | Oh | 04:09:06 |
Tristan Ross | Adding buildPackages.bison to depsBuildBuild fixes unbound | 04:10:18 |
Tristan Ross | Now, let's see if poppler can make more progress | 04:13:49 |
Artturin | 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 |
Tristan Ross | Huh | 04:15:24 |
Tristan Ross | Oh Jarred lol | 04:15:52 |
Tristan Ross | I was on a nixpkgs commit from this morning so that's why it failed in my pull | 04:16:43 |
Tristan Ross | Well, 100 builds to go to having COSMIC on RISC-V (cross). | 04:25:29 |
Tristan 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 joined the room. | 08:24:02 |
Tristan Ross | I've discovered that using pkgs in nixosSystem vs nixpkgs.{cross,local}System options has different behaviors regarding nativeBuildInputs. | 18:07:05 |
Tristan Ross | So cross compiling isn't likely to go right with the options. | 18:07:27 |
Artturin | How so? | 18:07:33 |
Tristan Ross | I'm not entirely sure. | 18:07:43 |
Tristan Ross | https://github.com/NixOS/nixpkgs/pull/371049 this issue is where it was discovered | 18:07:55 |
Tristan 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 |
Tristan 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 |
Tristan Ross | I though they'd have the exact same behavior but it seems they don't | 18:09:27 |
Artturin | Both build on 89019580b73ddd7d4b05fa5f6952a4676538c031 (Changed them to my local master so I don't have to rebuild things) | 18:19:15 |