ROOT not building


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

You have to install package at /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg

That seems to have worked, thanks!

The macOS_SDK_headers package is NOT needed - this is only a workaround. Alternatively and better, update ROOT to the master; the fixes will also arrive in v6.14/06.

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