From eb4ea6bcd5aad0cf4269c3f642a8c04768fffd34 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 30 Jun 2026 14:46:11 +0200 Subject: [PATCH] Fix undefined symbols on macOS ARM --- .../TPC/reconstruction/macro/createTPCSpaceChargeCorrection.C | 1 + .../TPC/spacecharge/macro/calculateDistortionsCorrections.C | 1 + Detectors/TPC/spacecharge/macro/createSCHistosFromHits.C | 1 + tests/test-root-macro.sh.in | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Detectors/TPC/reconstruction/macro/createTPCSpaceChargeCorrection.C b/Detectors/TPC/reconstruction/macro/createTPCSpaceChargeCorrection.C index af066598d1317..89c8ce8062fee 100644 --- a/Detectors/TPC/reconstruction/macro/createTPCSpaceChargeCorrection.C +++ b/Detectors/TPC/reconstruction/macro/createTPCSpaceChargeCorrection.C @@ -34,6 +34,7 @@ #include "TLatex.h" #include "TPCSpaceCharge/SpaceCharge.h" +R__LOAD_LIBRARY(libO2TPCSpaceChargeIO) #include "CommonConstants/MathConstants.h" #include "CommonUtils/TreeStreamRedirector.h" diff --git a/Detectors/TPC/spacecharge/macro/calculateDistortionsCorrections.C b/Detectors/TPC/spacecharge/macro/calculateDistortionsCorrections.C index 1bc7d7a4a3899..4ec1e75d99745 100644 --- a/Detectors/TPC/spacecharge/macro/calculateDistortionsCorrections.C +++ b/Detectors/TPC/spacecharge/macro/calculateDistortionsCorrections.C @@ -11,6 +11,7 @@ // g++ -o spacecharge ~/alice/O2/Detectors/TPC/spacecharge/macro/calculateDistortionsCorrections.C -I ~/alice/sw/osx_x86-64/FairLogger/latest/include -L ~/alice/sw/osx_x86-64/FairLogger/latest/lib -I$O2_ROOT/include -L$O2_ROOT/lib -lO2TPCSpacecharge -lO2CommonUtils -std=c++17 -I$ROOTSYS/include -L$ROOTSYS/lib -lCore -L$VC_ROOT/lib -lVc -I$VC_ROOT/include -Xpreprocessor -fopenmp -I/usr/local/include -L/usr/local/lib -lomp -O3 -ffast-math -lFairLogger -lRIO #include "TPCSpaceCharge/SpaceCharge.h" +R__LOAD_LIBRARY(libO2TPCSpaceChargeIO) #include "TPCBase/Mapper.h" #include #include diff --git a/Detectors/TPC/spacecharge/macro/createSCHistosFromHits.C b/Detectors/TPC/spacecharge/macro/createSCHistosFromHits.C index cf4e5b2719b22..35f03e3a34330 100644 --- a/Detectors/TPC/spacecharge/macro/createSCHistosFromHits.C +++ b/Detectors/TPC/spacecharge/macro/createSCHistosFromHits.C @@ -118,6 +118,7 @@ g++ -o createSCHistosFromHits createSCHistosFromHits.C -I ~/alice/sw/osx_x86-64/ #include "TPCSimulation/SAMPAProcessing.h" #include "TPCSimulation/Point.h" #include "TPCSpaceCharge/SpaceCharge.h" +R__LOAD_LIBRARY(libO2TPCSpaceChargeIO) #include "TPCSpaceCharge/PoissonSolverHelpers.h" #include "DataFormatsTPC/Defs.h" #include "TPCSpaceCharge/SpaceChargeHelpers.h" diff --git a/tests/test-root-macro.sh.in b/tests/test-root-macro.sh.in index f82cdec1e2b0c..65efb8f9d5b8e 100755 --- a/tests/test-root-macro.sh.in +++ b/tests/test-root-macro.sh.in @@ -33,7 +33,7 @@ echo ${INCPATH} | tr ":" "\n" echo "LD_LIBRARY_PATH to be used:" echo ${LIBPATH} | tr ":" "\n" -env ROOT_INCLUDE_PATH=${INCPATH} LD_LIBRARY_PATH=${LIBPATH} @ROOT_root_CMD@ -n -b -l -q -e "${CMD}" +env ROOT_INCLUDE_PATH=${INCPATH} LD_LIBRARY_PATH=${LIBPATH} DYLD_FALLBACK_LIBRARY_PATH=${LIBPATH} @ROOT_root_CMD@ -n -b -l -q -e "${CMD}" RV=$?