_ROOT Version: 6.12.06
_Platform: MacOS Mojave 10.14
_Compiler: clang-1000.11.45.5 (?)
Hi all,
I get a compilation error in root 6.12.06.
I successfully built it in a separate folder from the one where I extracted the tarball, and I am making it with
cmake --build .
I get this error, and I looked for it in this forum finding a suggestion about updating Xcode like this
xcode-select --install
I did that and recompiled but in the end I get the very same error.
And yes, i did all the procedure from scratch after updating Xcode.
Any idea?
[53%] Built target Dictgen
[ 53%] Built target rootcling_stage1
[ 53%] Built target G__Core
[ 53%] Performing configure step for 'LZMA'
CMake Error at /Applications/root-6.12.06-build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-RelWithDebInfo.cmake:16 (message):
Command failed: 1
'/Applications/root-6.12.06-build/LZMA-prefix/src/LZMA/configure' '--prefix' '/Applications/root-6.12.06-build' '--libdir' '/Applications/root-6.12.06-build/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
/Applications/root-6.12.06-build/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
mac-fantini:root-6.12.06-build gfantini$ ls /Applications/root-6.12.06-build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-*.log
/Applications/root-6.12.06-build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-err.log
/Applications/root-6.12.06-build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-out.log
mac-fantini:root-6.12.06-build gfantini$ cat /Applications/root-6.12.06-build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-err.log
configure: error: in `/Applications/root-6.12.06-build/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
mac-fantini:root-6.12.06-build gfantini$ cat /Applications/root-6.12.06-build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-out.log
XZ Utils 5.2.1
System type:
Configure options:
Initializing Automake:
mac-fantini:root-6.12.06-build gfantini$
Thanks a lot!
Guido