NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.35k stars 13.59k forks source link

`pkgsCross.aarch64-multiplatform.wlroots` fails to build #308130

Closed colemickens closed 4 months ago

colemickens commented 4 months ago

Steps To Reproduce

For whatever reason, building sway natively for x86_64-linux works, but cross building aarch64-linux on an x86_64-linux host fails, with meson complaining it couldn't find hwdata via pkg-config.

Things generally look "fine" to me, so I'm not sure what the issue is.

Would be nice to have this cross-compiling again. Happy to try some things if anyone has suggestions.

This repros with current nixos-unstable: 58a1abdb

Logs:

❯ PAGER=cat nix log /nix/store/f36n6qcml9sz9m0v1knspd6fxd2mcrc4-wlroots-aarch64-unknown-linux-gnu-0.17.2.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/f36n6qcml9sz9m0v1knspd6fxd2mcrc4-wlroots-aarch64-unknown-linux-gnu-0.17.2.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/fhv13wz8qhaq29clvx38fc8qj7ivlbha-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
mesonConfigurePhase flags: --prefix=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2 --libdir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/lib --libexecdir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/libexec --bindir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/bin --sbindir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/sbin --includedir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/include --mandir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/share/man --infodir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/share/info --localedir=/nix/store/z9n0v9idwk0rjxcycpj93p7a0d595jb0-wlroots-aarch64-unknown-linux-gnu-0.17.2/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain --cross-file=/nix/store/xvvrwznyp55hlq33m4hfighkbzvbqw9s-cross-file.conf
The Meson build system
Version: 1.4.0
Source dir: /build/source
Build dir: /build/source/build
Build type: cross build
Project name: wlroots
Project version: 0.17.2
C compiler for the host machine: aarch64-unknown-linux-gnu-gcc (gcc 13.2.0 "aarch64-unknown-linux-gnu-gcc (GCC) 13.2.0")
C linker for the host machine: aarch64-unknown-linux-gnu-gcc ld.bfd 2.41
Compiler for language c for the build machine not found.
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Compiler for C supports arguments -Woverflow: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Walloca: YES
Compiler for C supports arguments -Wno-missing-braces: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
Found pkg-config: YES (/nix/store/9sf0pipn71prr5sk6d4by3jwarwrln6i-aarch64-unknown-linux-gnu-pkg-config-wrapper-0.29.2/bin/aarch64-unknown-linux-gnu-pkg-config) 0.29.2
Run-time dependency wayland-server found: YES 1.22.0
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency xkbcommon found: YES 1.5.0
Run-time dependency pixman-1 found: YES 0.43.4
Library m found: YES
Library rt found: YES
Run-time dependency wayland-protocols found: YES 1.34
Found pkg-config: YES (/nix/store/39nq7p6jcm9m3xqqm99skwmgsqw4pbbg-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Build-time dependency wayland-scanner found: YES 1.22.0
Program /nix/store/wfh7w6rfcsnscs7w745pllry2n3wjqcl-wayland-1.22.0-bin/bin/wayland-scanner found: YES (/nix/store/wfh7w6rfcsnscs7w745pllry2n3wjqcl-wayland-1.22.0-bin/bin/wayland-scanner)
Has header "linux/dma-buf.h" : YES
Run-time dependency egl found: YES 1.7.0
Run-time dependency gbm found: YES 24.0.5
Run-time dependency glesv2 found: YES 1.7.0
Program ./embed.sh found: YES (/build/source/render/gles2/shaders/./embed.sh)
Run-time dependency vulkan found: YES 1.3.280
Check usable header "vulkan/vulkan.h" with dependency vulkan: YES
Program glslang found: YES (/nix/store/zr2kz18w1mxfwd1ygcd4rsph0v4yygdp-glslang-14.1.0/bin/glslang)
Dependency pixman-1 found: YES 0.43.4 (cached)
Dependency gbm found: YES 24.0.5 (cached)
Checking for function "gbm_bo_get_fd_for_plane" with dependency gbm: YES
Run-time dependency libudev found: YES 255
Run-time dependency libseat found: YES 0.8.0
Did not find CMake 'cmake'
Found CMake: NO
Build-time dependency hwdata found: NO (tried pkgconfig)
Message: Required for the DRM backend.

backend/drm/meson.build:1:9: ERROR: Dependency "hwdata" not found, tried pkgconfig

A full log can be found at /build/source/build/meson-logs/meson-log.txt
Princemachiavelli commented 4 months ago

Fixed in #292415.