When ever I try to build a package using meson, I always get the error message. This has happened across many packages so I assume it’s a problem with my system maybe? I just recently attempted to build hyprland using the flake in nixpkgs and got the error on the derivation for wl-roots.
error: builder for '/nix/store/jvaspc632wiql24vddslp5a39kj3pi7k-wlroots-hyprland-2023-08-25_717ded9.drv' failed with exit code 1;
last 10 log lines:
> Version: 1.2.0
> Source dir: /build/source
> Build dir: /build/source/build
> Build type: native build
> Project name: wlroots
> Project version: 0.17.0-dev
>
> meson.build:1:0: ERROR: Executables created by c compiler gcc are not runnable.
and the full log from nix log /nix/store/jvaspc632wiql24vddslp5a39kj3pi7k-wlroots-hyprland-2023-08-25_717ded9.drv
{ "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/vznmb5141lwjn8mbwh6xqhqn1i83i8yn-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
meson flags: --buildtype=plain --libdir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/lib --libexecdir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/libexec --bindir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/bin --sbindir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/sbin --includedir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/include --mandir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/share/man --infodir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/share/info --localedir=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --prefix=/nix/store/x08347bpj6kydmmx9jbmr1ibrjyay4p6-wlroots-hyprland-2023-08-25_717ded9
The Meson build system
Version: 1.2.0
Source dir: /build/source
Build dir: /build/source/build
Build type: native build
Project name: wlroots
Project version: 0.17.0-dev
meson.build:1:0: ERROR: Executables created by c compiler gcc are not runnable.
Can someone help me figure out whats going wrong?