-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
nix-index: fix darwin build #49708
nix-index: fix darwin build #49708
Conversation
Can you provide the current failure build log? I have seen this now for many macOS rust packages. |
|
Is this the full log? I think the interesting part is above the message. |
@GrahamcOfBorg build nix-index |
Success on x86_64-darwin (full log) Attempted: nix-index Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: nix-index Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: nix-index Partial log (click to expand)
|
So apparently the bundled llvm version also loads symbols from the external llvm version? |
Since Rust 1.30 (?) some Rust crates do not build, see e.g. NixOS#49693 and NixOS#49708 and fail with: dyld: Symbol not found: __ZTIN4llvm2cl18GenericOptionValueE So far, the common pattern seems to be that the linking fails in doctests. This change is a temporary workaround that disables doctests for Rust crates on Darwin. This avoids the need to patch individual derivations and still runs library tests.
4c14a78
to
17e6147
Compare
@GrahamcOfBorg build nix-index |
Success on aarch64-linux (full log) Attempted: nix-index Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: nix-index Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: nix-index Partial log (click to expand)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets put this in master and revert on staging, it might be a while before #49557 gets merged back.
Motivation for this change
cc @Mic92 & @bennofs
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)