Cross compilation is broken again #469

Closed
opened 2024-08-15 21:54:37 +00:00 by qyriad · 2 comments
Owner

Brought up in #467, when cross compiling Lix with something like nix build --impure -E 'let f = builtins.getFlake "git+file:$PWD"; pkgs = import f.inputs.nixpkgs { crossSystem.system = "aarch64-linux"; }; in pkgs.callPackage ./package.nix { }, Meson complains that it doesn't know what kernel it's compiling for:

meson.build:422:18: ERROR: Kernel not defined or could not be autodetected.

I assume this was caused by a Nixpkgs change or possibly a Meson regression, and can probably be worked around with some changes to a cross file or native file.

Brought up in #467, when cross compiling Lix with something like `nix build --impure -E 'let f = builtins.getFlake "git+file:$PWD"; pkgs = import f.inputs.nixpkgs { crossSystem.system = "aarch64-linux"; }; in pkgs.callPackage ./package.nix { }`, Meson complains that it doesn't know what kernel it's compiling for: ``` meson.build:422:18: ERROR: Kernel not defined or could not be autodetected. ``` I assume this was caused by a Nixpkgs change or possibly a Meson regression, and can *probably* be worked around with some changes to a cross file or native file.
qyriad added the
Area/build-packaging
Cross Compilation
labels 2024-08-15 21:54:37 +00:00
Owner

yeah that should be fixed with a cross file, surely??? either that or we can change from using kernel to something slightly different.

yeah that should be fixed with a cross file, surely??? either that or we can change from using kernel to something slightly different.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/1762 ("meson: Don't use target_machine")
  • commit message in cl/1781 ("meson: Don't use target_machine")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/1762", "number": 1762, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/1781", "number": 1781, "kind": "commit message"}], "cl_meta": {"1762": {"change_title": "meson: Don't use `target_machine`"}, "1781": {"change_title": "meson: Don't use `target_machine`"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/1762](https://gerrit.lix.systems/c/lix/+/1762) ("meson: Don't use `target_machine`") * commit message in [cl/1781](https://gerrit.lix.systems/c/lix/+/1781) ("meson: Don't use `target_machine`")
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#469
No description provided.