ROOT installation Error with MAC High Seirra


_ROOT Version:ROOT-6.12.06
_Platform:MAC OS - 10.13.6
_Compiler: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1

Apple LLVM version 9.1.0 (clang-902.0.39.2)

Target: x86_64-apple-darwin17.7.0


ERROR REPORT -

In file included from /Users/mansisaxena/Downloads/root-6.12.06/core/dictgen/src/rootcling_impl.cxx:184:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/map:442:

**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tree:1819:22:**  **warning:** 

 **the specified comparator type does not provide a const call operator**

 **[-Wuser-defined-warnings]**

                     __trigger_diagnostics()), "");

 **^**

**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tree:876:70: note:** 

      in instantiation of member function

      'std::__1::__tree<ROOT::TMetaUtils::AnnotatedRecordDecl,

      ROOT::TMetaUtils::AnnotatedRecordDecl::CompareByName,

      std::__1::allocator<ROOT::TMetaUtils::AnnotatedRecordDecl> >::~__tree'

      requested here

    template <class, class, class> friend class _LIBCPP_TEMPLATE_VIS set;

 **^**

**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tree:970:7: note:** 

      from 'diagnose_if' attribute on '__trigger_diagnostics':

  ..._LIBCPP_DIAGNOSE_WARNING(!__invokable<_Compare const&, _Tp const&, _Tp const&>::value,

 **^                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~**

**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:1095:20: note:** 

      expanded from macro '_LIBCPP_DIAGNOSE_WARNING'

    __attribute__((diagnose_if(__VA_ARGS__, "warning")))

 **^           ~~~~~~~~~~~**

1 warning generated.

[ 52%] Built target Dictgen

**Scanning dependencies of target rootcling_stage1**

[ 52%] Building CXX object core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/src/rootcling_stage1.cxx.o

[ 52%]  **Linking CXX executable src/rootcling_stage1**

[ 52%] Built target rootcling_stage1

**Scanning dependencies of target G__Core**

[ 52%]  **Generating G__Core.cxx, ../../lib/libCore.rootmap**

[ 52%] Built target G__Core

[ 52%]  **Creating directories for 'LZMA'**

[ 52%]  **Performing download step (verify and extract) for 'LZMA'**

-- LZMA download command succeeded.  See also /Users/mansisaxena/Downloads/root/LZMA-prefix/src/LZMA-stamp/LZMA-download-*.log

[ 52%]  **No patch step for 'LZMA'**

[ 52%]  **No update step for 'LZMA'**

[ 52%]  **Performing configure step for 'LZMA'**

CMake Error at /Users/mansisaxena/Downloads/root/LZMA-prefix/src/LZMA-stamp/LZMA-configure-RelWithDebInfo.cmake:16 (message):

  Command failed: 1

   '/Users/mansisaxena/Downloads/root/LZMA-prefix/src/LZMA/configure' '--prefix' '/Users/mansisaxena/Downloads/root' '--libdir' '/Users/mansisaxena/Downloads/root/lib' '--with-pic' '--disable-shared' '--quiet' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++' 'CFLAGS=-Wno-format-nonliteral' 'LDFLAGS=-Qunused-arguments'

  See also

    /Users/mansisaxena/Downloads/root/LZMA-prefix/src/LZMA-stamp/LZMA-configure-*.log

make[2]: *** [LZMA-prefix/src/LZMA-stamp/LZMA-configure] Error 1

make[1]: *** [CMakeFiles/LZMA.dir/all] Error 2

make: *** [all] Error 2

visitor-34840293:root mansisaxena$

**contents of LZMA-configure-err.log**

configure: error: in `/Users/mansisaxena/Downloads/root/LZMA-prefix/src/LZMA':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Hello

Im waiting for a reply on this.
Thanks

Have you used the simple 'Build" procedure described here: https://github.com/root-project/root
?

No, I am not aware of this.
Can you write more please ?

Read the page I pointed to … scroll down … all is is explained in the “Building” section.

I did the steps. The make breaks again,

[ 32%] Built target LLVMDebugInfoCodeView

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/SystemUtils.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/TarWriter.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/TargetParser.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/ThreadPool.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Timer.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/ToolOutputFile.cpp.o

[ 32%] Built target obj.llvm-tblgen

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/TrigramIndex.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Triple.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Twine.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Unicode.cpp.o

[ 32%] Linking CXX static library …/libLLVMMC.a

[ 32%] Built target LLVMMC

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/YAMLParser.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/YAMLTraits.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/raw_os_ostream.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/raw_ostream.cpp.o

[ 32%] Building C object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o

[ 32%] Building C object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/regerror.c.o

[ 32%] Building C object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/regexec.c.o

[ 32%] Building C object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/regfree.c.o

[ 32%] Building C object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/regstrlcpy.c.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/xxhash.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Atomic.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/DynamicLibrary.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Errno.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Memory.cpp.o

[ 32%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Mutex.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Path.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Process.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/RWMutex.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/TargetRegistry.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/ThreadLocal.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Threading.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Valgrind.cpp.o

[ 34%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Watchdog.cpp.o

[ 34%] Linking CXX static library …/libLLVMSupport.a

[ 34%] Built target LLVMSupport

make: *** [all] Error 2

Mansis-Air:build mansisaxena$

Try to follow the procedure from this post (just replace the “6.10.08” version there with the current “6.14.02” and in case it breaks, attach here the created “cmake.out.txt” file):

Please note also that the ROOT Team provides ready to use binary distributions and maybe your “operating system version + compiler version” is one of the supported distributions.

HI,

I did the following steps,
but it breaks again.

I attached the cmake.out.txt

Please reply

cmake.out.txt (527.8 KB)

ROOT Forum -> Search -> LZMA XCode

BTW. You’d better start with the newest ROOT (6.14/02 as of today).

Thanks .
I updated my command line tools and everything worked.

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