-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.16.0 testunit fails #6559
Comments
Thanks for the report. Could you check whether the error still exists with the dev version? Updating to dev can be done with And could you also post the output of native_ano = iconv("a\U00F1o", "UTF-8", "")
str(native_ano)
.Internal(inspect(native_ano)) |
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. |
|
I have added R.utils to test depends but error is same. BTW, I'm maintaining FreeBSD port: https://www.freshports.org/devel/R-cran-data.table/ |
Ok, I think I found the problem. OpenMP detection not working as in macports: And only now I did found it on my build logs:
and included in above unittest log: I will try to enable OpenMP and check tests. |
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: --- configure.orig 2024-10-08 08:42:43 UTC
+++ configure
@@ -144,7 +144,17 @@ detect_openmp () {
fi # uname=Darwin
- # No support for OpenMP available
+
+ if [ "$(uname)" = "FreeBSD" ]; then
+
+ export PKG_CFLAGS="${PKG_CFLAGS}"
+ export PKG_LIBS="${PKG_LIBS}"
+ export R_OPENMP_ENABLED=1
+ return
+
+ fi # uname=FreeBSD
+
+ # No support for OpenMP available
export R_OPENMP_ENABLED=0
} But it needs better testing. Thanks all for help. |
….16.0" OpenMP detection broken. See also: Rdatatable/data.table#6559 Rdatatable/data.table@096b20f This reverts commit 5f823f1.
Is there a chance that your unit test environment is running with For a quick workaround, skip the test if Edit: looks like one of the macOS problems is the same (cf. |
Re-opening since there is nor relation with OpenMP support. |
I've managed to get 1.16.2 configure to properly detect openmp: --- configure.orig 2024-10-11 07:37:20 UTC
+++ configure
@@ -84,7 +84,7 @@ detect_openmp () {
detect_openmp () {
- if [ "$(uname)" = "Linux" ]; then
+ if [ "$(uname)" = "Linux" ] || [ "$(uname)" = "FreeBSD" ]; then
printf "%s" "* checking if R installation supports OpenMP without any extra hints... "
if "${R_HOME}/bin/R" CMD SHLIB test-omp.c >> config.log 2>&1; then
testunit gives similar results:
Can't find a way to skip this test.
Thanks |
This is a bug, should be fixed by #6567. Does it help if you apply it locally? |
I can confirm that it fixes test. |
hi @nunotexbsd thanks for your detailed analysis. 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? |
related to other openmp pr #6497 |
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 |
testunit from previous version 1.15.4 is OK.
Any clues?
Thanks
The text was updated successfully, but these errors were encountered: