-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[staging-next] xar: cannot build on x86_64-linux #352453
Comments
I'm actually currently working on getting cross compilation working from Currently all this work is happening out-of-tree on a local repository. I ran into this issue trying to use the darwin rework #346043 to attempt a minimal build of the SDKs (not building through Nix), and since I could readily use it before, I figured it was a regression worth bringing up. |
It’d be good to coordinate that work in the Matrix macOS room. Linux‐to‐Darwin cross has been discussed before, but there are a bunch of issues we need to avoid. For instance, I believe our SDK derivation should basically just work as long as the relevant tools do. |
Glad to hear! I was a little concerned with directly messing with Nixpkgs things since I expected I'd bump into a lot of hiccups, particularly since this task isn't exactly "supported". Nonetheless, I'll start with trying to slowly piece together the smaller bits through the available derivations and see where I can go from there. |
I opened #352507 to try to fix the Linux build failure. I confirmed it built at least. The function is exported by |
Re: cctools-port When I updated cctools and ld64, cctools-port had not yet updated to the latest release. It wasn’t clear when it would be updated, so I opted to do a new port with a small set of vendored patches. It has since been, but I think it’s preferable to stick with our own patch set because it can be tailored to the needs of nixpkgs. It’s possible I may be able to work on the Linux port for 25.05 (though 25.11 is more likely). The most likely approach is replacing Darwin-specific APIs with standards-based equivalents (e.g., Darwin-specific byteswap functions). Like the corecrypto replacement I did, these will be used on both platforms. Longer term (once ld64 is fully dropped from Xcode), we should probably fork it into the NixOS org for further cleanup. |
Describe the bug
pkgs.xar
cannot be built on any system outside of*-darwin
(and maybe BSD systems) due to the usage of a BSD/Darwin specificfnctl
valueF_GETPATH
inxar/lib/archive.c
.I believe this is a regression since
pkgs.xar
has worked before (master works), and the last time it was touched was by @reckenrode in #346043.Steps To Reproduce
Steps to reproduce the behavior:
nix build github:NixOS/nixpkgs?rev=6968567d601da88ff67834173c9384f7a7be3d3d
lib/archive.o
due to aboveExpected behavior
I assume a patch to exclude this behaviour, or if that's not possible (how did older
pkgs.xar
versions work, is this new?) then marking as darwin-platform only.Notify maintainers
cc @copumpkin [maintainer]
cc @reckenrode [last commiter]
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: