Root6 didn't compile

Hi,

root6 didn’t compile on OS X 10.9.3.
clang version: Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

Thanks and regards,
Kirill

clang++ -O2 -m64 -std=c++11 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -stdlib=libc++ -pthread -I/Users/klapidus/root_v6.00.00/root/interpreter/cling/include -I/Users/klapidus/root_v6.00.00/root/interpreter/llvm/inst/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -stdlib=libc++ -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -DNDEBUG -Wno-shadow -Wno-unused-parameter -o core/meta/src/TClingTypedefInfo.o -c /Users/klapidus/root_v6.00.00/root/core/meta/src/TClingTypedefInfo.cxx bin/rmkdepend -R -fcore/meta/src/TClingValue.d -Y -w 1000 -- -m64 -std=c++11 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -stdlib=libc++ -pthread -I/Users/klapidus/root_v6.00.00/root/interpreter/cling/include -I/Users/klapidus/root_v6.00.00/root/interpreter/llvm/inst/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -stdlib=libc++ -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -DNDEBUG -Wno-shadow -Wno-unused-parameter -D__cplusplus -- /Users/klapidus/root_v6.00.00/root/core/meta/src/TClingValue.cxx clang++ -O2 -m64 -std=c++11 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -stdlib=libc++ -pthread -I/Users/klapidus/root_v6.00.00/root/interpreter/cling/include -I/Users/klapidus/root_v6.00.00/root/interpreter/llvm/inst/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -stdlib=libc++ -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -DNDEBUG -Wno-shadow -Wno-unused-parameter -o core/meta/src/TClingValue.o -c /Users/klapidus/root_v6.00.00/root/core/meta/src/TClingValue.cxx clang++ -O2 -m64 -mmacosx-version-min=10.9 -stdlib=libc++ -o bin/rootcling core/utils/src/rootcling.o core/utils/src/DictSelectionReader.o core/utils/src/LinkdefReader.o core/utils/src/TModuleGenerator.o core/utils/src/rootclingTCling.o core/metautils/src/TMetaUtils.o core/metautils/src/BaseSelectionRule.o core/metautils/src/ClassSelectionRule.o core/metautils/src/VariableSelectionRule.o core/metautils/src/RStl.o core/metautils/src/Scanner.o core/metautils/src/SelectionRules.o core/metautils/src/XMLReader.o \ core/clib/src/snprintf.o interpreter/cling/lib/Interpreter/AutoSynthesizer.o interpreter/cling/lib/Interpreter/BackendPass.o interpreter/cling/lib/Interpreter/CIFactory.o interpreter/cling/lib/Interpreter/CheckEmptyTransactionTransformer.o interpreter/cling/lib/Interpreter/ClangInternalState.o interpreter/cling/lib/Interpreter/DeclCollector.o interpreter/cling/lib/Interpreter/DeclExtractor.o interpreter/cling/lib/Interpreter/DynamicExprInfo.o interpreter/cling/lib/Interpreter/DynamicLibraryManager.o interpreter/cling/lib/Interpreter/DynamicLookup.o interpreter/cling/lib/Interpreter/IncrementalExecutor.o interpreter/cling/lib/Interpreter/IncrementalParser.o interpreter/cling/lib/Interpreter/Interpreter.o interpreter/cling/lib/Interpreter/InterpreterCallbacks.o interpreter/cling/lib/Interpreter/InvocationOptions.o interpreter/cling/lib/Interpreter/LookupHelper.o interpreter/cling/lib/Interpreter/NullDerefProtectionTransformer.o interpreter/cling/lib/Interpreter/RequiredSymbols.o interpreter/cling/lib/Interpreter/RuntimeException.o interpreter/cling/lib/Interpreter/Transaction.o interpreter/cling/lib/Interpreter/TransactionTransformer.o interpreter/cling/lib/Interpreter/TransactionUnloader.o interpreter/cling/lib/Interpreter/Value.o interpreter/cling/lib/Interpreter/ValueExtractionSynthesizer.o interpreter/cling/lib/Interpreter/ValuePrinter.o interpreter/cling/lib/Interpreter/ValuePrinterSynthesizer.o interpreter/cling/lib/MetaProcessor/Display.o interpreter/cling/lib/MetaProcessor/InputValidator.o interpreter/cling/lib/MetaProcessor/MetaLexer.o interpreter/cling/lib/MetaProcessor/MetaParser.o interpreter/cling/lib/MetaProcessor/MetaProcessor.o interpreter/cling/lib/MetaProcessor/MetaSema.o interpreter/cling/lib/Utils/AST.o core/base/src/InitGui.o core/base/src/Match.o core/base/src/String.o core/base/src/Stringio.o core/base/src/TApplication.o core/base/src/TApplicationImp.o core/base/src/TAtt3D.o core/base/src/TAttAxis.o core/base/src/TAttBBox.o core/base/src/TAttBBox2D.o core/base/src/TAttFill.o core/base/src/TAttLine.o core/base/src/TAttMarker.o core/base/src/TAttPad.o core/base/src/TAttText.o core/base/src/TBase64.o core/base/src/TBenchmark.o core/base/src/TBrowser.o core/base/src/TBrowserImp.o core/base/src/TBuffer.o core/base/src/TBuffer3D.o core/base/src/TCanvasImp.o core/base/src/TColor.o core/base/src/TColorGradient.o core/base/src/TContextMenu.o core/base/src/TContextMenuImp.o core/base/src/TControlBarImp.o core/base/src/TDatime.o core/base/src/TDirectory.o core/base/src/TEnv.o core/base/src/TError.o core/base/src/TException.o core/base/src/TExec.o core/base/src/TFileCollection.o core/base/src/TFileInfo.o core/base/src/TFolder.o core/base/src/TGuiFactory.o core/base/src/TInetAddress.o core/base/src/TInspectorImp.o core/base/src/TListOfTypes.o core/base/src/TMD5.o core/base/src/TMacro.o core/base/src/TMathBase.o core/base/src/TMemberInspector.o core/base/src/TMessageHandler.o core/base/src/TNamed.o core/base/src/TObjString.o core/base/src/TObject.o core/base/src/TObjectSpy.o core/base/src/TPRegexp.o core/base/src/TParameter.o core/base/src/TPluginManager.o core/base/src/TProcessID.o core/base/src/TProcessUUID.o core/base/src/TQCommand.o core/base/src/TQConnection.o core/base/src/TQObject.o core/base/src/TROOT.o core/base/src/TRef.o core/base/src/TRefCnt.o core/base/src/TRegexp.o core/base/src/TRemoteObject.o core/base/src/TStopwatch.o core/base/src/TStorage.o core/base/src/TString.o core/base/src/TStringLong.o core/base/src/TStyle.o core/base/src/TSysEvtHandler.o core/base/src/TSystem.o core/base/src/TSystemDirectory.o core/base/src/TSystemFile.o core/base/src/TTask.o core/base/src/TTime.o core/base/src/TTimeStamp.o core/base/src/TTimer.o core/base/src/TUUID.o core/base/src/TUri.o core/base/src/TUrl.o core/base/src/TVirtualFFT.o core/base/src/TVirtualGL.o core/base/src/TVirtualMonitoring.o core/base/src/TVirtualMutex.o core/base/src/TVirtualPS.o core/base/src/TVirtualPad.o core/base/src/TVirtualPadEditor.o core/base/src/TVirtualPadPainter.o core/base/src/TVirtualPerfStats.o core/base/src/TVirtualViewer3D.o core/base/src/TVirtualX.o core/cont/src/TArray.o core/cont/src/TArrayC.o core/cont/src/TArrayD.o core/cont/src/TArrayF.o core/cont/src/TArrayI.o core/cont/src/TArrayL.o core/cont/src/TArrayL64.o core/cont/src/TArrayS.o core/cont/src/TBits.o core/cont/src/TBtree.o core/cont/src/TClassTable.o core/cont/src/TClonesArray.o core/cont/src/TCollection.o core/cont/src/TExMap.o core/cont/src/THashList.o core/cont/src/THashTable.o core/cont/src/TIterator.o core/cont/src/TList.o core/cont/src/TMap.o core/cont/src/TObjArray.o core/cont/src/TObjectTable.o core/cont/src/TOrdCollection.o core/cont/src/TRefArray.o core/cont/src/TRefTable.o core/cont/src/TSeqCollection.o core/cont/src/TSortedList.o core/meta/src/TBaseClass.o core/meta/src/TClass.o core/meta/src/TClassGenerator.o core/meta/src/TClassMenuItem.o core/meta/src/TClassRef.o core/meta/src/TDataMember.o core/meta/src/TDataType.o core/meta/src/TDictAttributeMap.o core/meta/src/TDictionary.o core/meta/src/TEnum.o core/meta/src/TEnumConstant.o core/meta/src/TFunction.o core/meta/src/TFunctionTemplate.o core/meta/src/TGenericClassInfo.o core/meta/src/TGlobal.o core/meta/src/TInterpreter.o core/meta/src/TIsAProxy.o core/meta/src/TListOfDataMembers.o core/meta/src/TListOfEnums.o core/meta/src/TListOfFunctionTemplates.o core/meta/src/TListOfFunctions.o core/meta/src/TMethod.o core/meta/src/TMethodArg.o core/meta/src/TMethodCall.o core/meta/src/TProtoClass.o core/meta/src/TRealData.o core/meta/src/TSchemaRule.o core/meta/src/TSchemaRuleSet.o core/meta/src/TStreamerElement.o core/meta/src/TToggle.o core/meta/src/TToggleGroup.o core/meta/src/TViewPubDataMembers.o core/meta/src/TViewPubFunctions.o core/meta/src/TVirtualStreamerInfo.o core/unix/src/TUnixSystem.o core/macosx/src/CocoaUtils.o core/macosx/src/TMacOSXSystem.o core/zip/src/ZDeflate.o core/zip/src/ZInflate.o core/zip/src/Compression.o core/lzma/src/ZipLZMA.o core/clib/src/Demangle.o core/clib/src/attach.o core/clib/src/detach.o core/clib/src/getpagesize.o core/clib/src/keys.o core/clib/src/mcalloc.o core/clib/src/mfree.o core/clib/src/mmalloc.o core/clib/src/mmapsup.o core/clib/src/mmcheck.o core/clib/src/mmemalign.o core/clib/src/mmstats.o core/clib/src/mmtrace.o core/clib/src/mrealloc.o core/clib/src/mvalloc.o core/clib/src/sbrksup.o core/clib/src/snprintf.o core/clib/src/strlcat.o core/clib/src/strlcpy.o core/metautils/src/RConversionRuleParser.o core/metautils/src/TClassEdit.o core/textinput/src/Getline.o core/textinput/src/Getline_color.o core/textinput/src/textinput/Editor.o core/textinput/src/textinput/History.o core/textinput/src/textinput/KeyBinding.o core/textinput/src/textinput/Range.o core/textinput/src/textinput/SignalHandler.o core/textinput/src/textinput/StreamReader.o core/textinput/src/textinput/StreamReaderUnix.o core/textinput/src/textinput/StreamReaderWin.o core/textinput/src/textinput/TerminalConfigUnix.o core/textinput/src/textinput/TerminalDisplay.o core/textinput/src/textinput/TerminalDisplayUnix.o core/textinput/src/textinput/TerminalDisplayWin.o core/textinput/src/textinput/TextInput.o core/textinput/src/textinput/TextInputContext.o core/base/src/G__Core.o io/io/src/TArchiveFile.o io/io/src/TBufferFile.o io/io/src/TCollectionProxyFactory.o io/io/src/TContainerConverters.o io/io/src/TDirectoryFile.o io/io/src/TEmulatedCollectionProxy.o io/io/src/TEmulatedMapProxy.o io/io/src/TFPBlock.o io/io/src/TFile.o io/io/src/TFileCacheRead.o io/io/src/TFileCacheWrite.o io/io/src/TFileMerger.o io/io/src/TFilePrefetch.o io/io/src/TFree.o io/io/src/TGenCollectionProxy.o io/io/src/TGenCollectionStreamer.o io/io/src/TKey.o io/io/src/TKeyMapFile.o io/io/src/TLockFile.o io/io/src/TMakeProject.o io/io/src/TMapFile.o io/io/src/TMemFile.o io/io/src/TStreamerInfo.o io/io/src/TStreamerInfoActions.o io/io/src/TStreamerInfoReadBuffer.o io/io/src/TStreamerInfoWriteBuffer.o io/io/src/TZIPFile.o io/io/src/G__RIO.o core/thread/src/TCondition.o core/thread/src/TConditionImp.o core/thread/src/TMutex.o core/thread/src/TMutexImp.o core/thread/src/TRWLock.o core/thread/src/TSemaphore.o core/thread/src/TThread.o core/thread/src/TThreadFactory.o core/thread/src/TThreadImp.o core/thread/src/TPosixCondition.o core/thread/src/TPosixMutex.o core/thread/src/TPosixThread.o core/thread/src/TPosixThreadFactory.o core/thread/src/G__Thread.o core/meta/src/TCling.o core/meta/src/TClingBaseClassInfo.o core/meta/src/TClingCallFunc.o core/meta/src/TClingCallbacks.o core/meta/src/TClingClassInfo.o core/meta/src/TClingDataMemberInfo.o core/meta/src/TClingMethodArgInfo.o core/meta/src/TClingMethodInfo.o core/meta/src/TClingTypeInfo.o core/meta/src/TClingTypedefInfo.o core/meta/src/TClingValue.o -L/Users/klapidus/root_v6.00.00/root/interpreter/llvm/inst/lib -lclangFrontend -lclangSerialization -lclangDriver -lclangCodeGen -lclangParse -lclangSema -lclangAnalysis -lclangRewriteCore -lclangAST -lclangEdit -lclangLex -lclangBasic -lLLVMObjCARCOpts -lLLVMInstrumentation -lLLVMipo -lLLVMVectorize -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMBitReader -lLLVMBitWriter -lLLVMCore -lLLVMSupport -L/Users/klapidus/root_v6.00.00/root/interpreter/llvm/inst/lib -lz -lpthread -ledit -lcurses -lm -Llib -lm -Wl,-rpath,@loader_path/../lib -ldl -framework Cocoa -lz lib/liblzma.a lib/libpcre.a clang: error: no such file or directory: 'core/macosx/src/CocoaUtils.o' clang: error: no such file or directory: 'core/macosx/src/TMacOSXSystem.o' make: *** [bin/rootcling] Error 1

Hi Kirill,

this is actually surprising.
how did you configure root?

Cheers,
Danilo

Hi Danilo,

just
./configure --enable-roofit

Just before I updated to the Command Line Developer Tools version 5.1.0.0.
But I think this didn’t affect the clang version.

Regards,
Kirill

[code] $ ./configure --enable-roofit
Checking for source directory … /Users/klapidus/root_v6.00.00/root
Configuring for macosx64
Checking for Fink/MacPorts directory …
Checking for GNU Make version >= 3.80 … ok
Checking for C compiler … clang
Checking for C++ compiler … clang++
Checking for linker (LD) … clang++
Checking for F77 compiler … gfortran
Checking whether c++11 mode is supported … yes
Checking whether libc++ is supported … yes
Checking for Python version >= 2.5 … yes
Checking whether to build native MacOS X Cocoa backend … yes
Checking for Xcode OSX SDK … yes
Checking for freetype-config … using builtin freetype
Checking whether to build included libfreetype6 … yes
Checking for pcre-config … not found
Checking whether to build included libpcre … yes
Checking for zlib.h … /usr/include
Checking for libz … /usr/lib
Checking whether to build included zlib … no
Checking for lzma.h … no
Checking for liblzma … /usr/lib
Checking whether to build included lzma … yes
Checking for GL/gl.h, or gl.h … /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers
Checking for libGL, or libMesaGL … /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Libraries
Checking for libGLU, or libMesaGLU … /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Libraries
Checking for GL/glew.h … no
Checking for libGLEW … no
Checking whether to build included GLEW … yes
Checking for pkg-config … not found
Checking whether to build included libftgl … yes
Checking for mysql_config … not found
Checking for mysql.h … no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient … no
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … /usr/lib
Checking for sqlite3.h … /usr/include
Checking for libsqlite3 … /usr/lib
Checking for sql.h … no
Checking for libsqlod … no
Checking for sqlext.h … no
Checking for libiodbc, libodbc, or odbc32 … /usr/lib
Checking for rfio_api.h … no
Checking for librfio, libdpm, libcastorrfio, libshift, shiftmd, or shift … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libcastorrfio, libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for gfal_srm_ifce_types.h … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for fftw3.h … no
Checking for libfftw3, or libfftw3-3 … no
Checking for fitsio.h … no
Checking for libcfitsio, or cfitsio … no
Checking for gvc.h … no
Checking for libgvc, or gvc … no
Checking for libgraph, graph, libcgraph, or cgraph … no
Checking for libcdt, or cdt … no
Checking for libpathplan, or pathplan … no
Checking for libexpat, or expat … /usr/lib
Checking for libgvplugin_dot_layout, or gvplugin_dot_layout … no
Checking for libPythia6 … no
Checking for Pythia8/Pythia.h … no
Checking for libpythia8 … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for davix.hpp … no
Checking for libdavix … no
Checking for chirp_reli.h … no
Checking for libchirp_client … no
Checking for hdfs.h … no
Checking for jni.h … no
Checking for libhdfs … no
Checking for libjvm … no
Checking for libglite-api-wrapper … no
Checking for gapiUI.h … no
Checking for libgapiUI … no
Checking whether to build included libAfterImage … yes
Checking for ldap.h … /usr/include
Checking for libldap … /usr/lib
Checking for liblber … /usr/lib
Checking for PyROOT prerequisites … yes
Checking for Python.h … /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
Checking for python2.7, libpython2.7, libpython, python, or Python … /System/Library/Frameworks/Python.framework/Versions/2.7/lib
Checking for xml2-config … /usr/bin/xml2-config
Checking for libxml2 version >= 2.4.x … ok
Checking for XrdVersion.hh … no
Checking for libssl … /usr/lib
Checking for libcrypto … /usr/lib
Checking for openssl/bio.h … /usr/include
Checking for openssl/blowfish.h … /usr/include
Checking for openssl/err.h … /usr/include
Checking for openssl/pem.h … /usr/include
Checking for openssl/rand.h … /usr/include
Checking for openssl/rsa.h … /usr/include
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … /usr/include
Checking for krb5.h redirect … /usr/include/krb5/krb5.h
Checking for krb5_c_valid_cksumtype in krb5.h … yes
Checking for valid_cksumtype in krb5.h … no
Checking for libk5crypto … /usr/lib
Checking whether we’re using MIT Kerberos … yes
Checking for krb5_c_valid_cksumtype in /usr/lib/libk5crypto.dylib … ok
Checking for valid_cksumtype in /usr/lib/libk5crypto.dylib … ok
Checking for libkrb5 … /usr/lib
Checking for kinit … /usr/bin/kinit
Checking for libcom_err … /usr/lib
Checking for shadow passwords … no
Checking for gsl/gsl_version.h … no
Checking for gsl-config … not found
Checking whether to build libMathMore … no
Checking whether to build libGenVector … yes
Checking whether to build libRooFit … yes
Checking whether to build libMinuit2 … no
Checking whether to build libUnuran … no
Checking whether to build libVc … no
Checking whether to install VDT … yes
Checking whether to build libGdml … no
Checking whether to build libTable … no
Checking whether to build libTMVA … yes
Checking whether to build libRHTTP … no
Checking whether to build libMemStat … yes
Checking whether to build afdsmgrd … no
Creating include … done
Creating bin … done
Creating lib … done
Writing config/Makefile.config … done
Writing config/Makefile.comp … done
Writing include/RConfigure.h … done
Writing include/RConfigOptions.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/daemons/rootd.rc.d … done
Writing etc/daemons/rootd.xinetd … done
Writing etc/daemons/proofd.rc.d … done
Writing etc/daemons/proofd.xinetd … done
Writing main/src/proofserv.sh … done
Writing main/src/roots.sh … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing bin/thisroot.sh … done
Writing bin/thisroot.csh … done
Writing bin/setxrd.sh … done
Writing bin/setxrd.csh … done
Writing config.status … done

Enabled support for asimage, astiff, bonjour, builtin_afterimage, builtin_ftgl, builtin_freetype, builtin_glew, builtin_pcre, builtin_lzma, builtin_llvm, libcxx, cocoa, explicitlink, fink, genvector, krb5, ldap, memstat, opengl, python, roofit, rpath, shared, sqlite, ssl, tmva, vdt, xml.

To build ROOT type:

make [/code]

To me, this problem looks very much like:

Indeed, 2-core compilation worked out : )
Thanks for the hint!

Kirill

Well, maybe you could download the new official root_v6.00.00.source.tar.gz file (which now contains a fix for my original problem) and try to build it with just 1 core. If you still get your problem then one needs to fix your problem separately, too.