ROOT Version: 6.14.04
Platform: Mac OS X Mojave
Compiler: CMake
Hi,
I have been trying to build my own ROOT locally following the instructions found at: https://root.cern.ch/building-root but when I get to point (5) the build fails at 9% with the following error :
[ 9%] Performing build step for 'OPENSSL'
CMake Error at /Users/callumbooth/Documents/build/builtins/openssl/OPENSSL-prefix/src/OPENSSL-stamp/OPENSSL-build-RelWithDebInfo.cmake:16 (message):
Command failed: 2
'make' '-j1' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -fPIC'
See also
/Users/callumbooth/Documents/build/builtins/openssl/OPENSSL-prefix/src/OPENSSL-stamp/OPENSSL-build-*.log
make[2]: *** [builtins/openssl/OPENSSL-prefix/src/OPENSSL-stamp/OPENSSL-build] Error 1
make[1]: *** [builtins/openssl/CMakeFiles/OPENSSL.dir/all] Error 2
make: *** [all] Error 2
and in the OPENSSL-build-*.log file that is references the error is:
In file included from cryptlib.c:117:
./cryptlib.h:62:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h>
^~~~~~~~~~
1 error generated.
make[4]: *** [cryptlib.o] Error 1
make[3]: *** [build_crypto] Error 1
I am fairly new to this kind of stuff and have only used ROOT on lxplus or my university’s server thus far. I recently updated my operating system to OS X Mojave from High Sierra so I am unsure whether this is an issue.
Thanks,
Callum