Skip to content

RcppParallel 6.1.1: tbbLibraryPath() broken on Windows - looks in build-time RTools not runtime #270

Description

@andrjohns

The use of RcppParallel::tbbLibraryPath("tbb") on Windows returns nothing when called from the CRAN pre-built binary, and tbbRoot() returns a filepath on a D:/ drive:

utils::packageVersion("RcppParallel")
#> [1] '6.1.1'
RcppParallel::tbbLibraryPath("tbb")
RcppParallel:::tbbRoot()
#> [1] "D:/rtools45/x86_64-w64-mingw32.static.posix/lib"

All works as expected when RcppParallel is built from source:

install.packages("RcppParallel", type = "source")
#> Installing package into 'C:/Users/andrew/AppData/Local/R/win-library/4.6'
#> (as 'lib' is unspecified)
RcppParallel::tbbLibraryPath("tbb")
#> [1] "C:/rtools45/x86_64-w64-mingw32.static.posix/lib/libtbb12.a"
RcppParallel:::tbbRoot()
#> [1] "C:/rtools45/x86_64-w64-mingw32.static.posix/lib"

This appears to be due to RcppParallel looking in the dir specified by the internal TBB_LIB variable set by the configure run at package build time, rather than the location at runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions