Fork me on GitHub

Opened 3 years ago

Last modified 3 years ago

#1538 new Bug

Error with libDelphesNoFastJet

Reported by: Sebastian Urrutia Quiroga Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

I just downloaded Delphes3 on my Macbook (macOS Monterey 12.3.1, chip Apple M1 Pro). ROOT(v.26) was installed using conda. When compiling, I got this error:

>> Building libDelphesNoFastJet.dylib
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libDelphesNoFastJet.dylib] Error 1

What am I doing wrong and how can I fix it? Thanks.

Change History (1)

comment:1 by Sebastian Urrutia Quiroga, 3 years ago

I was able to fix the installation by modifying the Makefile.arch file by changing these lines

ifeq ($(PLATFORM),macosx)
MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
MACOSXTARGET := 10.$(MACOSX_MINOR)
else
MACOSXTARGET := $(MACOSX_DEPLOYMENT_TARGET)
endif
endif

to

ifeq ($(PLATFORM),macosx)
MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
MACOSXTARGET := 12.$(MACOSX_MINOR)
else
MACOSXTARGET := $(MACOSX_DEPLOYMENT_TARGET)
endif
endif

Not quite sure how this can be solved sustainably.

Note: See TracTickets for help on using tickets.