Hello —
I am trying to build root from the source code on a macOS Big Sur with MacOSX12.1.sdk. I do this because I have a bunch of C++ classes I wish to link dynamically to ROOT. This has work very well in the past. The build fails since Nov 2021. This is my latest attempt … Note that binary downloaded from the root site seem to work fine… but I do want to build and link my own libraries (with CMAKE)
Thanks for your help
Claude
Please read tips for efficient and successful posting and posting code
_ROOT Version: MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
Platform: macOS Big Sur –
Compiler: Cling 6.24.06
[ 77%] Built target G__ROOTTPython
[ 77%] Built target G__ROOTVecOps
[ 77%] Built target G__XMLParser
[ 77%] Built target Net
[ 77%] Built target XMLIO
[ 77%] Generating G__RSQLite.cxx, …/…/lib/RSQLite.pcm
[ 77%] Built target ROOTTPython
[ 77%] Built target ROOTVecOps
[ 77%] Built target XMLParser
[ 77%] Built target G__SQLIO
input_line_1:1:2: error: module ‘Darwin’ uses additional module map ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/net.modulemap’ used
when the module was built
#include
^
input_line_1:1:2: note: imported by module ‘std’ in ‘/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/std.pcm’
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION ‘1’
Extraction of runtime standard library version was: ‘’
input_line_2:1:2: fatal error: module file ‘/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/std.pcm’ is out of date and needs to be rebuilt
#include “cling/Interpreter/RuntimeUniverse.h”
^
input_line_2:1:2: note: imported by module ‘Cling_Runtime_Extra’ in ‘/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/Cling_Runtime_Extra.pcm’
input_line_2:1:2: note: imported by module ‘Cling_Runtime’ in ‘/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/Cling_Runtime.pcm’
While building module ‘RSQLite’:
<<< cling interactive line includer >>>: fatal error: module file ‘/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/Darwin.pcm’ is out of date and needs to be rebuilt
Failed to load module Darwin
Failed to load module std
Failed to load module _Builtin_intrinsics
Failed to load module ROOT_Foundation_C
Failed to load module ROOT_Config
Failed to load module ROOT_Rtypes
Failed to load module ROOT_Foundation_Stage1_NoRTTI
Failed to load module Core
Failed to load module Rint
Failed to load module RIO
input_line_4:1:2: error: unknown type name 'include’
#include “RtypesCore.h”
^
In file included from input_line_4:1:
/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/include/RtypesCore.h:11:8: error: expected ‘;’ after top level declarator
#ifndef ROOT_RtypesCore
^
;
/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/include/RtypesCore.h:27:2: error: unterminated conditional directive
#ifndef R__LESS_INCLUDES
^
/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/include/RtypesCore.h:11:2: error: unterminated conditional directive
#ifndef ROOT_RtypesCore
^
input_line_4:2:2: error: unknown type name 'include’
#include
^
In file included from input_line_4:2:
/Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/cassert:19:9: error: expected ‘;’ after top level declarator
#include <__config>
^
/Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/cassert:20:2: error: unknown type name 'include’
#include <assert.h>
^
In file included from input_line_4:2:
In file included from /Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/cassert:20:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/assert.h:43:1: error: expected unqualified-id
#ifdef __cplusplus
^
In file included from input_line_4:2:
/Library/Developer/CommandLineTools/usr/bin/…/include/c++/v1/cassert:22:2: error: expected unqualified-id
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
^
0 libCling.6.24.06.so 0x000000010a6b77f5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 libCling.6.24.06.so 0x000000010a6b6b47 llvm::sys::RunSignalHandlers() + 39
2 libCling.6.24.06.so 0x000000010a6b7da6 SignalHandler(int) + 278
3 libsystem_platform.dylib 0x00007fff204a8d7d _sigtramp + 29
4 libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603339974406816
5 libCling.6.24.06.so 0x000000010805aed8 ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) + 104
6 libCling.6.24.06.so 0x0000000108058f68 ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) + 40
7 libCling.6.24.06.so 0x00000001080ef56a TCling::TCling(char const*, char const*, char const* const*) + 13002
8 libCling.6.24.06.so 0x00000001080e8516 CreateInterpreter + 54
9 libCore.6.24.06.so 0x000000010b7899a6 TROOT::InitInterpreter() + 214
10 libCore.6.24.06.so 0x000000010b7898c0 ROOT::Internal::GetROOT2() + 32
11 libCling.6.24.06.so 0x00000001080e5cdd TCling__GetInterpreter + 61
12 libCling.6.24.06.so 0x00000001080ad57f RootClingMain(int, char**, bool) + 17695
13 libCling.6.24.06.so 0x00000001080bd7e4 ROOT_rootcling_Driver + 340
14 rootcling 0x0000000107cabf67 main + 135
15 libdyld.dylib 0x00007fff2047ef3d start + 1
Stack dump:
- Program arguments: /Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/bin/rootcling -rootbuild -v2 -f G__RSQLite.cxx -cxxmodule -s /Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/lib/libRSQLite.so -m Core.pcm -m Net.pcm -m RIO.pcm -excludePath /Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src -excludePath /Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/ginclude -excludePath /Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/externals -excludePath /Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/builtins -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/include -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/sql/sqlite/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/macosx/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/unix/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/clingutils/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/textinput/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/thread/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/zip/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/rint/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/clib/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/meta/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/gui/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/cont/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/foundation/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/base/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/ginclude -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/net/net/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/io/io/inc -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/core/clib/res -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/builtins -I/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/builtins/openssl/OPENSSL-prefix/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include TSQLiteResult.h TSQLiteRow.h TSQLiteServer.h TSQLiteStatement.h /Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_src/sql/sqlite/inc/LinkDef.h
*** Break *** segmentation violation
[ 77%] Built target G__RootAuth
[ 77%] Built target G__RDAVIX
Consolidate compiler generated dependencies of target G__NetxNG
[ 77%] Built target G__NetxNG
Consolidate compiler generated dependencies of target SrvAuth
[ 77%] Built target SrvAuth
[ 77%] Built target G__MultiProc
[ 77%] Building CXX object io/sql/CMakeFiles/SQLIO.dir/src/TBufferSQL2.cxx.o
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[] (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCling.6.24.06.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCling.6.24.06.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCling.6.24.06.so] TCling::TCling(char const*, char const*, char const* const*) (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCling.6.24.06.so] CreateInterpreter (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCore.6.24.06.so] TROOT::InitInterpreter() (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCore.6.24.06.so] ROOT::Internal::GetROOT2() (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCling.6.24.06.so] TCling__GetInterpreter (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCling.6.24.06.so] RootClingMain(int, char**, bool) (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022/lib/libCling.6.24.06.so] ROOT_rootcling_Driver (no debug info)
[/Users/claudeapruneau/Documents/GitHub/rootJan16-2022-Src/root_build/bin/rootcling] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
make[2]: *** [sql/sqlite/G__RSQLite.cxx] Error 139
make[1]: *** [sql/sqlite/CMakeFiles/G__RSQLite.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 77%] Building CXX object io/sql/CMakeFiles/SQLIO.dir/src/TKeySQL.cxx.o
[ 77%] Building CXX object io/sql/CMakeFiles/SQLIO.dir/src/TSQLClassInfo.cxx.o
[ 77%] Building CXX object io/sql/CMakeFiles/SQLIO.dir/src/TSQLFile.cxx.o
[ 77%] Building CXX object io/sql/CMakeFiles/SQLIO.dir/src/TSQLObjectData.cxx.o
[ 77%] Building CXX object io/sql/CMakeFiles/SQLIO.dir/src/TSQLStructure.cxx.o
[ 77%] Linking CXX shared library …/…/lib/libSQLIO.so
[ 77%] Built target SQLIO
make: *** [all] Error 2
(base) claudeapruneau@Claudes-iMac root_build %