-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
__OSX_AVAILABLE_STARTING
error when building on macOS 10.14
#63046
Comments
Could you post a reproduction of what you are running? |
The reproduction is a bit complicated as it involves a nix environment which is then used to build our software with an internal tool. There must be something completely screwed up with what I do, however, since if I use the following shell.nix:
and I try to compile: #include "cmath"
using std::signbit; with:
I get a bunch of errors, while using the clang from Xcode works just fine. |
For the record:
|
The actual error is:
|
(all this used to work before moving to the latest nixpkgs with the 10.12 migration, BTW). |
(thank you for taking the time to look into it, BTW)... |
If you just need the frameworks, you can do:
This avoids including any of the sdk 10.12 headers which appear to interfere with libc++. Maybe we should provide versioned sdk releases? Something like pkgs.darwin.apple_sdk.sdk_10_10 for users who need it. Presumably you just need to frameworks, but headers may also be needed? |
Mmm... I think I would need also some header, so I am not sure if that would work. That said, it looks like that results in an even more "complicated" business with clang5 and clang7 headers mixing:
I guess that is the culprit, albeit I am not sure why I get clang5 from the old configuration... Maybe it's due to the fact I use lorri to setup the environment for that same folder... |
Ok... After a bit of fiddling I think I found a small reproducer for what is the actual issue:
and then:
works fine. If I comment out the pkgs.glew line I get:
|
More on this. The actual issue seems the inclusion of:
(which is done by glew...) |
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
Issue description
When building something on macOS 10.14, using today's nixpkgs I get:
which is then followed by a bunch of undefined references to
Security.framework
structs. Am I missing anything trivial?Steps to reproduce
Technical details
"x86_64-darwin"
Darwin 18.5.0, macOS 10.14.4
no
yes
nix-env (Nix) 2.2.1
"nixpkgs-18.09pre154109.571b40d3f50, nixpkgs-19.03-19.03pre172363.b12b1e2f428, nixpkgs-unstable-19.09pre177248.ed1b59a98e7"
/Users/ktf/src/nix/nixpkgs
The text was updated successfully, but these errors were encountered: