I’m getting the following warning & error starting Cling on OSx 11.2.2
warning: no such sysroot directory: ‘/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk’
In file included from input_line_1:1:
In file included from /Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/new:90:
In file included from /Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/exception:81:
In file included from /Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/cstdlib:85:
/Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/stdlib.h:97:15:fatal error:‘stdlib.h’ file not found
#include_next <stdlib.h>
My Developer directory is:
ls /Library/Developer/CommandLineTools/SDKs
From what I understand, you already have a “MacOSX.sdk” (which points to the existing installed “MacOSX11.1.sdk”).
You now need to cheat ROOT so that it thinks that there is the “MacOSX11.0.sdk” installed. You do NOT need to install this SDK version at all; a symbolic link seems to be sufficient. Of course, when ROOT will try to access “MacOSX11.0.sdk”, it will land in “MacOSX11.1.sdk”, but that seems fine (as reported in the other posts by people who tried it).