-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on
Description
Nixpkgs version
- Unstable (25.05) (35f9b4c)
Describe the bug
libqmi fails to cross-compile
Steps to reproduce
- Have an aarch64 system (not sure if the bug is aarch64 specific, might reproduce with other cross setups too.)
git checkout 35f9b4c165413eb1f419b3d46889194ec82eda4f(nixpkgsmasterwhen this issue is being filed)nix build --impure --expr '(import ./. { localSystem.system = "aarch64-linux"; crossSystem.system = "x86_64-linux"; }).libqmi'
Expected behaviour
The package builds
Screenshots
No response
Relevant log output
(Could not paste the entire log, these parts seemed relevant, but maybe they are just noise and the issue is somewhere else, who knows...)
ERROR: Error in gtkdoc helper script:
ERROR: ['/nix/store/l0xb0q5f5kipgrgg3x3iram3xs72izqq-gtk-doc-1.34.0/bin/gtkdoc-mkhtml', '--path=/build/source/docs/reference/libqmi-glib:/build/source/build/docs/reference/libqmi-glib', 'libqmi-glib', '../libqmi-glib-docs.xml'] failed with status 6
[...]
FAILED: install script '/nix/store/3jl841zpqya93szdnbnhrm0khgprfl54-meson-1.7.0/bin/meson --internal gtkdoc --sourcedir=/build/source --builddir=/build/source/build --subdir=docs/reference/libqmi-glib --headerdirs=/build/source/src/libqmi-glib/generated/.@@/build/source/build/src/libqmi-glib/generated/.@@/build/source/src/libqmi-glib/.@@/build/source/build/src/libqmi-glib/. --mainfile=libqmi-glib-docs.xml --modulename=libqmi-glib --moduleversion= --mode=auto --gtkdoc-scan=/nix/store/l0xb0q5f5kipgrgg3x3iram3xs72izqq-gtk-doc-1.34.0/bin/gtkdoc-scan --gtkdoc-scangobj=/nix/store/l0xb0q5f5kipgrgg3x3iram3xs72izqq-gtk-doc-1.34.0/bin/gtkdoc-scangobj --gtkdoc-mkdb=/nix/store/l0xb0q5f5kipgrgg3x3iram3xs72izqq-gtk-doc-1.34.0/bin/gtkdoc-mkdb --gtkdoc-mkhtml=/nix/store/l0xb0q5f5kipgrgg3x3iram3xs72izqq-gtk-doc-1.34.0/bin/gtkdoc-mkhtml --gtkdoc-fixxref=/nix/store/l0xb0q5f5kipgrgg3x3iram3xs72izqq-gtk-doc-1.34.0/bin/gtkdoc-fixxref --namespace=qmi --run=/nix/store/98gq97lq6yi9pxbic051k39l6vqs4nha-qemu-user-9.2.0/bin/qemu-x86_64 --htmlargs= --scanargs=--rebuild-types@@--deprecated-guards="QMI_DISABLE_DEPRECATED" --scanobjsargs= --gobjects-types-file=/build/source/docs/reference/libqmi-glib/libqmi-glib.types --fixxrefargs=--html-dir=/nix/store/mk4kckhmlsjqlfg72fd63z7w656rgv05-libqmi-x86_64-unknown-linux-gnu-1.34.0/share/gtk-doc/html/libqmi-glib@@--extra-dir=/nix/store/prcwm5bbndiz1zvh0vwds99hj3q9yz30-glib-x86_64-unknown-linux-gnu-2.82.4/share/gtk-doc/html/glib@@--extra-dir=/nix/store/prcwm5bbndiz1zvh0vwds99hj3q9yz30-glib-x86_64-unknown-linux-gnu-2.82.4/share/gtk-doc/html/gio --mkdbargs= --html-assets= --content-files=/build/source/build/docs/reference/libqmi-glib/libqmi-glib-sections.txt@@/build/source/build/docs/reference/libqmi-glib/version.xml --expand-content-files= --ignore-headers=qmi-ctl.h@@qmi-endpoint.h@@qmi-endpoint-mbim.h@@qmi-endpoint-qmux.h@@qmi-endpoint-qrtr.h@@qmi-enums-private.h@@qmi-enum-types-private.h@@qmi-file.h@@qmi-flag-types-private.h@@qmi-helpers.h@@qmi-net-port-manager.h@@qmi-net-port-manager-rmnet.h@@qmi-net-port-manager-qmiwwan.h@@test-fixture.h@@test-port-context.h@@if_link_rmnet.h --installdir= --cc=x86_64-unknown-linux-gnu-gcc --ld=x86_64-unknown-linux-gnu-gcc --cflags=-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_DISABLE_DEPRECATION_WARNINGS -I/nix/store/2jnpyw4pyk5fa6k6cvfniw9xavpxg9k6-glib-x86_64-unknown-linux-gnu-2.82.4-dev/include/glib-2.0 -I/nix/store/prcwm5bbndiz1zvh0vwds99hj3q9yz30-glib-x86_64-unknown-linux-gnu-2.82.4/lib/glib-2.0/include -I/nix/store/2jnpyw4pyk5fa6k6cvfniw9xavpxg9k6-glib-x86_64-unknown-linux-gnu-2.82.4-dev/include -I/nix/store/rvy0v04v4fjwbzfpr1wkb006hzqvi0qr-libqrtr-glib-x86_64-unknown-linux-gnu-1.2.2-dev/include/libqrtr-glib -I/nix/store/2jnpyw4pyk5fa6k6cvfniw9xavpxg9k6-glib-x86_64-unknown-linux-gnu-2.82.4-dev/include/gio-unix-2.0 -I/nix/store/z3vlxd49pzb5zngck30kfp9br32m2djq-libmbim-x86_64-unknown-linux-gnu-1.30.0-dev/include/libmbim-glib -I/build/source/src/libqmi-glib/. -I/build/source/build/src/libqmi-glib/. -I/build/source/src/libqmi-glib/generated/. -I/build/source/build/src/libqmi-glib/generated/. -I/build/source/. -I/build/source/build/. -DHAVE_CONFIG_H -Wno-unused-parameter -Wno-cast-function-type -Wno-packed --ldflags=-L/build/source/build/src/libqmi-glib -Wl,-rpath,/build/source/build/src/libqmi-glib -lqmi-glib -L/nix/store/prcwm5bbndiz1zvh0vwds99hj3q9yz30-glib-x86_64-unknown-linux-gnu-2.82.4/lib -lglib-2.0 -lgio-2.0 -lgobject-2.0 -L/nix/store/1v3k9r8960z1q6hv329n9b2zdb09gl33-libqrtr-glib-x86_64-unknown-linux-gnu-1.2.2/lib -lqrtr-glib -L/nix/store/ysg3zpxs8kv04v4kdi43v4lj4ikch1q9-libmbim-x86_64-unknown-linux-gnu-1.30.0/lib -lmbim-glib' failed with exit code 1.Additional context
Bisected to 562b604, seems to be fixed by reverting it, or using an overlay like
(final: prev: {
libqmi = prev.libqmi.override {
meson = prev.buildPackages.meson.overrideAttrs {
src = final.fetchFromGitHub {
owner = "mesonbuild";
repo = "meson";
tag = "1.6.1";
hash = "sha256-t0JItqEbf2YqZnu5mVsCO9YGzB7WlCfsIwi76nHJ/WI=";
};
};
};
})
System metadata
- system:
"aarch64-linux" - host os:
Linux 6.14.0-rc4, NixOS, 25.05 (Warbler), 25.05.20250221.f1c5d6d - multi-user?:
yes - sandbox:
yes - version:
nix-env (Lix, like Nix) 2.91.1 System type: aarch64-linux Additional system types: Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/user/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/user/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/user/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/user/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/arlvp57h8hxhfq256hnklyv0i2zl6zrz-lix-2.91.1/share - nixpkgs:
/nix/store/42v8s7qrm546p44zzmqlnvvi53crqvxd-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on