New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rstanarm build error: Library not loaded: @rpath/libtbb.dylib #581
Comments
Are you also setting the |
@WardBrian I have tried to do that after I got the failure, but to no avail. It is quite possible though, that I made some mistake in the relevant chunk of code. I will look into that. |
On a side-note,
|
@WardBrian This fixed the build:
|
rstanarm TBB linking will be fixed with the merge of #574 |
@andrjohns Sounds good. I hope the new arrangement will remain compatible with my Macports solution (the PR you have probably seen). P. S. BTW, any plans of moving to the new |
I am making an implementation for R packages in Macports now, and I would like to have
rstanarm
among supported packages. This is still WIP, however what mostly remains to be done is fine-tuning for Macports environment. That is, pretty much everything already builds fine – both locally on my machines and on Macports build bots.I get an error, however, with
rstanarm
: for some reason, it cannot findlibtbb.dylib
, even though it is there (see log below).No external version of
TBB
is installed, so the failure is not caused by duplicate dylibs. Existinglibtbb.dylib
is sitting inRcppParallel
package, and linker flag is pointing to the correct location:-L/opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/library/RcppParallel/lib/ -ltbb -ltbbmalloc
. Yet when testing package loading, it fails to find it.P. S. It is probably desirable to dump an old
tbb
inRcppParallel
altogether and use an externaloneTBB
(given that we have fixed it forppc32
, so all macOS are covered), but I am not sure if that gonna work smoothly, since ABI has changed quite a bit.@andrjohns @WardBrian Any ideas here?
The text was updated successfully, but these errors were encountered: