Closed Jeffchingg closed 1 year ago
Hi, I am not a Mac user, but a Windows user. Whatever I install, I never update while installing. Either I install a package, either I update installed packages. So, you should try without updating, ie option 3: None. Best.
Maybe a couple other things to say:
CATALYST
in the standard way, as it suggests here with the command BiocManager::install("CATALYST")
(assumes BiocManager
is installed)Thanks Mark and Sam for the comments. The problem to answer "no" for those questions will cause the installation exit automatically. Eventually I solved the problem. I used Homedrew to install gcc which made this compilation issue. Everything is working now
Hi,
I am new to R. During the installing Catalyst, there are error message as below. Can you let me know what I should do? I am using Mac Ventura 13.2.
Thanks a lot.
Jeff
1: All
2: CRAN packages only
3: None
4: scuttle (1.9.4 -> 1.10.3) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 2 densvis (NA -> 1.10.3) [CRAN] scuttle (1.9.4 -> 1.10.3) [CRAN] scater (NA -> 1.28.0) [CRAN] Installing 3 packages: densvis, scuttle, scater
There is a binary version available but the source version is later: binary source needs_compilation scuttle 1.9.4 1.10.3 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) y Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘densvis’ Do you want to attempt to install these from sources? (Yes/no/cancel) y installing the source packages ‘densvis’, ‘scuttle’, ‘scater’
trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/densvis_1.10.3.tar.gz' Content type 'application/x-gzip' length 1731202 bytes (1.7 MB)
downloaded 1.7 MB
trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/scuttle_1.10.3.tar.gz' Content type 'application/x-gzip' length 1029617 bytes (1005 KB)
downloaded 1005 KB
trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/scater_1.28.0.tar.gz' Content type 'application/x-gzip' length 4089325 bytes (3.9 MB)
downloaded 3.9 MB
~~~~ densne.cpp:201:33: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N N; i++) P[i] /= sum_P; ^~~~~ densne.cpp:154:35: note: initialize the variable 'row_P' to silence this warning double P; unsigned int row_P; unsigned int col_P; double val_P; double val_D; ^ = nullptr densne.cpp:181:24: warning: variable 'col_P' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for(int i = 0; i < N N; i++) P[i] /= sum_P; ^~~~~ densne.cpp:201:40: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N N; i++) P[i] /= sum_P; ^~~~~ densne.cpp:154:56: note: initialize the variable 'col_P' to silence this warning double P; unsigned int row_P; unsigned int col_P; double val_P; double val_D; ^ = nullptr densne.cpp:181:24: warning: variable 'val_P' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for(int i = 0; i < N N; i++) P[i] /= sum_P; ^~~~~ densne.cpp:201:47: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N N; i++) P[i] /= sum_P; ^~~~~ densne.cpp:154:71: note: initialize the variable 'val_P' to silence this warning double P; unsigned int row_P; unsigned int col_P; double val_P; double val_D; ^ = nullptr densne.cpp:181:24: warning: variable 'val_D' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for(int i = 0; i < N N; i++) P[i] /= sum_P; ^~~~~ densne.cpp:201:54: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N N; i++) P[i] /= sum_P; ^~~~~ densne.cpp:154:86: note: initialize the variable 'val_D' to silence this warning double P; unsigned int row_P; unsigned int col_P; double val_P; double val_D; ^ = nullptr 4 warnings generated. clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c densvis.cpp -o densvis.o clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c sptree.cpp -o sptree.o clang++ -arch arm64 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o densvis.so RcppExports.o densne.o densvis.o sptree.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0 -L/opt/gfortran/lib -lgfortran -lemutls_w -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation ld: warning: directory not found for option '-L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0' ld: warning: directory not found for option '-L/opt/gfortran/lib' ld: library not found for -lgfortran clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [densvis.so] Error 1 ERROR: compilation failed for package ‘densvis’The downloaded source packages are in ‘/private/var/folders/4g/k4jqbl916jv_ml53s141yfswjy8k6x/T/RtmpJcSr5K/downloaded_packages’ ── R CMD build ────────────────────────────────────────────────────────────────────────────────────── ✔ checking for file ‘/private/var/folders/4g/k4jqbl916jv_ml53s141yfswjy8k6x/T/RtmpJcSr5K/remotes1983621b7165/HelenaLC-CATALYST-f3e294e/DESCRIPTION’ ... ─ preparing ‘CATALYST’: ✔ checking DESCRIPTION meta-information ... ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building ‘CATALYST_1.24.0.tar.gz’ Warning: invalid uid value replaced by that for user 'nobody' Warning: invalid gid value replaced by that for user 'nobody'
ERROR: dependency ‘scater’ is not available for package ‘CATALYST’