Homebrew and latest MacOS SDK


I’m not sure if I should post here or in Newbie, as I am a Newbie trying to use Cling.

I installed Cling via Homebrew (brew install cling) and it appeared to install fine. However, when I start Cling I received the error message:

warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk'
In file included from input_line_1:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:90:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:81:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdlib:85:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:97:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>

And indeed, I do not have the 11.0 SDK installed, because I have the 11.1 SDK installed. Is it possible to point Cling towards this? Should I also report this on the Homebrew forums?

Thanks for any help.

1 Like


Yeah, we need to fix this. In the past, new Xcode provided old SDKs, that seems to not be the case anymore. You can work around that with cd /Library/Developer/CommandLineTools/SDKs; sudo ln -s MacOSX.sdk MacOSX11.0.sdk

Cheers, Axel.

1 Like

I’ve created https://github.com/root-project/root/issues/7021 to keep track of an actual fix.

1 Like

Thanks! For reference - I also reported it on the Homebrew forum here: https://github.com/Homebrew/discussions/discussions/504

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.