Cannot compile ROOT on mac... still

$ uname -a
Darwin fcamac.local 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 18:41:43 PST 2024; root:xnu-11215.61.5~2/RELEASE_X86_64 x86_64
$ sw_vers
ProductName:		macOS
ProductVersion:		15.2
BuildVersion:		24C101
$ g++ -v
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: x86_64-apple-darwin24.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ git st
On branch v6-34-00-patches
Your branch is up to date with 'origin/v6-34-00-patches'.

$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -Dbuiltin_glew=ON -DCMAKE_INSTALL_PREFIX=/usr/local/root
-Dxrootd=OFF -Dfitsio=OFF -Dgfal=OFF -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_STRING=17
-DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl@3/3.4.0 -Doracle=OFF -Dvdt=OFF -Dproof=OFF
-Droot7=OFF -Dpythia8=OFF -Dbuiltin_gsl=ON -Dmysql=OFF …

$ ls -l /Library/Developer/CommandLineTools/SDKs/
total 0
lrwxr-xr-x  1 root  wheel   14 Jan  2 12:06 MacOSX.sdk@ -> MacOSX15.2.sdk
drwxr-xr-x  7 root  wheel  224 Sep 13  2022 MacOSX12.1.sdk/
drwxr-xr-x  7 root  wheel  224 Jan  2 12:07 MacOSX14.5.sdk/
lrwxr-xr-x  1 root  wheel   14 Jan  2 12:04 MacOSX14.sdk@ -> MacOSX14.5.sdk
drwxr-xr-x  7 root  wheel  224 Nov 21 09:05 MacOSX15.2.sdk/
lrwxr-xr-x  1 root  wheel   14 Jan  2 12:03 MacOSX15.sdk@ -> MacOSX15.2.sdk

$ s -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
total 0
drwxr-xr-x  7 root  wheel  224 Nov 21 09:06 MacOSX.sdk/
lrwxr-xr-x  1 root  wheel   10 Dec 12 19:56 MacOSX15.2.sdk@ -> MacOSX.sdk
lrwxr-xr-x  1 root  wheel   10 Dec 12 19:57 MacOSX15.sdk@ -> MacOSX.sdk

$ make
[...]
[ 78%] Generating G__RHTTP.cxx, ../../lib/RHTTP.pcm
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:23:
In file included from /usr/local/root-git/buildroot/include/RtypesCore.h:28:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:27:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdio:104:5: error: <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:28:
In file included from /usr/local/root-git/buildroot/include/strtok.h:6:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:66:5: error: <cstring> tried including <string.h> but didn't find libc++'s <string.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:31:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:508:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdint:149:5: error: <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:34:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/typeinfo:386:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:35:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:621:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:5: error: <cmath> tried including <math.h> but didn't find libc++'s <math.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:21:
In file included from /usr/local/root-git/buildroot/include/TSchemaHelper.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:573:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:31:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:54:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:43:5: error: <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header.           This usually means that your header search paths are not configured properly.            The header search paths should contain the C++ Standard Library headers before           any C Standard Library.
#   error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:21:
In file included from /usr/local/root-git/buildroot/include/TSchemaHelper.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:573:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:31:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:59:5: error: <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:21:
In file included from /usr/local/root-git/buildroot/include/TSchemaHelper.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:573:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:117:5: error: <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_integral.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_result.h:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/errc.h:104:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cerrno:31:5: error: <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/THttpCallArg.h:15:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:35:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:202:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:20:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/clocale:43:5: error: <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header. \
    ^
Error: Parsing #pragma failed /usr/local/root-git/net/http/inc/LinkDef.h
make[2]: *** [net/http/CMakeFiles/G__RHTTP.dir/build.make:91: net/http/G__RHTTP.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:54667: net/http/CMakeFiles/G__RHTTP.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

ROOT Version: v6-34-00-patches
Platform: mac OS 15.2
Compiler: clang 16.0.0


Hi Fed,
Let’s see if @couet has a suggestion

Thanks! Let me add that I do not have another version of ROOT installed. Hope you are all fine! Best,

1 Like

Hi Fed,

Some machine had issues when moving to sequoia. The following recipe worked for them:

# remove the current Command Line Tools
sudo rm -r /Library/Developer/CommandLineTools

# Reset xcode-select
xcode-select -r

# Then install. You will be asked to click a button 
xcode-select --install

# Go in the System Settings -> General -> Software Update 
# if there is a new version of the Command Line Tools, update it.

# Install ROOT
git clone https://github.com/root-project/root.git
mkdir root-build
cd root-build
cmake ../root
make -j8

Thanks,
I wanted to try this, however, I read that some of the old SDKs may have been pulled in by brew for backward compatilibity… Anyway I tried and failed:

[/Users/fca] sudo rm -rf /Library/Developer/CommandLineTools
[/Users/fca] sudo xcode-select -r
[/Users/fca] sudo xcode-select --install
xcode-select: note: install requested for command line developer tools

now I do not have command line toosl at all :slight_smile:

Any more ideas? Best

Weird, it worked for many machine.
Have you done the next step:

?
I do not have more ideas…

Replying to myself, if I go in System Settings->Software Update I see that I can reinstall from there.

Ouff…

Will let you know for the rest. Thansk to my fantastich French copper connection the ETA for the download is 9 days…

1 Like

I never read comment lines :smiley:

Will let you know. Best,

:smiley: …

Who does?

# Comments are for farmers
1 Like

Nope

[ 78%] Generating G__Graf.cxx, ../../lib/Graf.pcm
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:23:
In file included from /usr/local/root-git/buildroot/include/RtypesCore.h:28:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:27:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdio:104:5: error: <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:28:
In file included from /usr/local/root-git/buildroot/include/strtok.h:6:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:66:5: error: <cstring> tried including <string.h> but didn't find libc++'s <string.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:31:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:508:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdint:149:5: error: <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:34:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/typeinfo:386:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:35:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:621:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:5: error: <cmath> tried including <math.h> but didn't find libc++'s <math.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:21:
In file included from /usr/local/root-git/buildroot/include/TSchemaHelper.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:573:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:31:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:54:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:43:5: error: <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header.           This usually means that your header search paths are not configured properly.            The header search paths should contain the C++ Standard Library headers before           any C Standard Library.
#   error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:21:
In file included from /usr/local/root-git/buildroot/include/TSchemaHelper.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:573:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:31:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:59:5: error: <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:21:
In file included from /usr/local/root-git/buildroot/include/TSchemaHelper.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:573:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:117:5: error: <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_integral.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_result.h:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/errc.h:104:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cerrno:31:5: error: <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:1:
In file included from /usr/local/root-git/buildroot/include/TArc.h:24:
In file included from /usr/local/root-git/buildroot/include/TEllipse.h:16:
In file included from /usr/local/root-git/buildroot/include/TObject.h:17:
In file included from /usr/local/root-git/buildroot/include/Rtypes.h:198:
In file included from /usr/local/root-git/buildroot/include/TGenericClassInfo.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:35:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:202:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:20:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/clocale:43:5: error: <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header. \
    ^
In file included from <<< cling interactive line includer >>>:5:
In file included from /usr/local/root-git/buildroot/include/TCandle.h:21:
In file included from /usr/local/root-git/buildroot/include/TMath.h:576:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cfloat:78:5: error: <cfloat> tried including <float.h> but didn't find libc++'s <float.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
#   error <cfloat> tried including <float.h> but didn't find libc++'s <float.h> header. \
    ^
Error: Parsing #pragma failed /usr/local/root-git/graf2d/graf/inc/LinkDef.h
make[2]: *** [graf2d/graf/CMakeFiles/G__Graf.dir/build.make:155: graf2d/graf/G__Graf.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:55033: graf2d/graf/CMakeFiles/G__Graf.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

In case it is useful,

$ make VERBOSE=1
[...]
[ 78%] Generating G__Graf.cxx, ../../lib/Graf.pcm
cd /usr/local/root-git/buildroot/graf2d/graf && /usr/local/bin/cmake -E env LD_LIBRARY_PATH=/usr/local/root-git/buildroot/lib:/usr/local/lib::/usr/local/geant4_vmc/lib/tgt_macosx64:/usr/local/geant3/lib/tgt_macosx64 ROOTIGNOREPREFIX=1 
/usr/local/root-git/buildroot/bin/rootcling -rootbuild -v2 -f G__Graf.cxx -cxxmodule -s 
/usr/local/root-git/buildroot/lib/libGraf.so -m Hist.pcm -m Matrix.pcm -m MathCore.pcm -m RIO.pcm 
-excludePath /usr/local/root-git -excludePath /usr/local/root-git/buildroot/ginclude 
-excludePath /usr/local/root-git/buildroot/externals -excludePath /usr/local/root-git/buildroot/builtins -writeEmptyRootPCM 
-compilerI/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include/c++/v1 
-compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include 
-compilerI/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include 
-compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include 
-compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include 
-compilerI/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include 
-compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/usr/local/root-git/buildroot/include -I/usr/local/include 
-I/usr/local/root-git/graf2d/graf/inc -I/usr/local/root-git/core/unix/../clib/res -I/usr/local/root-git/core/unix/inc -I/usr/local/root-git/core/macosx/inc 
-I/usr/local/include -I/usr/local/root-git/core/zstd/inc -I/usr/local/root-git/core/lz4/inc -I/usr/local/root-git/core/lzma/inc -I/usr/local/root-git/core/zip/inc 
-I/usr/local/root-git/core/thread/inc -I/usr/local/root-git/core/textinput/src -I/usr/local/root-git/core/textinput/inc -I/usr/local/root-git/core/rint/inc 
-I/usr/local/root-git/core/meta/inc -I/usr/local/root-git/core/gui/inc -I/usr/local/root-git/core/foundation/res -I/usr/local/root-git/core/foundation/v7/inc 
-I/usr/local/root-git/core/foundation/inc -I/usr/local/root-git/core/cont/inc -I/usr/local/root-git/core/clingutils/res -I/usr/local/root-git/core/clingutils/inc 
-I/usr/local/root-git/core/clib/inc -I/usr/local/root-git/core/base/v7/inc -I/usr/local/root-git/core/base/inc -I/usr/local/root-git/buildroot/ginclude 
-I/usr/local/root-git/hist/hist/inc -I/usr/local/root-git/math/mathcore/inc -I/usr/local/root-git/math/mathcore/v7/inc -I/usr/local/root-git/core/imt/inc 
-I/usr/local/root-git/math/matrix/inc -I/usr/local/root-git/io/io/inc -I/usr/local/root-git/core/clib/res -I/usr/local/root-git/buildroot/FREETYPE-prefix/src/FREETYPE/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include 
-I/usr/local/root-git/graf2d/mathtext/inc -I/usr/local/root-git/core/multiproc/inc 
-I/usr/local/root-git/net/net/inc TArc.h TArrow.h TAttImage.h TBox.h TCandle.h 
TCrown.h TCurlyArc.h TCurlyLine.h TCutG.h TDiamond.h TEllipse.h TFrame.h 
TGaxis.h TGraphPolar.h TGraphPolargram.h TGraphQQ.h TImage.h 
TImagePlugin.h TLatex.h TLegend.h TLegendEntry.h TLine.h TLink.h TMarker.h 
TMathText.h TPave.h TPaveLabel.h TPaveStats.h TPaveText.h TPavesText.h 
TPie.h TPieSlice.h TPoints.h TPolyLine.h TTF.h TText.h TWbox.h 
/usr/local/root-git/graf2d/graf/inc/LinkDef.h

Did you try rebuilding from scratch?

Yes, this is what I do every time…

I have also deleted the previous version of root and removed the ROOTSYS variable.

Can you try a rebuild with -Druntime_cxxmodules=OFF ?

Yep,
this works. Thanks Philippe!

Federico Carminati
av Ste CĂ©cile 29
1217 Meyrin
Switzerland/Suisse
Tel: +41797732246

@vvassilev This seems to indicates some sort of conflicts between the module produced by rootcling and the one laying around the XCode installation. Is there anything can be done (beside not using the cxxruntime module)