Fork me on GitHub

Opened 20 months ago

Last modified 20 months ago

#1579 new Bug

Delphes does not even begin to compile

Reported by: J. A. Aguilar Saavedra Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

Hi, I'm trying to compile Delphes 3.5.0 on a M2 Max Mac, with Mac OS Ventura 13.2.1 and Xcode 14.3.

Installing from MG5 did not work (I have MG5 running with gcc-13 and python 3.10 from homebrew). I then downloaded and tried to install independently. I have root 6.26.06_2 from homebrew too. I'm not sure which c++ compiler it is trying to use, I just type

./configure
./make

It gives a plethora of errors that seem to show some incompatibility with the current Xcode version. I include them in attachment.

Thanks, and best regards.

JA

Attachments (1)

logs.rtf (24.8 KB ) - added by J. A. Aguilar Saavedra 20 months ago.
logs

Download all attachments as: .zip

Change History (5)

by J. A. Aguilar Saavedra, 20 months ago

Attachment: logs.rtf added

logs

comment:1 by Pavel Demin, 20 months ago

Makefile in Delphes 3.5.0 does not work with the recent MacOS versions. I have fixed it with following commit:

​​https://github.com/delphes/delphes/commit/910bd98482a3df7e7cf0ce045827fe60b903cb1c

I think the easiest solution would be to use the latest Delphes version from the following link:

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

in reply to:  1 comment:2 by J. A. Aguilar Saavedra, 20 months ago

Thanks, but it does not work either. It seems to give the same series of errors, beginning with

Generating tmp/classes/ClassesDict.cc

In file included from input_line_1:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/usr/include/c++/v1/new:93:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/usr/include/c++/v1/cstdlib:135:9: error: no member named 'at_quick_exit' in the global namespace
using ::at_quick_exit _LIBCPP_USING_IF_EXISTS;

Replying to pavel:

Makefile in Delphes 3.5.0 does not work with the recent MacOS versions. I have fixed it with following commit:

​​https://github.com/delphes/delphes/commit/910bd98482a3df7e7cf0ce045827fe60b903cb1c

I think the easiest solution would be to use the latest Delphes version from the following link:

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

comment:3 by Pavel Demin, 20 months ago

I have just updated MacOS, Xcode, command line tools and downloaded ROOT from the following link:

https://root.cern/download/root_v6.28.04.macos-13.3-x86_64-clang140.tar.gz

I can still build the latest version of Delphes from github.

The ROOT version installed via brew works with MacOS 12 but not with MacOS 13.

in reply to:  3 comment:4 by J. A. Aguilar Saavedra, 20 months ago

Thanks a lot for the tip. For the record: I have installed the pkg version specific for ARM:

root_v6.28.04.macos-13.3-arm64-clang140.pkg

The package installer for root works perfectly, I only had to add the bin folder to the path, so that root-config is found. Then, delphes compiled, with the usual warnings and complaints. I guess it used the compiler bundled with Xcode.

I ran some events through pythia 8 with HepMC3 and then with DelphesHepMC3 and the result seems correct. Thanks again!

JA

Note: See TracTickets for help on using tickets.