-
Notifications
You must be signed in to change notification settings - Fork 115
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
On MacOS Monterey 12.4 with XCode 13.4, clang complains of no sysroot #68
Comments
Hey, @jiawen, fellow Xoogler! Thanks for using the tool and writing in. I smiled seeing you file these two and reply to the NDK issue back to back to back. I think there's a good chance this is our issue, assuming the cc_library builds fine under Bazel normally. Which it does, right? [In the background, we have to infer the SDKROOT, since Bazel has a bug where they omit many environment variables from the action information--and in working around that but, I bet we have things a bit more hardcoded than we should.] Could I ask you to check that I've got to crash for now, but I'll return to this tm. Thanks for your help and patience! |
Hi Chris, Nice to finally meet you! I've been impressed at the open source work you've been doing. Yes, the
|
:) Thanks for being so kind--and thorough. Definitely our problem, then--and a result of my hardcoding in _get_apple_SDKROOT. Sorry about that. Thanks for reporting! |
I just pushed a commit that should fix this. Could you give the latest a try, and tell me if it fixes things for you? Separately, you've got me curious! What's this image_io you're working on? Could I ask you to run Cheers! Hope that works. And again, sorry it didn't just work out of the box. |
Just gave it a try - it works! @image_io: haha, that's just my wrapper around libpng. Nothing fancy - but I plan to open source it since it's way either with Bazel than anything else on the planet.
I think I've mostly run into your various comments in the Bazel / Objective C world. I must say, |
Yay! Delighted to hear it, and again, thanks for being great to work with and for bearing with me. Sounds great! Looking forward to using it someday :) |
Btw, I clicked through to your site. Some very neat work you're doing! |
👋 Just passed by this issue while trying to diagnose something that's unrelated to this project. It was a very wholesome conversation. I have nothing to contribute, but it was nice to read. |
:) glad to hear it made you smile--i smiled back, reading. Thanks for reaching out! |
Also suppresses superfluous xcrun warnings and improves comments. Fixes hedronvision/bazel-compile-commands-extractor#68
Also suppresses superfluous xcrun warnings and improves comments. Fixes hedronvision/bazel-compile-commands-extractor#68
Also suppresses superfluous xcrun warnings and improves comments. Fixes hedronvision/bazel-compile-commands-extractor#68
I'm using a vanilla MacOS with XCode environment - on a freshly installed Apple Studio (M1 Ultra) and Bazel 5.2.0-homebrew. I'm using option 3 (BUILD with refresh_compile_commands).
I tried a single
cc_library
target and it complains that:And indeed, the path
/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
does not exist. It looks like it moved and is now at/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
. This is a symlink to its siblings reflecting the latest version on the system.I assume this isn't a
bazel-compile-commands-extractor
bug. But I don't know Bazel's toolchain resolution logic well enough to figure out where that path is baked in.Any ideas?
The text was updated successfully, but these errors were encountered: