Repository navigation
Closed
Labels
Description
testunit from previous version 1.15.4 is OK.
> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: amd64-portbld-freebsd15.0
Running under: FreeBSD 15amd64-main 15.0-CURRENT FreeBSD 15.0-CURRENT 1500023 amd64
Matrix products: default
LAPACK: /usr/local/lib/R/lib/libRlapack.so; LAPACK version 3.12.0
locale:
[1] C.UTF-8/C.UTF-8/C.UTF-8/C/C.UTF-8/C.UTF-8
time zone: Europe/Lisbon
tzcode source: system (FreeBSD)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.1
<snip>
* checking examples ... OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
Running 'S4.R'
Running 'autoprint.R'
Comparing 'autoprint.Rout' to 'autoprint.Rout.save' ... OK
Running 'froll.R'
Running 'knitr.R'
Comparing 'knitr.Rout' to 'knitr.Rout.save' ... OK
Running 'main.R'
ERROR
Running the tests in 'tests/main.R' failed.
Last 13 lines of output:
0.000s ( 24%) Rereading 1 columns due to out-of-sample type exceptions
0.000s Total
Column 1 <<A>> bumped from 'int32' to 'int64' due to <<123456789123456>> on row 114
A B
"integer64" "integer"
Test 2266 produced 1 errors but expected 0
Expected:
Observed: no documentation of type 'a' and topic 'o' (or error in processing help)
Error in eval(exprs[i], envir) : object 'tmp2' not found
Mon Oct 7 12:28:45 2024 endian==little, sizeof(long double)==16, longdouble.digits==64, sizeof(pointer)==8, TZ==unset, Sys.timezone()=='Europe/Lisbon', Sys.getlocale()=='C', l10n_info()=='MBCS=FALSE; UTF-8=FALSE; Latin-1=FALSE; codeset=US-ASCII', getDTthreads()=='This installation of data.table has not been compiled with OpenMP support.; omp_get_num_procs()==1; R_DATATABLE_NUM_PROCS_PERCENT==unset (default 50); R_DATATABLE_NUM_THREADS==unset; R_DATATABLE_THROTTLE==unset (default 1024); omp_get_thread_limit()==1; omp_get_max_threads()==1; OMP_THREAD_LIMIT==unset; OMP_NUM_THREADS==unset; RestoreAfterFork==true; data.table is using 1 threads with throttle==1024. See ?setDTthreads.', .libPaths()=='/wrkdirs/usr/ports/devel/R-cran-data.table/work/data.table.Rcheck','/usr/local/lib/R/library', zlibVersion()==1.3.1 ZLIB_VERSION==1.3.1
Error in test.data.table() :
Failed in 20.2s elapsed (19.4s cpu) after test 2273.3 before the next test() call in /wrkdirs/usr/ports/devel/R-cran-data.table/work/data.table.Rcheck/data.table/tests/tests.Rraw.bz2
Calls: test.data.table -> stopf -> raise_condition -> signal
Execution halted
* checking package vignettes ... NOTE
Package has 'vignettes' subdirectory but apparently no vignettes.
Perhaps the 'VignetteBuilder' information is missing from the
DESCRIPTION file?
* DONE
Status: 1 ERROR, 1 WARNING, 3 NOTEs
See
'/wrkdirs/usr/ports/devel/R-cran-data.table/work/data.table.Rcheck/00check.log'
for details.
*** Error code 1
Any clues?
Thanks
Activity
ben-schwen commentedon Oct 7, 2024
Thanks for the report. Could you check whether the error still exists with the dev version? Updating to dev can be done with
data.table::update_dev_pkg()And could you also post the output of
MichaelChirico commentedon Oct 7, 2024
Based on this:
I guess it's b73d4e9 (i.e., fixed in dev)
You might be able to fix it without updating to dev {data.table} by installing {R.utils} and re-trying.
nunotexbsd commentedon Oct 7, 2024
@ben-schwen
nunotexbsd commentedon Oct 7, 2024
@MichaelChirico
I have added R.utils to test depends but error is same.
I will try devel and put results here.
BTW, I'm maintaining FreeBSD port: https://www.freshports.org/devel/R-cran-data.table/
nunotexbsd commentedon Oct 8, 2024
Ok, I think I found the problem. OpenMP detection not working as in macports:
https://github.com/macports/macports-ports/blob/99af437d1f41eb15874f926020fdcf39356a7ab2/R/R-data.table/Portfile#L23
And only now I did found it on my build logs:
and included in above unittest log:
getDTthreads()=='This installation of data.table has not been compiled with OpenMP support.I will try to enable OpenMP and check tests.
nunotexbsd commentedon Oct 8, 2024
I will close this PR as problem is deeper that I thought. I will take care of OpenMP support first and the check further tests.
A quick patch shows that I can build package with OpenMP:
But it needs better testing.
Thanks all for help.
devel/R-cran-data.table: Revert "devel/R-cran-data.table: Update to 1…
aitap commentedon Oct 8, 2024
Is there a chance that your unit test environment is running with
LC_ALL=Cinstead ofLC_ALL=C.UTF-8? It looks like on FreeBSD withLC_ALL=Cin action,iconv("a\U00F1o", "UTF-8", "")returns"a?o"(which gets parsed as a help request) instead ofNA.iconv()just silently succeeds and returns1("one character converted in a nonreversible way").For a quick workaround, skip the test if
identical(native_ano, 'a?o'). Not sure if R could handle this quirk of FreeBSD'siconv()implementation, but they perform incredible gymnastics to accomodate macOSiconv().Edit: looks like one of the macOS problems is the same (cf.
R_MACOS_LIBICONV_UNDO_TRANSLITERATION). May be worth raising on R-devel to make sure this will be enabled on FreeBSD.nunotexbsd commentedon Oct 9, 2024
Re-opening since there is nor relation with OpenMP support.
nunotexbsd commentedon Oct 11, 2024
I've managed to get 1.16.2 configure to properly detect openmp:
testunit gives similar results:
Can't find a way to skip this test.
Any hints?
Thanks
aitap commentedon Oct 11, 2024
This is a bug, should be fixed by #6567. Does it help if you apply it locally?
nunotexbsd commentedon Oct 11, 2024
I can confirm that it fixes test.
Thanks
tdhock commentedon Oct 17, 2024
hi @nunotexbsd thanks for your detailed analysis.
if I understand correctly, there were two issues on freebsd.
the original was about iconv, which was fixed by #6567 so I wonder if this issue can be closed now?
the other was about openmp, for which you proposed a fix #6559 (comment) if that is right then can you please submit a PR?
tdhock commentedon Oct 17, 2024
related to other openmp pr #6497
nunotexbsd commentedon Oct 17, 2024
Hello @tdhock
You can close #6567 as it fixes problem.
Related to #6559 (comment), I will use a local patch for the time being to be sure that it is the better solution for configure phase and then I will open a PR with a patch.
Thanks
devel/R-cran-data.table: Revert "devel/R-cran-data.table: Update to 1…
devel/R-cran-data.table: Revert "devel/R-cran-data.table: Update to 1…