I’m trying to install old version root by compiling from source code, and I have installed all the required and most common dependencies through homebrew.
after cmake-gui and set install_prefix and providing those paths, I ran make -j4 then these series of fatal error messages showed up when [ 76%] Built target MetaCling start
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/merge.h:12:10: fatal error: could not build module 'std_private_algorithm_comp'
#include <__algorithm/comp.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/minmax.h:12:10: fatal error: could not build module 'std_private_algorithm_comp'
#include <__algorithm/comp.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/minmax_element.h:12:10: fatal error: could not build module 'std_private_algorithm_comp'
#include <__algorithm/comp.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/mismatch.h:13:10: fatal error: could not build module 'std_private_algorithm_comp'
#include <__algorithm/comp.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/simd_utils.h:12:10: fatal error: could not build module 'std_private_algorithm_min'
#include <__algorithm/min.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit/bit_cast.h:14:10: fatal error: could not build module 'std_core'
#include <__type_traits/is_trivially_copyable.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit/countl.h:15:10: fatal error: could not build module 'std_private_bit_rotate'
#include <__bit/rotate.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/aliasing_iterator.h:13:10: fatal error: could not build module 'std_private_iterator_iterator_traits'
#include <__iterator/iterator_traits.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/next_permutation.h:12:10: fatal error: could not build module 'std_private_algorithm_comp'
#include <__algorithm/comp.h>
~~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/reverse.h:12:10: fatal error: could not build module 'std_private_algorithm_iter_swap'
#include <__algorithm/iter_swap.h>
...
can anyone give me some ideas how to solve it?
ROOT Version: 6.32.08 (want to install) Platform: macOS Sonoma 14.7 with M1 Pro chip Compiler: clang-1700.0.13.5
Xcode:16.4
Hi @couet , thank you for the solution you provided, much appreciate it. Unfortunately, when I ran make -j4, I still got the same errors showing up at 76% progress. the CMakeError was showing and telling me to turn on builtin glew,-Dbuiltin_glew=ON I also set CMAKE_INSTALL_PREFIX= to the install folder I made. Now the Xcode version is 16.2, which is the latest compatible version with Sonoma 14.7.
contexts below are the most part of the error…
thanks for helping :(((
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module 'std_cstddef' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:96:
While building module 'DarwinFoundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:64:
In file included from <module-includes>:4:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/endian.h:37:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/endian.h:61:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:131:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h:16:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_ptrdiff_t.h:41:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:64:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module 'std_cstddef' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:96:
While building module 'DarwinFoundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:64:
In file included from <module-includes>:4:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/endian.h:37:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/endian.h:61:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:131:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h:16:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_ptrdiff_t.h:41:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:67:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_null.h:40:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:68:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_offsetof.h:40:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:77:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h:40:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:79:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_wchar_t.h:41:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:82:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_wint_t.h:32:9: error: unknown type name '__darwin_wint_t'
typedef __darwin_wint_t wint_t;
^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module 'std_cstddef' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:96:
While building module 'DarwinFoundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:64:
In file included from <module-includes>:4:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/endian.h:37:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/endian.h:61:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:131:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h:75:9: error: unknown type name 'ptrdiff_t'
typedef ptrdiff_t __darwin_ptrdiff_t; /* ptr1 - ptr2 */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h:85:9: error: unknown type name 'size_t'
typedef size_t __darwin_size_t; /* sizeof() */
^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module 'std_cstddef' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:96:
In file included from <module-includes>:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:43:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stddef.h:64:10: fatal error: could not build module 'DarwinFoundation'
#include <_types.h>
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
In file included from <module-includes>:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:96:10: fatal error: could not build module 'std_cstddef'
#include <cstddef>
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module '_stdlib' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58:
In file included from <module-includes>:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:62:10: fatal error: could not build module 'DarwinFoundation'
#include <sys/cdefs.h>
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module '_stdlib' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58:
While building module 'sys_wait' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:66:
In file included from <module-includes>:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:67:10: fatal error: could not build module 'DarwinFoundation'
#include <sys/cdefs.h>
~~~~~~~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/types.h:72:10: fatal error: could not build module 'DarwinFoundation'
#include <sys/appleapiopts.h>
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module '_stdlib' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58:
While building module 'sys_wait' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:66:
While building module 'sys_types' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:89:
While building module 'netinet_in' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/types.h:113:
In file included from <module-includes>:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_in_addr_t.h:30:10: fatal error: could not build module 'DarwinFoundation'
#include <machine/types.h> /* __uint32_t */
~~~~~~~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_useconds_t.h:30:10: fatal error: could not build module 'DarwinFoundation'
#include <sys/_types.h> /* __darwin_useconds_t */
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module '_stdlib' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58:
While building module 'sys_wait' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:66:
While building module 'sys_types' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:89:
While building module '_errno' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/types.h:178:
In file included from <module-includes>:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/errno.h:23:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/errno.h:72:10: fatal error: could not build module 'DarwinFoundation'
#include <sys/cdefs.h>
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module '_stdlib' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58:
While building module 'sys_wait' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:66:
While building module 'sys_types' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:89:
While building module '_sys_select' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/types.h:187:
In file included from <module-includes>:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_fd_def.h:31:10: fatal error: could not build module 'DarwinFoundation'
#include <machine/types.h> /* __int32_t and uintptr_t */
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module '_stdlib' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58:
While building module 'sys_wait' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:66:
While building module '_signal' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109:
In file included from <module-includes>:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/signal.h:34:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/signal.h:14:10: fatal error: could not build module 'DarwinFoundation'
#include <sys/cdefs.h>
~~~~~~~~^
While building module 'Core':
While building module 'std_new' imported from input_line_1:1:
While building module '_stdlib' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58:
While building module 'sys_wait' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:66:
While building module 'sys_resource' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:
In file included from <module-includes>:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:67:10: fatal error: could not build module 'DarwinFoundation'
#include <sys/appleapiopts.h>
~~~~~~~~^
...
Hi @couet,
Thanks for helping, but it still failed unfortunately…
I have installed ROOT 6.36.0 through homebrew and it worked, I think installing the latest version is the only way…
if installing from homebrew unblocked you, I think we could leave it at that.
If, however, you really need to compile from source, compiling the latest versions of ROOT is the better approach, because we are updating them regularly to keep track of changes in OS X.