ROOT stopped working after macOS update to Mojave

(Diogo Pires) #1

_ROOT Version: v6.14/04
_Platform: macOS Mojave


I’ve been using ROOT for a few weeks, so I’m new to it, and when I updated my macOS to Mojave, ROOT stopped working (cannot compile my .cpp files, and gives out a few error messages whenever started).

Therefore, after doing brew update and brew upgrade , and running xcode-select --install, I installed root through brew once again with brew install root.

It then gave out this starting error message:

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
  LC_ALL=C /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++   -O2 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null | awk '/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}' | GREP_OPTIONS= grep -E "(c|g)\+\+"
Results was:
With exit code 256
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
input_line_3:37:10: fatal error: 'string' file not found
#include <string>
  | Welcome to ROOT 6.14/04       |
  |                               (c) 1995-2018, The ROOT Team |
  | Built for macosx64                                         |
  | From tags/v6-14-04@v6-14-04, Aug 23 2018, 17:00:44         |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |

input_line_9:1:10: fatal error: 'iostream' file not found
#include <iostream>
root [0] 

I come to you guys, because after posting this on the ROOT forum, I was told that this might have something to do with homebrew itself, and not ROOT. Can anyone help me?

Thank you in advance :slight_smile:

(Sean Molenaar) #2

What’s the output of your brew doctor and brew config?

(CalemHoffman) #3

Same Issue:

brew doctor

Please note that these warnings are just used to help the Homebrew maintainers

with debugging if you file an issue. If everything you use Homebrew for is

working fine: please don’t worry or file an issue; just ignore this. Thanks!

Warning: You have MacPorts or Fink installed:


This can cause trouble. You don’t have to uninstall them, but you may want to

temporarily move them out of the way, e.g.

sudo mv /opt/local ~/macports

Warning: You have unlinked kegs in your Cellar

Leaving kegs unlinked can lead to build-trouble and cause brews that depend on

those kegs to fail to run properly once built. Run brew link on these:


brew config



HEAD: f239b7a62790cfb4f33bda9aab7597d43f1b1e3b

Last commit: 12 days ago

Core tap ORIGIN:

Core tap HEAD: af25efee5a203e51ab446538a8168229d8d5af40

Core tap last commit: 2 hours ago




CPU: quad-core 64-bit kabylake

Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby

Clang: 10.0 build 1000

Git: 2.17.1 => /Applications/

Curl: 7.54.0 => /usr/bin/curl

Java: N/A

macOS: 10.14-x86_64


CLT headers: N/A

Xcode: 10.0

XQuartz: 2.7.11 => /opt/X11

(Hassaneasa) #4

I am having the same issue, did you find a solution?


(CalemHoffman) #5

No I did not find one through Homebrew.

In the end I ended up pulling the most recent version of root through the git repository and compiled it using the cmake commands given on the ROOT website.

That did work fine in the end.