# ROOT not building

**URL:** <https://root-forum.cern.ch/t/root-not-building/30838>\
**Category:** ROOT\
**Created:** [September 26, 2018, 1:22pm UTC](https://root-forum.cern.ch/t/root-not-building/30838 "2018-09-26T13:22:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbooth](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/9e8a1a/32.png) [@cbooth](https://root-forum.cern.ch/u/cbooth)\
**Post date:** [September 26, 2018, 1:22pm UTC](https://root-forum.cern.ch/t/root-not-building/30838/1 "2018-09-26T13:22:29Z")

</div>

* * *

_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](https://root.cern.ch/building-root) but when I get to point (5) the build fails at 9% with the following error :

```auto
[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

---

<div class="post-metadata">

**Author:** ![arturro96](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@arturro96](https://root-forum.cern.ch/u/arturro96)\
**Post date:** [September 26, 2018, 2:07pm UTC](https://root-forum.cern.ch/t/root-not-building/30838/2 "2018-09-26T14:07:59Z")

</div>

You have to install package at /Library/Developer/CommandLineTools/Packages/macOS\_SDK\_headers\_for\_macOS\_10.14. pkg

---

<div class="post-metadata">

**Author:** ![cbooth](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/9e8a1a/32.png) [@cbooth](https://root-forum.cern.ch/u/cbooth)\
**Post date:** [September 26, 2018, 2:55pm UTC](https://root-forum.cern.ch/t/root-not-building/30838/3 "2018-09-26T14:55:41Z")

</div>

That seems to have worked, thanks!

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [September 27, 2018, 7:22am UTC](https://root-forum.cern.ch/t/root-not-building/30838/4 "2018-09-27T07:22:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 11, 2018, 7:24am UTC](https://root-forum.cern.ch/t/root-not-building/30838/5 "2018-10-11T07:24:06Z")

</div>

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