Error while build root 6.18/04 on M1 pro MacBook

Hi all,

I need to old version root 6.18/04 for my analysis.
And I tried to install root ver. 6.18/04 but there are some issues while building the root.
The configuration options are here
cmake -Dbuiltin_xrootd=OFF -Dbuiltin_tbb=OFF -Dxrootd=OFF -Dimt=OFF -Ddavix=OFF -DCMAKE_INSTALL_PREFIX=…/install …/src

and the error occurred

error: unknown target triple 'unknown-apple-macosx10.17.0', please use -triple or -arch
Could not determine compiler target.
error: unknown target triple 'unknown-apple-macosx10.17.0', please use -triple or -arch
Could not determine compiler target.
Compiler instance could not be created.
Compiler instance could not be created.
error: unknown target triple 'unknown-apple-macosx10.17.0', please use -triple or -arch
Could not determine compiler target.
Compiler instance could not be created.
error: unknown target triple 'unknown-apple-macosx10.17.0', please use -triple or -arch
Could not determine compiler target.
0 0  rootcling_stage1         rootcling_stage1         0x0000000104658970 0x0000000103d28970  Compiler instance could not be created.
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 52
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 52
1  rootcling_stage1         0x0000000103d28e94 SignalHandler(int) + 428
2  libsystem_platform.dylib 0x00000001c2c804e4 _sigtramp + 56
1  rootcling_stage1         0x0000000104658e94 SignalHandler(int) + 428
2  libsystem_platform.dylib 0x00000001c2c804e4 _sigtramp + 56
3  rootcling_stage1         0x00000001023e8060 RootClingMain(int, char**, bool, bool) + 9092
3  rootcling_stage1         0x0000000102d18060 RootClingMain(int, char**, bool, bool) + 9092
4  rootcling_stage1         0x00000001023f57e4 ROOT_rootcling_Driver + 508
4  rootcling_stage1         0x0000000102d257e4 ROOT_rootcling_Driver + 508
5  rootcling_stage1         0x00000001023885dc main + 64
6  dyld                     0x0000000104b450f4 start + 520
Stack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__listDict.cxx -s /Users/hwan/tools/root/root618/build/lib/liblistDict.so -m libCore_rdict.pcm -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml liblistDict.so -rmf /Users/hwan/tools/root/root618/build/lib/liblistDict.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/build/etc/cling/cint -I/Users/hwan/tools/root/root618/src/core/clingutils list /Users/hwan/tools/root/root618/src/core/clingutilerror: unknown target triple 'unknown-apple-macosx10.17.0', please s/src/listLinkdef.h
5 use -triple rootcling_stage1         0 or 0x0000000102cb85dc  rootcling_stage1        -arch 0x0000000105a94970error :
0 Could not determine compiler target.
 rootcling_stage1        unknown 0x0000000101a24970 llvm::sys::PrintStackTrace(llvm::raw_ostream&)  + 52target
 triple main'unknown-apple-macosx10.17.0',llvm::sys::PrintStackTrace(llvm::raw_ostream&)error + 52:
unknown targeterror  + 64triple
 please'unknown-apple-macosx10.17.0',  6 useCompiler instance could not be created.
 dyld                     0x00000001054d50f4 start + 520
 pleaseStack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__dequeDict.cxx -s /Users/hwan/tools/root/root618/build/lib/libdequeDict.so -m libCore_rdict.pcm -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml libdequeDict.so -rmf /Users/hwan/tools/root/root618/build/lib/libdequeDict.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/build/etc/cling/cint -I/Users/hwan/tools/root/root618/src/core/clingutils deque /Users/hwan/tools/root/root618/src/core/clingutils/src/dequeLinkdef.h
: -triple  useor1    rootcling_stage1        -triple-arch 0x0000000105a94e94  orSignalHandler(int) unknown + 428-arch target
 triple1
'unknown-apple-macosx10.17.0',Could not determine compiler target.
 2 p
 libsystem_platform.dylib 0x00000001c2c804e4 _sigtramp + 56
Could not determine compiler target.
lease rootcling_stage1         use -triple orCompiler instance could not be created.
-arch
Could not determine compiler target.
 0x0000000101a24e94 3  rootcling_stage1         0x0000000104154060 RootClingMain(int, char**, bool, bool) + 9092
Compiler instance could not be created.
SignalHandler(int) + 428
Compiler instance could not be created.
2  libsystem_platform.dylib 0x00000001c2c804e4 _sigtramp + 56
4  rootcling_stage1         0x00000001041617e4 ROOT_rootcling_Driver + 508
Segmentation fault
5  rootcling_stage1         0x00000001040f45dc main + 64
6  dyld                     0x00000001067650f4 start + 520
Stack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__complexDict.cxx -s /Users/hwan/tools/root/root618/build/lib/libcomplexDict.so -m libCore_rdict.pcm -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml libcomplexDict.so -rmf /Users/hwan/tools/root/root618/build/lib/libcomplexDict.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/build/etc/cling/cint -I/Users/hwan/tools/root/root618/src/core/clingutils root_std_complex.h /Users/hwan/tools/root/root618/src/core/clingutils/src/complexLinkdef.h
Segmentation fault3  rootcling_stage1         0x00000001000e4060 RootClingMain(int, char**, bool, bool) + 9092

4  rootcling_stage1         0x00000001000f17e4 ROOT_rootcling_Driver + 508
0  rootcling_stage1         0x0000000105bd8970 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 52
Segmentation fault
5  rootcling_stage1         0x00000001000845dc main + 64
6 1 0  dyld                     rootcling_stage1         0x00000001028d90f4 0x0000000104880970  start + 520
0  rootcling_stage1         0x0000000102038970 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 52
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 52
Stack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__map2Dict.cxx -s /Users/hwan/tools/root/root618/build/lib/libmap2Dict.so -m libCore_rdict.pcm -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml libmap2Dict.so -rmf /Users/hwan/tools/root/root618/build/lib/libmap2Dict.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/build/etc/cling/cint -I/Users/hwan/tools/root/root618/src/core/clingutils map /Users/hwan/tools/root/root618/src/core/clingutils/src/map2Linkdef.h
1  rootcling_stage1         0x0000000104880e94 SignalHandler(int) + 428
2 1  libsystem_platform.dylib rootcling_stage1         0x00000001c2c804e4 0x0000000102038e94  _sigtrampSignalHandler(int) + 56 + 428

2  libsystem_platform.dylib 0x00000001c2c804e4 _sigtramp + 56
3  rootcling_stage1         0x0000000102f40060 RootClingMain(int, char**, bool, bool) + 9092
3  rootcling_stage1         0x00000001006f8060 RootClingMain(int, char**, bool, bool) + 9092
0  rootcling_stage1         0x000000010275c970 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 52
4  rootcling_stage1         0x0000000102f4d7e4 ROOT_rootcling_Driver + 508
4  rootcling_stage1         0x00000001007057e4 ROOT_rootcling_Driver + 508
1  rootcling_stage1         0x000000010275ce94 rootcling_stage1         0x0000000105bd8e94 5  rootcling_stage1         0x0000000102ee05dc main + 645
 rootcling_stage1        SignalHandler(int) 0x00000001006985dc6   + 428 dyld                    main
 0x00000001057d10f4 start + 520
2  + 64Stack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__vectorDict.cxx -s /Users/hwan/tools/root/root618/build/lib/libvectorDict.so -m libCore_rdict.pcm -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml libvectorDict.so -rmf /Users/hwan/tools/root/root618/build/lib/libvectorDict.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/build/etc/cling/cint -I/Users/hwan/tools/root/root618/src/core/clingutils vector /Users/hwan/tools/root/root618/src/core/clingutils/src/vectorLinkdef.h
 libsystem_platform.dylib
 0x00000001c2c804e4 6 _sigtramp dyld                     + 56 0x0000000102eb90f4
 make[2]: start*** [core/clingutils/G__listDict.cxx] Error 1 + 520

SignalHandler(int) + 428
2  libsystem_platform.dylib 0x00000001c2c804e4 _sigtramp + 56
Stack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__Core.cxx -s /Users/hwan/tools/root/root618/build/lib/libCore.so -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml libCore.so -rmf /Users/hwan/tools/root/root618/build/lib/libCore.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include -I/Users/hwan/tools/root/root618/src/core/base/inc -I/Users/hwan/tools/root/root618/src/core/clib/inc -I/Users/hwan/tools/root/root618/src/core/cont/inc -I/Users/hwan/tools/root/root618/src/core/foundation/inc -I/Users/hwan/tools/root/root618/src/core/macosx/inc -I/Users/hwan/tools/root/root618/src/core/unix/inc -I/Users/3  rootcling_stage1         0x0000000100e1c060 RootClingMain(int, char**, bool, bool) + 9092
make[2]: *** [core/clingutils/G__dequeDict.cxx] Error 1
Segmentation fault3
 rootcling_stage1         0x0000000104298060 RootClingMain(int, char**, bool, bool) + 9092Segmentation fault

4  rootcling_stage1         0x0000000100e297e4 ROOT_rootcling_Driver + 508
5  rootcling_stage1         0x0000000100dbc5dc main + 64
6  dyld                     0x00000001035590f4 start + 520
Stack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__forward_listDict.cxx -s /Users/hwan/tools/root/root618/build/lib/libforward_listDict.so -m libCore_rdict.pcm -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml libforward_listDict.so -rmf /Users/hwan/tools/root/root618/build/lib/libforward_listDict.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/build/etc/cling/cint -I/Users/hwan/tools/root/root618/src/core/clingutils forward_list /Users/hwan/tools/root/root618/src/core/clingutils/src/forward_listLinkdef.h
4  rootcling_stage1         0x00000001042a57e4 ROOT_rootcling_Driver + 508
hwan/tools/root/root618/src/core/winnt/inc -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/src/core/meta/inc -I/Users/hwan/tools/root/root618/src/core/textinput/inc -I/Users/hwan/tools/root/root618/src/core -writeEmptyRootPCM -DSYSTEM_TYPE_macosx ROOT/StringConv.hxx ROOT/TExecutor.hxx ROOT/TSequentialExecutor.hxx Buttons.h Bytes.h Byteswap.h Gtypes.h GuiTypes.h KeySymbols.h MessageTypes.h Riostream.h Rtypes.h TApplication.h TApplicationImp.h TAtt3D.h TAttAxis.h TAttBBox2D.h TAttBBox.h TAttFill.h TAttLine.h TAttMarker.h TAttPad.h TAttText.h TBase64.h TBenchmark.h TBrowser.h TBrowserImp.h TBuffer3D.h TBuffer3DTypes.h TBuffer.h TCanvasImp.h TColorGradient.h TColor.h TContextMenu.h TContextMenuImp.h TControlBarImp.h TDatime.h TDirectory.h TEnv.h TError.h TException.h TExec.h TFileCollection.h TFileInfo.h TFolder.h TGuiFactory.h TInetAddress.h TInspectorImp.h TMacro.h TMathBase.h TMD5.h TMemberInspector.h TMessageHandler.h TNamed.h TNotifyLink.h TObject.h TObjectSpy.h TObjString.h TParameter.h TPluginManager.h TPoint.h TPRegexp.h TProcessID.h TProcessUUID.h TQClass.h TQCommand.h TQConnection.h TQObject.h TRedirectOutputGuard.h TRefCnt.h TRef.h TRegexp.h TRemoteObject.h TROOT.h TRootIOCtor.h TStopwatch.h TStorage.h TString.h TStringLong.h TStyle.h TSysEvtHandler.h TSystemDirectory.h TSystemFile.h TSystem.h TTask.h TThreadSlots.h TTime.h TTimer.h TTimeStamp.h TUri.h TUrl.h TUUID.h TVersionCheck.h TVirtualAuth.h TVirtualFFT.h TVirtualGL.h TVirtualMonitoring.h TVirtualMutex.h TVirtualPadEditor.h TVirtualPad.h TVirtualPadPainter.h TVirtualPerfStats.h TVirtualPS.h TVirtualQConnection.h TVirtualRWMutex.h TVirtualTableInterface.h TVirtualViewer3D.h TVirtualX.h strlcpy.h snprintf.h ROOT/TSeq.hxx TArrayC.h TArrayD.h TArrayF.h TArray.h TArrayI.h TArrayL64.h TArrayL.h TArrayS.h TBits.h TBtree.h TClassTable.h TClonesArray.h TCollection.h TCollectionProxyInfo.h TExMap.h THashList.h THashTable.h TIterator.h TList.h TMap.h TObjArray.h TObjectTable.h TOrdCollection.h TRefArray.h TRefTable.h TSeqCollection.h TSortedList.h TVirtualCollectionProxy.h ESTLType.h RStringView.h TClassEdit.h ROOT/RIntegerSequence.hxx ROOT/RMakeUnique.hxx ROOT/RNotFn.hxx ROOT/RSpan.hxx ROOT/RStringView.hxx ROOT/span.hxx ROOT/TypeTraits.hxx TMacOSXSystem.h TUnixSystem.h root_std_complex.h TClingRuntime.h TBaseClass.h TClassGenerator.h TClass.h TClassMenuItem.h TClassRef.h TClassStreamer.h TDataMember.h TDataType.h TDictAttributeMap.h TDictionary.h TEnumConstant.h TEnum.h TFileMergeInfo.h TFunction.h TFunctionTemplate.h TGenericClassInfo.h TGlobal.h TInterpreter.h TInterpreterValue.h TIsAProxy.h TListOfDataMembers.h TListOfEnums.h TListOfEnumsWithLock.h TListOfFunctions.h TListOfFunctionTemplates.h TMemberStreamer.h TMethodArg.h TMethodCall.h TMethod.h TProtoClass.h TRealData.h TSchemaHelper.h TSchemaRule.h TSchemaRuleSet.h TStatusBitsChecker.h TStreamerElement.h TStreamer.h TToggleGroup.h TToggle.h TVirtualIsAProxy.h TVirtualRefProxy.h TVirtualStreamerInfo.h Getline.h /Users/hwan/tools/root/root618/src/core/base/inc/LinkDef.h
make[1]: *** [core/clingutils/CMakeFiles/G__listDict.dir/all] Error 2
make[2]: 5 make[1]: *** Waiting for unfinished jobs.... rootcling_stage1
*** [core/clingutils/G__complexDict.cxx] Error 1make[1]: *** [core/clingutils/CMakeFiles/G__dequeDict.dir/all] Error 2 0x00000001042385dc

 main + 64
6  dyld                     0x00000001069f90f4 start + 520
Stack dump:
0.	Program arguments: /Users/hwan/tools/root/root618/build/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__mapDict.cxx -s /Users/hwan/tools/root/root618/build/lib/libmapDict.so -m libCore_rdict.pcm -excludePath /Users/hwan/tools/root/root618/src -excludePath /Users/hwan/tools/root/root618/build -rml libmapDict.so -rmf /Users/hwan/tools/root/root618/build/lib/libmapDict.rootmap -I/Users/hwan/tools/root/root618/src -I/Users/hwan/tools/root/root618/build/etc/cling/ -I/Users/hwan/tools/root/root618/build/include -I/Users/hwan/tools/root/root618/src/core/clingutils/inc -I/Users/hwan/tools/root/root618/build/etc/cling/cint -I/Users/hwan/tools/root/root618/src/core/clingutils map /Users/hwan/tools/root/root618/src/core/clingutils/src/mapLinkdef.h
Segmentation fault
make[2]: *** [core/clingutils/G__map2Dict.cxx] Error 1
make[2]: *** [core/clingutils/G__vectorDict.cxx] Error 1
make[1]: *** [core/clingutils/CMakeFiles/G__complexDict.dir/all] Error 2
Segmentation fault
make[1]: *** [core/clingutils/CMakeFiles/G__map2Dict.dir/all] Error 2
Segmentation fault
make[1]: *** [core/clingutils/CMakeFiles/G__vectorDict.dir/all] Error 2
make[2]: *** [core/clingutils/G__forward_listDict.cxx] Error 1
make[1]: *** [core/clingutils/CMakeFiles/G__forward_listDict.dir/all] Error 2
make[2]: *** [core/G__Core.cxx] Error 1
make[2]: *** [core/clingutils/G__mapDict.cxx] Error 1
make[1]: *** [core/CMakeFiles/G__Core.dir/all] Error 2
make[1]: *** [core/clingutils/CMakeFiles/G__mapDict.dir/all] Error 2
make: *** [all] Error 2

Does anyone know how to solve this problem?

Thanks!

_ROOT Version: 6.18/04
_Platform: Mac OS Monterey 12.2.1 & XCode 13.1
_Compiler: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin21.3.0
Thread model: posix
cmake version : 3.22.2


Yup, 6.18 doesn’t support M1 yet. Try the nightly build from Index of /download/nightly e.g. curl -L -O https://root.cern/download/nightly/root_v6.27.01.macos-12.2-arm64-clang130.pkg and install that.

Thanks for your replying!

But I should use version 6.18 for my analysis.

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