Support #24067
Compilation error on OSX
100%
Description
I'm getting the following error trying to compile sbndcode v08_43_00 with quals c7:prof on Mac Mojave. OS-10.14.
FAILED: sbndcode/sbndcode/CRT/CRTProducts/sbndcode_CRT_CRTProducts_dict_checked cd /Users/icaza/work/sbndcode/build_d18.x86_64/sbndcode/sbndcode/CRT/CRTProducts && /cvmfs/larsoft.opensciencegrid.org/products/cmake/v3_14_3/Darwin64bit+18/bin/cmake -E env ASAN_OPTIONS=detect_leaks=0:new_delete_type_mismatch=0 checkClassVersion -G --no-recursive -l /Users/icaza/work/sbndcode/build_d18.x86_64/sbndcode/lib/libsbndcode_CRT_CRTProducts_dict -x /Users/icaza/work/sbndcode/srcs/sbndcode/sbndcode/CRT/CRTProducts/classes_def.xml -t sbndcode_CRT_CRTProducts_dict_checked dyld: Library not loaded: /Users/macdev/workspace/canvas-products/vdevelop-py3/OSX-10.14/c2-debug/build/python/v3_7_2/Darwin64bit+18/lib/libpython3.7m.dylib Referenced from: /cvmfs/larsoft.opensciencegrid.org/products/python/v3_7_2/Darwin64bit+18/bin/python Reason: image not found Child aborted [463/494] Building CXX object sbndcode/sbndcode/CosmicId/Ana/CMakeFiles/sbndcode_CosmicId_Ana_CosmicIdAna_module.dir/CosmicIdAna_module.cc.o ninja: build stopped: subcommand failed.
I suspect it has something to do with the compilation of class_def.xml
and classes.h
, calling some python function perhaps?
The only other issue that I could find similar to this is #13535 where it recommends using a guard for OSX builds.
History
#1 Updated by Kyle Knoepfel about 1 year ago
- Status changed from New to Feedback
Do you have SIP enabled? You can check by typing csrutil status
.
#2 Updated by Iker de Icaza Astiz about 1 year ago
Enabled:
$ csrutil status System Integrity Protection status: enabled.
I hadn't realised this was needed, how come? I thought I was just compiling under my home directory.
#3 Updated by Lynn Garren about 1 year ago
Our products require that SIP be disabled. See https://cdcvs.fnal.gov/redmine/projects/larsoft/wiki/_Supported_platforms_#Best-effort
SIP is discussed in detail here, along with instructions for disabling SIP.
https://www.minicreo.com/omni-recover/how-to-disable-mac-sip-on-mojave.html
#4 Updated by Iker de Icaza Astiz about 1 year ago
You're right, disabling SIP does solve the issue.
Thanks for your help!
#5 Updated by Lynn Garren about 1 year ago
- % Done changed from 0 to 100
- Status changed from Feedback to Closed
#6 Updated by Kyle Knoepfel about 1 year ago
- Tracker changed from Bug to Support