Open
Description
I'm using the following R version on Ubuntu 20.02:
R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
I installed renv:
> renv::init( bare = TRUE)
renv: Project Environments for R
Welcome to renv! It looks like this is your first time using renv.
This is a one-time message, briefly describing some of renv's functionality.
renv will write to files within the active project folder, including:
- A folder 'renv' in the project directory, and
- A lockfile called 'renv.lock' in the project directory.
In particular, projects using renv will normally use a private, per-project
R library, in which new packages will be installed. This project library is
isolated from other R libraries on your system.
In addition, renv will update files within your project directory, including:
- .gitignore
- .Rbuildignore
- .Rprofile
Finally, renv maintains a local cache of data on the filesystem, located at:
- "~/.cache/R/renv"
This path can be customized: please see the documentation in `?renv::paths`.
Please read the introduction vignette with `vignette("renv")` for more information.
You can browse the package documentation online at https://rstudio.github.io/renv/.
Do you want to proceed? [y/N]: y
* "~/.cache/R/renv" has been created.
* Project '~/gcam' loaded. [renv 0.17.3]
* The project is currently out-of-sync.
* Use `renv::status()` for more details.
* renv activated -- please restart the R session.
When I try to run renv::restore()
I get the following error:
> renv::restore()
The following package(s) will be updated:
# CRAN ===============================
- Matrix [1.5-4.1 -> 1.2-18]
- lattice [0.21-8 -> 0.20-45]
- BH [* -> 1.72.0-3]
[...]
Installing Matrix [1.2-18] ...
FAILED
Error installing package 'Matrix':
==================================
* installing to library ‘/tmp/RtmpZPdCcC/renv-staging-77407636e62c’
* installing *source* package ‘Matrix’ ...
** package ‘Matrix’ successfully unpacked and MD5 sums checked
** using staged installation
Cleaning up after installing the Matrix package
( cd Lib ; make clean )
make[1]: Entering directory '/tmp/RtmpZPdCcC/renv-package-774023612b87/Matrix/src/CHOLMOD/Lib'
make[1]: Leaving directory '/tmp/RtmpZPdCcC/renv-package-774023612b87/Matrix/src/CHOLMOD/Lib'
( cd Source ; make clean )
make[1]: Entering directory '/tmp/RtmpZPdCcC/renv-package-774023612b87/Matrix/src/COLAMD/Source'
make[1]: Leaving directory '/tmp/RtmpZPdCcC/renv-package-774023612b87/Matrix/src/COLAMD/Source'
( cd Source ; make clean )
make[1]: Entering directory '/tmp/RtmpZPdCcC/renv-package-774023612b87/Matrix/src/AMD/Source'
make[1]: Leaving directory '/tmp/RtmpZPdCcC/renv-package-774023612b87/Matrix/src/AMD/Source'
** libs
using C compiler: ‘gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0’
gcc -I"/usr/share/R/include" -DNDEBUG -DNTIMER -I./SuiteSparse_config -fpic -g -O2 -fdebug-prefix-map=/build/r-base-rAnobU/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c CHMfactor.c -o CHMfactor.o
gcc -I"/usr/share/R/include" -DNDEBUG -DNTIMER -I./SuiteSparse_config -fpic -g -O2 -fdebug-prefix-map=/build/r-base-rAnobU/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c Csparse.c -o Csparse.o
gcc -I"/usr/share/R/include" -DNDEBUG -DNTIMER -I./SuiteSparse_config -fpic -g -O2 -fdebug-prefix-map=/build/r-base-rAnobU/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c TMatrix_as.c -o TMatrix_as.o
gcc -I"/usr/share/R/include" -DNDEBUG -DNTIMER -I./SuiteSparse_config -fpic -g -O2 -fdebug-prefix-map=/build/r-base-rAnobU/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c Tsparse.c -o Tsparse.o
gcc -I"/usr/share/R/include" -DNDEBUG -DNTIMER -I./SuiteSparse_config -fpic -g -O2 -fdebug-prefix-map=/build/r-base-rAnobU/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c init.c -o init.o
In file included from /usr/share/R/include/R.h:78,
from Mutils.h:12,
from init.c:1:
dgeMatrix.h:43:15: error: conflicting types for ‘dgesdd_’
43 | void F77_NAME(dgesdd)(const char *jobz,
| ^~~~~~
/usr/share/R/include/R_ext/RS.h:77:22: note: in definition of macro ‘F77_CALL’
77 | # define F77_CALL(x) x ## _
| ^
dgeMatrix.h:43:6: note: in expansion of macro ‘F77_NAME’
43 | void F77_NAME(dgesdd)(const char *jobz,
| ^~~~~~~~
/usr/share/R/include/R_ext/Lapack.h:2404:10: note: previous declaration of ‘dgesdd_’ was here
2404 | F77_NAME(dgesdd)(const char* jobz,
| ^~~~~~
/usr/share/R/include/R_ext/RS.h:77:22: note: in definition of macro ‘F77_CALL’
77 | # define F77_CALL(x) x ## _
| ^
/usr/share/R/include/R_ext/Lapack.h:2404:1: note: in expansion of macro ‘F77_NAME’
2404 | F77_NAME(dgesdd)(const char* jobz,
| ^~~~~~~~
make: *** [/usr/lib/R/etc/Makeconf:191: init.o] Error 1
ERROR: compilation failed for package ‘Matrix’
* removing ‘/tmp/RtmpZPdCcC/renv-staging-77407636e62c/Matrix’
Error: install of package 'Matrix' failed
Traceback (most recent calls last):
13: renv::restore()
12: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
11: renv_install(records)
10: renv_install_staged(records)
9: renv_install_default(records)
8: handler(package, renv_install_impl(record))
7: renv_install_impl(record)
6: withCallingHandlers(renv_install_package_local(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
5: renv_install_package_local(record)
4: renv_install_package_local_impl(package, path)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install")
1: stop(error)
I've tried reinstall gfortran, per some other issues I found here, but that doesn't help.
Metadata
Metadata
Assignees
Labels
No labels