Closed Siddharth-Gaywala closed 5 months ago
Can't say I've ever seen that error before. What version of GCC is being used?
Just spun up a container to reproduce-it appears that this is something that was a breaking change in GCC 9. I get the same error running it directly on a rocky linux 8 container, but after installing gcc-toolset-9 and running it it works.
See if you have any HPC modules that load a later version of gcc.
[root@c1e576a919e9 /]# scl enable gcc-toolset-9 bash
[root@c1e576a919e9 /]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/gcc-toolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/gcc-toolset-9/root/usr --mandir=/opt/rh/gcc-toolset-9/root/usr/share/man --infodir=/opt/rh/gcc-toolset-9/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-9.2.1-20191120/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 9.2.1 20191120 (Red Hat 9.2.1-2) (GCC)
[root@c1e576a919e9 /]# R
R version 4.4.0 (2024-04-24) -- "Puppy Cup"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Previously saved workspace restored]
> devtools::install_github("welch-lab/RcppPlanc")
Downloading GitHub repo welch-lab/RcppPlanc@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────
✔ checking for file '/tmp/Rtmp0dkDRs/remotesaf415bf123fd/welch-lab-RcppPlanc-94e1fee/DESCRIPTION' ...
─ preparing 'RcppPlanc':
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ running 'cleanup'
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'RcppPlanc_1.0.0.tar.gz'
Installing package into '/usr/lib64/R/library'
(as 'lib' is unspecified)
* installing *source* package 'RcppPlanc' ...
** using staged installation
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
[snip]
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'RcppPlanc'
finding HTML links ... done
H5Mat html
H5SpMat html
bppnnls html
data html
dim-H5SpMat html
format.H5Mat html
format.H5SpMat html
inmf html
nmf html
onlineINMF html
print.H5Mat html
print.H5SpMat html
symNMF html
uinmf html
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RcppPlanc)
Thank you! Loading a newer version of GCC fixed the issue
Hi! I was having trouble downloading the package. I run
devtools::install_github("welch-lab/RcppPlanc")
but get the error ‘sparsity’ is predetermined ‘shared’ for ‘shared’:Session Info:
This is on a Linux HPC cluster. Do you have any ideas on what could be causing this error or any advice on how to fix this?