Fork me on GitHub

Opened 3 years ago

Last modified 3 years ago

#1522 new Bug

Cannot install Delphes on MacOS Monterey

Reported by: Steven Ferrante Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Installation, MacOS, ROOT Cc:

Description (last modified by Pavel Demin)

Hi,

I’m trying to install Delphes (I have macOS Monterey 12.0.1) by either using

curl -O http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.2.0.tar.gz
tar -xf Delphes-3.2.0.tar.gz
cd Delphes-3.2.0/
make

or by typing “install Delphes” inside the MagGraph environment, but neither work for me. Initially I had ROOT 6.24, but saw in a post (https://answers.launchpad.net/mg5amcnlo/+question/697395) that trying ROOT 6.20 instead of 6.24 should work (for a MacOS slightly older than the one I have). I tried getting ROOT 6.20.08 from https://root.cern/releases/release-62008/, but this still gave me errors.

Below is the output I get when I type "install Delphes" into a MadGraph environment (this is when I had ROOT 6.20.08):

MG5_aMC>install Delphes 
   You are installing 'Delphes', please cite ref(s): arXiv:1307.6346. 
Downloading http://cp3.irmp.ucl.ac.be/downloads/Delphes-3-current.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5294k  100 5294k    0     0  1518k      0  0:00:03  0:00:03 --:--:-- 1520k
compile Delphes. This might take a while.
>> Generating tmp/classes/ClassesDict.cc
warning: Please remove the deprecated flag -c.
warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
In file included from input_line_1:1:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:90:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/exception:81:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstdlib:85:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdlib.h:93:
/Applications/root_v6.20.08/etc//cling/lib/clang/5.0.0/include/stdlib.h:8:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
              ^~~~~~~~~~
In file included from input_line_3:1:
In file included from /Applications/root_v6.20.08/include/RtypesCore.h:25:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stddef.h:45:
/Applications/root_v6.20.08/etc//cling/lib/clang/5.0.0/include/stddef.h:51:9: error: unknown type name '__PTRDIFF_TYPE__'
typedef __PTRDIFF_TYPE__ ptrdiff_t;
        ^
/Applications/root_v6.20.08/etc//cling/lib/clang/5.0.0/include/stddef.h:62:9: error: unknown type name '__SIZE_TYPE__'
typedef __SIZE_TYPE__ size_t;
        ^
/Applications/root_v6.20.08/etc//cling/lib/clang/5.0.0/include/stddef.h:90:9: error: unknown type name '__WCHAR_TYPE__'
typedef __WCHAR_TYPE__ wchar_t;
        ^
/Applications/root_v6.20.08/etc//cling/lib/clang/5.0.0/include/stddef.h:90:24: error: expected unqualified-id
typedef __WCHAR_TYPE__ wchar_t;
                       ^
In file included from input_line_3:2:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:506:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:639:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:46:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef:47:1: error: unknown type name '_LIBCPP_BEGIN_NAMESPACE_STD'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef:49:1: error: expected unqualified-id
using ::ptrdiff_t;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef:63:50: error: use of undeclared identifier 'char8_t'
template <>          struct __libcpp_is_integral<char8_t>            { enum { value = 1 }; };
                                                 ^
/Library/Developer/CommandLineTools/usr/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 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:506:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:639:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:52:1: error: expected unqualified-id
namespace std  // purposefully not versioned
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:60:5: error: expected expression
    const _Ep* __begin_;
    ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:58:28: error: variable has incomplete type 'class _LIBCPP_TEMPLATE_VIS'
class _LIBCPP_TEMPLATE_VIS initializer_list
                           ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:58:7: note: forward declaration of 'std::_LIBCPP_TEMPLATE_VIS'
class _LIBCPP_TEMPLATE_VIS initializer_list
      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:96:8: error: unknown type name '_LIBCPP_INLINE_VISIBILITY'
inline _LIBCPP_INLINE_VISIBILITY
       ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:97:30: error: expected ';' at end of declaration
_LIBCPP_CONSTEXPR_AFTER_CXX11
                             ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:98:7: error: unknown type name '_Ep'
const _Ep*
      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:99:24: error: use of undeclared identifier '_Ep'
begin(initializer_list<_Ep> __il) _NOEXCEPT
                       ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/initializer_list:99:24: error: use of undeclared identifier '_Ep'
/Library/Developer/CommandLineTools/usr/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 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:506:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:640:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:424:1: error: unknown type name '_LIBCPP_BEGIN_NAMESPACE_STD'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:426:1: error: expected unqualified-id
template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
0  libCling.6.20.08.so      0x0000000110803ad5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  libCling.6.20.08.so      0x0000000110804126 SignalHandler(int) + 598
2  libsystem_platform.dylib 0x00007ff815396e2d _sigtramp + 29
3  libCling.6.20.08.so      0x000000011058a822 clang::DiagnosticsEngine::DiagStateMap::lookup(clang::SourceManager&, clang::SourceLocation) const + 50
Stack dump:
0.	Program arguments: rootcint -f tmp/classes/ClassesDict.cc -c -Iexternal classes/ClassesLinkDef.h 

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/Applications/root_v6.20.08/lib/libCling.6.20.08.so] clang::DiagnosticsEngine::DiagStateMap::lookup(clang::SourceManager&, clang::SourceLocation) const (no debug info)
make: *** [tmp/classes/ClassesDict.cc] Error 139
Error detected during the compilation. Please check the compilation error and run make manually.
save configuration file to /Users/stevenferrante/MyStuff/Cornell/Courses/GradLab/Project/MG5_aMC_v3_3_0/input/mg5_configuration.txt
MG5_aMC>

Change History (3)

comment:1 by Pavel Demin, 3 years ago

Description: modified (diff)

comment:2 by Pavel Demin, 3 years ago

I think that MacOS 12.0 is too recent to be usable with ROOT:

https://root-forum.cern.ch/t/root-6-24-06-can-not-work-on-macos-monterey/47409
https://root-forum.cern.ch/t/root-fails-after-upgrade-to-macos-monterey-12-0-1/47494

It would be easier to install ROOT on MacOS 11.5 using the pre-built binary packages:

https://root.cern/releases/release-62406/

Delphes-3.2.0 is a very old version.

Please try the latest Delphes version from the following link:

​​​​​https://github.com/delphes/delphes/archive/master.zip

comment:3 by Pavel Demin, 3 years ago

For information. I have tested ROOT 6.24.06 and the latest Delphes version from GitHub on a MacBook with the M1 processor.

Everything works in the x86_64 emulation mode (Rosetta 2). I have installed ROOT via the brew package manager and the latest Delphes version from the following link:

​​​​​​https://github.com/delphes/delphes/archive/master.zip

Note: See TracTickets for help on using tickets.