MG5 and ExRootAnalysis

Asked by Sebastian Urrutia-Quiroga

Hi,
I'm trying to install ExRootAnalysis via MG5_aMC_v3.1.0 but I got the following error message:

MG5_aMC>install ExRootAnalysis
Downloading http://madgraph.physics.illinois.edu/Downloads/ExRootAnalysis/ExRootAnalysis_V1.1.5.tar.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 49515 100 49515 0 0 231k 0 --:--:-- --:--:-- --:--:-- 231k
compile ExRootAnalysis. This might take a while.
>> Generating tmp/src/ExRootAnalysisDict.cc
In file included from input_line_1:1:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/new:90:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/exception:81:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:85:
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
                                 ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
  return ::ldiv(__x, __y);
         ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
                                 ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
  return ::lldiv(__x, __y);
         ~~^
In file included from input_line_1:1:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/new:90:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/exception:81:
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:100:9: error: no member named 'div_t' in the global namespace
using ::div_t;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:101:9: error: no member named 'ldiv_t' in the global namespace
using ::ldiv_t;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:103:9: error: no member named 'lldiv_t' in the global namespace
using ::lldiv_t;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:105:9: error: no member named 'atof' in the global namespace
using ::atof;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:106:9: error: no member named 'atoi' in the global namespace
using ::atoi;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:107:9: error: no member named 'atol' in the global namespace
using ::atol;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:109:9: error: no member named 'atoll' in the global namespace
using ::atoll;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:111:9: error: no member named 'strtod' in the global namespace
using ::strtod;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:112:9: error: no member named 'strtof' in the global namespace
using ::strtof;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:113:9: error: no member named 'strtold' in the global namespace
using ::strtold;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:114:9: error: no member named 'strtol' in the global namespace
using ::strtol;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:116:9: error: no member named 'strtoll' in the global namespace
using ::strtoll;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:118:9: error: no member named 'strtoul' in the global namespace
using ::strtoul;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:120:9: error: no member named 'strtoull' in the global namespace
using ::strtoull;
      ~~^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstdlib:122:9: error: no member named 'rand' in the global namespace
using ::rand;
      ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from input_line_3:2:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/string:506:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/string_view:175:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/__string:57:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/algorithm:639:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:46:
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstddef:47:1: error: unknown type name '_LIBCPP_BEGIN_NAMESPACE_STD'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstddef:49:1: error: expected unqualified-id
using ::ptrdiff_t;
^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstddef:63:50: error: use of undeclared identifier 'char8_t'
template <> struct __libcpp_is_integral<char8_t> { e...
                                                 ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/cstddef:82:1: error: unknown type name '_LIBCPP_END_NAMESPACE_STD'
_LIBCPP_END_NAMESPACE_STD
^
In file included from input_line_3:2:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/string:506:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/string_view:175:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/__string:57:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/algorithm:639:
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:52:1: error: expected unqualified-id
namespace std // purposefully not versioned
^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:60:5: error: expected expression
    const _Ep* __begin_;
    ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:58:28: error: variable has incomplete type 'class _LIBCPP_TEMPLATE_VIS'
class _LIBCPP_TEMPLATE_VIS initializer_list
                           ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:58:7: note: forward declaration of 'std::_LIBCPP_TEMPLATE_VIS'
class _LIBCPP_TEMPLATE_VIS initializer_list
      ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:96:8: error: unknown type name '_LIBCPP_INLINE_VISIBILITY'
inline _LIBCPP_INLINE_VISIBILITY
       ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:97:30: error: expected ';' at end of declaration
_LIBCPP_CONSTEXPR_AFTER_CXX11
                             ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:98:7: error: unknown type name '_Ep'
const _Ep*
      ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:99:24: error: use of undeclared identifier '_Ep'
begin(initializer_list<_Ep> __il) _NOEXCEPT
                       ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:99:24: error: use of undeclared identifier '_Ep'
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/initializer_list:99:35: error: expected function body after function declarator
begin(initializer_list<_Ep> __il) _NOEXCEPT
                                  ^
In file included from input_line_3:2:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/string:506:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/string_view:175:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/__string:57:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/algorithm:640:
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:424:1: error: unknown type name '_LIBCPP_BEGIN_NAMESPACE_STD'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:426:1: error: expected unqualified-id
template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:427:49: error: variable has incomplete type 'class _LIBCPP_TEMPLATE_VIS'
template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
                                                ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:427:28: note: forward declaration of '_LIBCPP_TEMPLATE_VIS'
template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
                           ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:428:50: error: variable has incomplete type 'struct _LIBCPP_TEMPLATE_VIS'
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
                                                 ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:427:28: note: forward declaration of '_LIBCPP_TEMPLATE_VIS'
template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
                           ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:433:3: error: expected expression
  static _LIBCPP_CONSTEXPR const _Tp value = __v;
  ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:431:29: error: variable has incomplete type 'struct _LIBCPP_TEMPLATE_VIS'
struct _LIBCPP_TEMPLATE_VIS integral_constant
                            ^
/Users/surrutiaquir/Software/Python/envs/my_root/bin/../include/c++/v1/type_traits:427:28: note: forward declaration of '_LIBCPP_TEMPLATE_VIS'
template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
                           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from input_line_5:1:
In file included from /Users/surrutiaquir/Software/Python/envs/my_root/etc//cling/lib/clang/5.0.0/include/assert.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:42:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning: "Unsupported compiler detected" [-W#warnings]
#warning "Unsupported compiler detected"
 ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:828:2: error: Unsupported architecture
#error Unsupported architecture
 ^
Error: Error loading the default header files.
make: *** [tmp/src/ExRootAnalysisDict.cc] Error 1
Error detected during the compilation. Please check the compilation error and run make manually.
save configuration file to /Users/surrutiaquir/Software/MG5_aMC_v3_1_0/input/mg5_configuration.txt

Any ideas? I'm not quite sure what it the problem. Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Ramon Spinka (tillman1) said :
#1

I highly appreciate your hard-working skills as the post you published have some great information which is quite beneficial for me, I hope you will post more like that in the future.

https://www.liteblue.biz/

Revision history for this message
Sebastian Urrutia-Quiroga (sgurruti) said :
#2

I presume the previous post is some kind of bot

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#3

Yes should be.

I would advise to check the following link:
https://root-forum.cern.ch/t/root-6-10-08-on-macos-high-sierra-compiling-macro-example/26651/40
where they seem to discuss that issue.

It is clearly a mac specific issue. After that it might be better to contact root author since my experience in C++ is close to none

Olivier

Revision history for this message
Sebastian Urrutia-Quiroga (sgurruti) said :
#4

Thanks Olivier Mattelaer, that solved my question.