Hi,
I’m having problems with ROOT7 after installing the new macOS and Xcode updates. Up until yesterday I was having problems with sdk paths until someone recommended changing the path which I did, but now I’m having problems compiling some code and when I run the make command, I get:
make -j7
[ 1%] Building CXX object UCL/Plotter/CMakeFiles/PlotterBase.dir/PlotterBase.cpp.o
[ 11%] Built target mu3eAnaAccidentals
[ 11%] Built target mu3eAnaBhabhaKinematics
[ 11%] Built target mu3eAnaDarkPhotonNorm
[ 11%] Built target mu3eAnaDarkPhotonNorm_Bhabha
[ 11%] Built target mu3eAnaBhabhaPairAccidentals
In file included from /Users/alexgavin/Project/software/mu3eAna/UCL/Plotter/PlotterBase.cpp:3:
In file included from /Users/alexgavin/Project/software/mu3eAna/UCL/Plotter/PlotterBase.hpp:9:
In file included from /Users/alexgavin/Project/software/install/root/include/TString.h:26:
In file included from /Users/alexgavin/Project/software/install/root/include/Rtypes.h:23:
In file included from /Users/alexgavin/Project/software/install/root/include/RtypesCore.h:23:
/Users/alexgavin/Project/software/install/root/include/ROOT/RConfig.hxx:282:13: fatal error: ‘AvailabilityMacros.h’ file not found
include <AvailabilityMacros.h>
^~~~~~~~~~~~~~~~~~~~~~
[ 18%] Built target mu3eAnaDarkPhoton_Cutscan
[ 18%] Built target mu3eAnaDarkPhoton_Cutscan_IC
[ 18%] Built target mu3eAnaVertexCount
[ 20%] Built target mu3eAnaDarkPhoton_Cutscan_Bhabha
[ 22%] Built target mu3eAnaKunoCutScan
1 error generated.
make[2]: *** [UCL/Plotter/CMakeFiles/PlotterBase.dir/PlotterBase.cpp.o] Error 1
make[1]: *** [UCL/Plotter/CMakeFiles/PlotterBase.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 24%] Built target mu3eAnaVertexCountRec
[ 29%] Built target mu3eAnaTargetfinder
[ 30%] Built target mu3eAnaOccupancy
[ 30%] Built target mu3eAnaConversionenergies
[ 80%] Built target sfh
make: *** [all] Error 2
I’ve read some posts on here from people with similar issues and they were recommended to rebuild ROOT from scratch, but I’m a little scared to do this because I’m running code on software that depends on ROOT and Geant4. So, my question is: if I rebuild ROOT7, will it mess up my Geant4 and consequently the software that I’m using that depends on these? I’d really appreciate any suggestions!
Thanks.
_ROOT Version: 7
_Platform: macOS
_Compiler: Apple clang