[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help for test of pkgload



pkgbuild gives this error

> Error: Could not find tools necessary to compile a package

When the R environment is set up in such a way that `R CMD SHLIB
foo.c` cannot create a basic C executable.

Possible culprits might be an invalid compiler location defined in the
site or user makevars file.
(https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Customizing-package-compilation)

pkgbuild and pkgload have not had a new release in some time and have
been relatively stable overall in the past few years, it is surprising
to me that if previous versions were working in your test environment
the new version would have changed behavior.

Sorry I cannot pinpoint the exact cause from this report, let me know
if there is anything else I could do to help,

Jim

On Tue, Aug 31, 2021 at 11:14 AM Andreas Tille <andreas@an3as.eu> wrote:
>
> Hi Jim,
>
> I've updated the Debian package for pkgload.  When running the test suite
> I get:
>
>
> == Failed tests ================================================================
> -- Failure (test-dll.r:17:3): unload() unloads DLLs from packages loaded with library() --
> require(testDllLoad) is not TRUE
> `actual`:   FALSE
> `expected`: TRUE
> -- Error (test-dll.r:21:3): unload() unloads DLLs from packages loaded with library() --
> Error: could not find function "nulltest"
> Backtrace:
>     x
>  1. \-testthat::expect_true(is.null(nulltest())) test-dll.r:21:2
>  2.   \-testthat::quasi_label(enquo(object), label, arg = "object")
>  3.     \-rlang::eval_bare(expr, quo_get_env(quo))
> -- Error (test-dll.r:44:3): load_all() compiles and loads DLLs -----------------
> Error: Could not find tools necessary to compile a package
> Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> Backtrace:
>     x
>  1. \-pkgload::load_all("testDllLoad", reset = TRUE, quiet = TRUE) test-dll.r:44:2
>  2.   \-pkgbuild::compile_dll(path, quiet = quiet)
>  3.     \-pkgbuild::check_build_tools(quiet = TRUE)
> -- Error (test-dll.r:82:3): Specific functions from DLLs listed in NAMESPACE can be called --
> Error: Could not find tools necessary to compile a package
> Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> Backtrace:
>     x
>  1. \-pkgload::load_all("testDllLoad", quiet = TRUE) test-dll.r:82:2
>  2.   \-pkgbuild::compile_dll(path, quiet = quiet)
>  3.     \-pkgbuild::check_build_tools(quiet = TRUE)
> -- Error (test-dll.r:108:3): load_all() can compile and load DLLs linked to Rcpp --
> Error: Could not find tools necessary to compile a package
> Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> Backtrace:
>     x
>  1. \-pkgload::load_all("testDllRcpp", reset = TRUE, quiet = TRUE) test-dll.r:108:2
>  2.   \-pkgbuild::compile_dll(path, quiet = quiet)
>  3.     \-pkgbuild::check_build_tools(quiet = TRUE)
> [ FAIL 5 | WARN 2 | SKIP 0 | PASS 301 ]
> Error: Test failures
> Execution halted
>
>
> There might be a chance that this is caused by the fact that not all
> required packages are at the latest version (we are working on this).
>
> Any idea how to fix these test failures?
>
> Kind regards
>
>    Andreas.
>
> --
> http://fam-tille.de


Reply to: