-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
postgresql_jit.pkgs.postgis: fix build on darwin #342369
postgresql_jit.pkgs.postgis: fix build on darwin #342369
Conversation
d46f9e5
to
419dc64
Compare
Breaks on the community builder with
|
Odd. I tested it there as well. But I get a different hash, too:
Are you testing aarch64 or x86-64 for darwin?
Never seen that before. Hmm... |
We introduced LTO in NixOS#294504. At that time, we still needed to use LLVM / lld to make this work on darwin. For this to work for extensions, they would need to set CFLAGS=-fuse-ld=lld, too. However, since NixOS#307880 landed, we don't need to do this anymore in the first place, LTO just works out of the box on darwin. Resolves NixOS#342362
Still works for me on the community builder. Even after a rebase on latest master (pushed that rebase) it still works. |
419dc64
to
cd85a62
Compare
That's the out hash though, not the
aarch64-darwin.
Lix on my work Mac works, so either some weird impurity or a Nix 2.24 problem. But let me rebuild on the community builder. |
Ah, right. I have the same drv hash.
I have:
So that could be. |
Were you able to build this time or are you still getting that error? |
Given that we've built it successfully on at least one machine each, I think it's OK to merge. I'd argue it's a Nix bug then. My money is on some kind of problem with the daemon protocol, wouldn't be the first time in my experience. |
Description of changes
We introduced LTO in #294504. At that time, we still needed to use LLVM / lld to make this work on darwin. For this to work for extensions, they would need to set
CFLAGS=-fuse-ld=lld
, too. However, since #307880 landed, we don't need to do this anymore in the first place, LTO just works out of the box on darwin.Resolves #342362
@Ma27
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.