-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Build failure: pkgsCross.aarch64-darwin.stdenv #273442
Comments
Running Bisecting:
bcbdb80 sounds very plausible. |
The fix is probably in #256590, but I need to rebase it. I plan on looking at it more later this week. |
this also happens when trying to cross-compile from linux to x86_64-darwin |
Unfortunately, cross-compilation from Linux to Darwin is unlikely to be supported anytime soon. There are some challenges with tooling that would need to be solved (beyond just what needs fixing in nixpkgs). 😕 |
maybe a warning should be added to |
I have the same issue cross compiling |
I’m currently working on updating cctools and ld64, which should address part of the tooling issue on Linux. These updated packages are building from Apple’s upstream source drop with patches to replace private and platform-specific API usage. After that, I need to work on the SDK update/refactor because it’s likely that x86_64-darwin will need an updated SDK (10.14). If someone wants to take my draft PR and fix the compiler-rt issue, they’re welcome to do that. My bandwidth is limited, and updating the SDK and tooling is a higher priority for me. There were already packages in the bootstrap needing a newer SDK to build, but cctools and ld64 are the first ones to require it at runtime. However, before I start working on the SDK stuff, I can take a look at my cross-compilation to see if it’s an easy fix to get it building again. One caveat is it was mentioned in #302481 that the LLVM packages are being reworked to build from common derivations, the my cross PR may have to wait on that work to land. |
This should be fixed by #346043. |
Closed by #346043 |
Steps To Reproduce
Steps to reproduce the behavior:
Build log
Additional context
I've tried building aarch64-darwin bash on x86_64-darwin with
nix-build '<nixpkgs>' -A pkgsCross.aarch64-darwin.stdenv -I nixpkgs=channel:${CHANNEL}
and found the following:CHANNEL=nixpkgs-22.11-darwin
.CHANNEL=nixpkgs-23.05-darwin
.CHANNEL=nixpkgs-23.11-darwin
orCHANNEL=nixpkgs-unstable
.This breaks everything cross-building from x86_64-darwin to aarch64-darwin.
Notify maintainers
@Artturin
@Ericson2314
@RaitoBezarius
@alyssais
@amjoseph-nixpkgs
@dtzWill
@lovek323
@primeos
@reckenrode
@rrbutani
@sternenseemann
@szlend
@toonn
@trofi
@vcunat
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: