I am unable to install Rgraphviz_2.24.0 in R 3.5.1 compiled with OpenBLAS. The same package installs fine in R compiled with internal (R) BLAS, so I suspect that the use of external BLAS is to blame here. Any suggestions on how to make the installation succeed? Thanks!
The compilation error is
Error: package or namespace load failed for ‘Rgraphviz’:
.onLoad failed in loadNamespace() for 'Rgraphviz', details:
call: value[[3L]](cond)
error: unable to load shared object '/usr/local/lib64/R-3.5.1-OpenBLAS/library/Rgraphviz/libs/Rgraphviz.so':
/usr/local/lib64/R-3.5.1-OpenBLAS/library/Rgraphviz/libs/Rgraphviz.so: undefined symbol: _ZGVbN2vv___pow_finite
sessionInfo():
R version 3.5.1 Patched (2018-08-27 r75203)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Fedora 28 (Twenty Eight)
Matrix products: default
BLAS/LAPACK: /usr/lib64/libopenblasp-r0.3.3.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] BiocManager_1.30.2 compiler_3.5.1 tools_3.5.1
I am having same issue here on Gentoo Linux with gcc-8.2.0. Although I do have system-wide grapviz-2.40.1-r1 installed through R-3.5.1 version 2.26.0 is being picked (while logs state 2.28.0).
See https://gitlab.com/graphviz/graphviz/issues/1412
By switching to gcc-7.3.0 I can at least work around the issue.
Peter,
I took a more careful look at your report. Are the two different R installations (with and without OpenBLAS) compiled with different compilers? I know that Rgraphviz fails using GCC 8 with -O3 optimization flags, with this particular error (missing `***__pow_finite`). You don't mention in your post what C compiler you're using and whether the two R installations have been compiled with different compilers. Nevertheless, I will try to modify the configure script to address this issue in GCC 8.
Best,
Kasper
Apologies for this late reply, I missed your question. The compiler was the same, gcc 8 (currently at version 8.2.1 but 3 months ago the version may have been a bit lower). It is likely that one had -O2 and the other -O3 because, upon re-installation of plain R with -O3 compiler setting (which propagates to package installation), I could not install Rgraphviz in plain R either; reverting to -O2 solved the problem again.