Open barracuda156 opened 1 year ago
Also, older macOS need -D _GLIBCXX_USE_CXX11_ABI=0
flag, otherwise build fails:
Error: package or namespace load failed for ‘RoBMA’:
.onLoad failed in loadNamespace() for 'RoBMA', details:
call: dyn.load(file)
error: unable to load shared object '/opt/local/var/macports/build/_opt_PPCRosettaPorts_R_R-RoBMA/R-RoBMA/work/.tmp/Rtmpr3BmWz/Rinst1335b5b4138e1/00LOCK-RoBMA/00new/RoBMA/libs/RoBMA.so':
dlopen(/opt/local/var/macports/build/_opt_PPCRosettaPorts_R_R-RoBMA/R-RoBMA/work/.tmp/Rtmpr3BmWz/Rinst1335b5b4138e1/00LOCK-RoBMA/00new/RoBMA/libs/RoBMA.so, 6): Symbol not found: __ZNK4jags12Distribution5aliasB5cxx11Ev
Referenced from: /opt/local/var/macports/build/_opt_PPCRosettaPorts_R_R-RoBMA/R-RoBMA/work/.tmp/Rtmpr3BmWz/Rinst1335b5b4138e1/00LOCK-RoBMA/00new/RoBMA/libs/RoBMA.so
Expected in: dynamic lookup
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/opt/local/var/macports/build/_opt_PPCRosettaPorts_R_R-RoBMA/R-RoBMA/work/.tmp/Rtmpr3BmWz/Rinst1335b5b4138e1/RoBMA’
-----------------------------------
ERROR: package installation failed
Command failed: cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_R_R-RoBMA/R-RoBMA/work/RoBMA-2.3.2" && /opt/local/bin/R CMD build . --no-manual --no-build-vignettes
Exit code: 1
I am not really sure which version needs it the last, but some our ports in Macports use it for Darwin < 16.
Hi, sorry for completely forgetting about this. My colleagues and I looked into it when fixing the other issue but we are completely clueless about the cause of this problem.
This is a pretty typical issue, reason being: https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html Not-bleeding-edge OS often need this to be defined to fix building.
I am not really sure if there is a simple way to handle this automatically in R. I know that CMake in Macports takes care of this well enough, so that manual fixing is pretty much never required, while for R packages in Macports I have to add it to fix them. (Does not mean there is no neat solution, I am just unaware of it at the moment.)
This is outright wrong – all these should be seen as supported. Compilation is still successful though: