Install ROOT v.6.28.04 in my linux PC

I’m installing ROOT on my PC, but the compile fails.

ROOT Version: v6.28.04
OS: Scientific Linux7

cmake -DCMAKE_C_COMPILER=/usr/local/bin/gcc -DCMAKE_CXX_COMPILER=/usr/local/bin/c++ -Dopengl=ON -Dfftw3=ON -Dmysql=ON -DCMAKE_INSTALL_PREFIX=../root-install-v6.28.04 ../root_src_v6.28.04

and then

cmake --build . --target install -j8

after about 70% finished, segmentation fault occured.
here is the error message:

Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var LLVM_SYMBOLIZER_PATH to point to it):
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x376774c]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x37658f4]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x3765f6d]
/lib64/libpthread.so.0(+0xf630)[0x7fa5bf84b630]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x375dc52]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x372cc2e]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xc3d2d9]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xc3f1f5]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xc4190d]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xc43d88]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xcb6102]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xcd0f1e]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xc00950]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0xc0f6e3]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x5cf4df]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x5d1be5]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x67e6c1]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x5dd53b]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1(_Z13RootClingMainiPPcb+0x230d)[0x5730fd]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1(ROOT_rootcling_Driver+0xf5)[0x57dd55]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1(main+0x35)[0x496005]
/lib64/libc.so.6(libc_start_main+0xf5)[0x7fa5be5aa555]
/home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1[0x51304d]
PLEASE submit a bug report to (proper cite) and include the crash backtrace.
Stack dump:
0. Program arguments: /home/meg/software/root/root-build-v6.28.04/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__Core.cxx -cxxmodule -s /home/meg/software/root/root-build-v6.28.04/lib/libCore.so -excludePath /home/meg/software/root/root_src_v6.28.04 -excludePath /home/meg/software/root/root-build-v6.28.04/ginclude -excludePath /home/meg/software/root/root-build-v6.28.04/externals -excludePath /home/meg/software/root/root-build-v6.28.04/builtins -writeEmptyRootPCM -m Builtin_intrinsics -mByproduct Builtin_intrinsics -mByproduct ROOT_Foundation_Stage1_NoRTTI -mByproduct ROOT_Foundation_C -mByproduct ROOT_Rtypes -D__STDC_NO_COMPLEX -D__COMPLEX_H
-D_COMPLEX_H -D__CLANG_STDATOMIC_H -compilerI/usr/local/include/c++/8.2.0 -compilerI/usr/local/include/c++/8.2.0/x86_64-pc-linux-gnu -compilerI/usr/local/include/c++/8.2.0/backward -compilerI/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -compilerI/usr/local/include -compilerI/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed -compilerI/usr/include -compilerI/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -compilerI/usr/local/include -compilerI/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed -compilerI/usr/include -I/home/meg/software/root/root-build-v6.28.04/include -I/home/meg/software/root/root-build-v6.28.04/ginclude -I/home/meg/software/root/root_src_v6.28.04/core/base/inc -I/home/meg/software/root/root_src_v6.28.04/core/foundation/inc -I/home/meg/software/root/root_src_v6.28.04/core/cont/inc -I/home/meg/software/root/root_src_v6.28.04/core/gui/inc -I/home/meg/software/root/root_src_v6.28.04/core/meta/inc -I/home/meg/software/root/root_src_v6.28.04/core/clib/inc -I/home/meg/software/root/root_src_v6.28.04/core/rint/inc -I/home/meg/software/root/root_src_v6.28.04/core/zip/inc -I/home/meg/software/root/root_src_v6.28.04/core/thread/inc -I/home/meg/software/root/root_src_v6.28.04/core/textinput/inc -I/home/meg/software/root/root_src_v6.28.04/core/clingutils/inc -I/home/meg/software/root/root_src_v6.28.04/core/base/v7/inc -I/home/meg/software/root/root_src_v6.28.04/core/foundation/v7/inc -I/home/meg/software/root/root_src_v6.28.04/core/unix/inc -I/usr/include -I/home/meg/software/root/root_src_v6.28.04/builtins/xxhash -I/home/meg/software/root/root_src_v6.28.04/builtins/lz4 -I/home/meg/software/root/root_src_v6.28.04/builtins/zstd ROOT/TErrorDefaultHandler.hxx ROOT/TSequentialExecutor.hxx ROOT/StringConv.hxx Buttons.h Bytes.h Byteswap.h KeySymbols.h MessageTypes.h Riostream.h Rtypes.h TApplication.h TAtt3D.h TAttAxis.h TAttBBox2D.h TAttBBox.h TAttFill.h TAttLine.h TAttMarker.h TAttPad.h TAttText.h TBase64.h TBenchmark.h TBuffer3D.h TBuffer3DTypes.h TBuffer.h TColor.h TColorGradient.h TDatime.h TDirectory.h TEnv.h TException.h TExec.h TFileCollection.h TFileInfo.h TFolder.h TInetAddress.h TMacro.h TMathBase.h TMD5.h TMemberInspector.h TMessageHandler.h TNamed.h TNotifyLink.h TObject.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 strtok.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 TError.h ThreadLocalStorage.h ROOT/RLogger.hxx ROOT/RNotFn.hxx ROOT/RRangeCast.hxx ROOT/RSpan.hxx ROOT/RStringView.hxx ROOT/StringUtils.hxx ROOT/span.hxx ROOT/TypeTraits.hxx TUnixSystem.h root_std_complex.h GuiTypes.h TApplicationImp.h TBrowser.h TBrowserImp.h TCanvasImp.h TClassMenuItem.h TContextMenu.h TContextMenuImp.h TControlBarImp.h TGuiFactory.h TInspectorImp.h TObjectSpy.h TToggleGroup.h TToggle.h TBaseClass.h TClassGenerator.h TClass.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 TVirtualIsAProxy.h TVirtualRefProxy.h TVirtualStreamerInfo.h TVirtualArray.h TVirtualObject.h Getline.h /home/meg/software/root/root_src_v6.28.04/core/base/inc/LinkDef.h

  1. Compilation construction
    Segmentation fault
    gmake[2]: *** [core/G__Core.cxx] Error 1
    gmake[1]: *** [core/CMakeFiles/G__Core.dir/all] Error 2
    gmake: *** [all] Error 2

I have wrote the path to llvm-symbolizer in my .bash_profile, but it doesn’t work.
Does anyone know about this error?
I would be very happy to hear the advices

Dear @Weiyuan_Li ,

I am not sure about that stack trace per se, but before doing anything else, have you checked your compiler version? I saw you wrote OS: Scientific Linux7 on your post above. Your compiler needs to support at least C++14 (and at this point in time it’s most beneficial if it supports C++17), so you need at least GCC/clang 9 just to be on the safe side. Can you check this?
That said, are you also completely sure you need to build ROOT manually and you can’t install it via the package manager, anaconda, or by downloading a binary release?
Cheers,
Vincenzo

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