Closed zoglauer closed 5 years ago
Solution: After installing XCode and the xcode command-line tools with xcode-select --install
Also install the package located at: /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg
Problem: The compilation of ROOT fails with this error message:
CMake Error at /Users/andreas/Science/Software/External/root_v6.14.04/root_v6.14.04-build/PCRE-prefix/src/PCRE-stamp/PCRE-configure-RelWithDebInfo.cmake:16 (message): Command failed: 1
'./configure' '--prefix' '/Users/andreas/Science/Software/External/root_v6.14.04/root_v6.14.04-build' '--with-pic' '--disable-shared' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc' 'CFLAGS=-O'
See also
make[2]: [PCRE-prefix/src/PCRE-stamp/PCRE-configure] Error 1 make[1]: [CMakeFiles/PCRE.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....
And the PCRE configure file contains something like this:
configure: error: in
/Users/andreas/Science/Software/External/root_v6.14.04/root_v6.14.04-build/PCRE-prefix/src/PCRE': configure: error: cannot run C compiled programs. If you meant to cross compile, use
--host'. See `config.log' for more details