Commit a2f9ff5
committed
drop StanHeaders:::LdFlags() TBB linking, incompatible with RcppParallel 6.0.0 on Windows
With rstan now loading correctly (previous commit), Windows CI got
further and hit a second, distinct failure: our own compiled
EpiStrainDynamics.dll failed to load with the identical "LoadLibrary
failure" signature, this time for tbb.dll.
StanHeaders:::LdFlags() unconditionally returns
"-L<TBB_LIB> -Wl,-rpath,<TBB_LIB> -ltbb -ltbbmalloc", assuming
RcppParallel ships a dynamic tbb.dll/tbbmalloc.dll. RcppParallel 6.0.0
(installed on this runner) links TBB statically on Windows instead,
and -Wl,-rpath is a no-op on Windows in any case (it's an ELF/Unix
linker mechanism).
rstan's own from-source Windows build, using the same RcppParallel
6.0.0, links only "-lRcppParallel" with no separate TBB flags and
loads fine -- confirming RcppParallel::RcppParallelLibs() alone
already provides whatever the installed RcppParallel version actually
needs. Drop the StanHeaders:::LdFlags() call from PKG_LIBS in
Makevars.win to match.1 parent 5fd7d06 commit a2f9ff5
2 files changed
Lines changed: 36 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
7 | 21 | | |
8 | 22 | | |
9 | 23 | | |
| |||
0 commit comments