_ROOT Version: v6.14/04
_Platform: macOS Mojave
__
Hello!
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).
This is the starting error message:
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
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 http://root.cern.ch |
| (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]
and this is the error I get when trying to compile a file with .L .cpp++
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/diogopires/Desktop/./muon_histo_cpp.so
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
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
warning: no such sysroot directory: '-I/usr/local/Cellar/root/6.14.04_1/etc/root'
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
^~~~~
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION '1'
Extraction of runtime standard library version was: ''
In file included from input_line_3:1:
In file included from /usr/local/Cellar/root/6.14.04_1/include/root/RtypesCore.h:25:
/usr/local/Cellar/root/6.14.04_1/etc/root/cling/lib/clang/5.0.0/include/stddef.h:51:9: error: unknown type name '__PTRDIFF_TYPE__'
typedef __PTRDIFF_TYPE__ ptrdiff_t;
^
/usr/local/Cellar/root/6.14.04_1/etc/root/cling/lib/clang/5.0.0/include/stddef.h:62:9: error: unknown type name '__SIZE_TYPE__'
typedef __SIZE_TYPE__ size_t;
^
/usr/local/Cellar/root/6.14.04_1/etc/root/cling/lib/clang/5.0.0/include/stddef.h:90:9: error: unknown type name '__WCHAR_TYPE__'
typedef __WCHAR_TYPE__ wchar_t;
^
/usr/local/Cellar/root/6.14.04_1/etc/root/cling/lib/clang/5.0.0/include/stddef.h:90:24: error: expected unqualified-id
typedef __WCHAR_TYPE__ wchar_t;
^
input_line_3:2:10: fatal error: 'string' file not found
#include <string>
^~~~~~~~
*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCling.so] TCling::TCling(char const*, char const*, char const* const*) (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCling.so] CreateInterpreter (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCling.so] TCling__GetInterpreter (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCling.so] RootClingMain(int, char**, bool, bool) (no debug info)
[/usr/local/Cellar/root/6.14.04_1/lib/root/libCling.so] ROOT_rootcling_Driver (no debug info)
[/usr/local/Cellar/root/6.14.04_1/bin/rootcling] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
Error in <ACLiC>: Dictionary generation failed!
root [1]
I’m kind of new to this, so I’m not really used to these kinds of problems…
Can anyone help me with this one?
Thanks in advance!