Cross-compilation to armv7l-unknown-linux-gnueabihf is broken on HEAD #624

Closed
opened 2025-01-15 12:14:24 +00:00 by yu-re-ka · 4 comments
Member

Describe the bug

Cross-compilation to armv7l-unknown-linux-gnueabihf is broken on HEAD

Steps To Reproduce

  1. build pkgsCross.armv7l-hf-multiplatform.lix with a Lix HEAD overlay

Expected behavior

The cross-compiled Lix package should build

nix --version output

nix (Lix, like Nix) 2.92.0-dev-pre20250112-38dd196

Additional context

Log:
https://termbin.com/33td

## Describe the bug Cross-compilation to armv7l-unknown-linux-gnueabihf is broken on HEAD ## Steps To Reproduce 1. build pkgsCross.armv7l-hf-multiplatform.lix with a Lix HEAD overlay ## Expected behavior The cross-compiled Lix package should build ## `nix --version` output `nix (Lix, like Nix) 2.92.0-dev-pre20250112-38dd196` ## Additional context Log: https://termbin.com/33td
Owner

pretty much a bug in boost interacting badly with clang: https://github.com/llvm/llvm-project/issues/120871

our packaging should probably work around that by throwing -fno-integrated-as into NIX_FLAGS_COMPILE or something like that (wouldn't want to shove that into meson since it's clearly not our original problem)

pretty much a bug in boost interacting badly with clang: https://github.com/llvm/llvm-project/issues/120871 our packaging should probably work around that by throwing `-fno-integrated-as` into NIX_FLAGS_COMPILE or something like that (wouldn't want to shove that into meson since it's clearly not our original problem)
Owner

Ultimately this breakage is much bigger than us and needs to be addressed in nixpkgs by patching boost or upgrading it assuming they got a release out. There's a workaround as mentioned that can be applied via overrideAttrs in the interim if needed.

Ultimately this breakage is much bigger than us and needs to be addressed in nixpkgs by patching boost or upgrading it assuming they got a release out. There's a workaround as mentioned that can be applied via overrideAttrs in the interim if needed.
jade closed this issue 2025-01-15 16:15:33 +00:00
Author
Member

The user experience is: I add the Lix overlay and it breaks.
Can we not build it with gcc on targets where clang is broken?

The user experience is: I add the Lix overlay and it breaks. Can we not build it with gcc on targets where clang is broken?
Owner

we're always building with clang instead of gcc because gcc straight up miscompiles lix. gcc has open bugs about this behavior, but isn't doing very much to fix it.

we're always building with clang instead of gcc because gcc straight up miscompiles lix. gcc has open bugs about this behavior, but isn't doing very much to fix it.
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#624
No description provided.