[R-pkg-devel] long user + system time with CRAN special checks clang 19

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Fri Dec 20 09:30:04 CET 2024


В Fri, 20 Dec 2024 08:00:08 +0000
Mauricio Vargas Sepulveda <m.sepulveda using mail.utoronto.ca> пишет:

>    https://win-builder.r-project.org/incoming_pretest/cpp11tesseract_5.3.5_20241220_042113/specialChecks/clang19/outputs.txt
> 
>    checking cpp11tesseract_5.3.5.tar.gz ...
> 
>    Timings:
>                     user system elapsed
>    cpp11tesseract 18.624  1.701  22.045

It's not about the timings. 22 seconds for a full package installation
is quite tame compared to some C++ behemoths we have on CRAN (how about
3700 seconds?). The problem is that the resulting shared library fails
to load afterwards:

> ** testing if installed package can be loaded from temporary location
> Error: package or namespace load failed for ‘cpp11tesseract’ in
> dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object
> '/home/hornik/tmp/CRAN_special_clang19/cpp11tesseract.Rcheck/00LOCK-cpp11tesseract/00new/cpp11tesseract/libs/cpp11tesseract.so':
> /home/hornik/tmp/CRAN_special_clang19/cpp11tesseract.Rcheck/00LOCK-cpp11tesseract/00new/cpp11tesseract/libs/cpp11tesseract.so:
> undefined symbol:
> _ZNK9tesseract11TessBaseAPI19GetVariableAsStringEPKcPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE

<https://win-builder.r-project.org/incoming_pretest/cpp11tesseract_5.3.5_20241220_042113/specialChecks/clang19/package/00install.out>

Unfortunately, it's still a puzzle why the function
tesseract::TessBaseAPI::GetVariableAsString(char const*, std::string*)
const fails to load from libtesseract.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list