Skip to content

Fix tbb-compat linking after rename #236

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

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

andrjohns
Copy link
Contributor

Unsure if it's because of clang or windows arm64, but rstan models compiled against the current github RcppParallel fail at runtime with an error that tbb-compat.dll is not found - even though the DLL has been renamed to tbb.dll before being linked.

I believe this is because R CMD SHLIB generates a .def file when linking with the name of the DLL. Explicitly setting the output name to tbb.dll when calling R CMD SHLIB resolves the later runtime errors for me

@andrjohns
Copy link
Contributor Author

It doesn't happen with the GCC-based x86_64 toolchain, but it does with the LLVM-based aarch64 toolchain - odd!

@kevinushey kevinushey merged commit aa28b17 into RcppCore:master Jun 11, 2025
3 checks passed
@kevinushey
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants