O2 DPG / EVTGEN

I am trying to install O2 DPG packages in my local machine ( Mcbook Pro, macOS Monterey 12.3.1, Apple M1 pro).
While trying to install EVTGEN, I face an error at Building PHOTOS@v.3.64 :
aliBuild build EVTGEN --defaults o2

gfortran -g -lstdc++ -shared -o lib/libPhotospp.so.3.64 -Wl,-soname,libPhotospp.so src/photosCInterfaces/.o src/photos-C/.o src/utilities/*.o
ld: unknown option: -soname
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

The log file is at : CERNBox

Maybe @hristov (as M1 expert) can be of help here.

The EVTGEN packages are not yet ported to Mac OS and for the moment can be used only on Linux.

Dear @sacharya,

Despite giving a reply 2 years later, I still hope what’s being posted here would help you out.

Actually we’ve been facing the same issue with M1 chip MacOSX(Sonoma 14.7 and Sequoia 15.2), and with huge help of @Andry who has managed to fix PHOTOS building issue for intel chip MacOSX, we understood that apparently -soname is a known option for Linux but not for MacOSX, so you would first need to replace it everywhere by -install_name. The later will fix error msg in original post, but you will still have another issue of dynamic library linking for some c++ libraries; to fix that, you have to re-adapt a bit the setup for make.

All the above mentioned fix procedures can be found in my PHOTOS git repo, please check it out here: https://github.com/Elros60/photospp/tree/macosx

Then when you are gonna build PHOTOS, you need to modify a little bit recipe photos.sh in /alidist::


So aliBuild will fetch the source codes from my repo in the correct branch(contains all modifications), or you make your own fork and make changes.

As last step, you just run the usual build command: aliBuild build PHOTOS then aliBuild build EVTGEN.

Hope this will still be useful for Mac users :grinning:

Best regards,
Chi.