immunogenomics / harmony

Fast, sensitive and accurate integration of single-cell data with Harmony
https://portals.broadinstitute.org/harmony/
Other
525 stars 100 forks source link

install issues *** stack smashing detected *** #163

Closed alikhuseynov closed 2 years ago

alikhuseynov commented 2 years ago

Hi there, thanks for developing this nice package. I'm trying to install it on conda env under R 4.2.1 (tried both via devtools() and install.packages() ) below is the error:

✔  checking for file ‘/tmp/RtmpvxuIyB/remotes4bde42326203/immunogenomics-harmony-6866e01/DESCRIPTION’ (410ms)
─  preparing ‘harmony’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘harmony_0.1.0.tar.gz’

* installing *source* package ‘harmony’ ...
** using staged installation
** libs

/opt/rh/devtoolset-7/root/bin/g++ -std=gnu++11 -I"/envs/spatial_v3/lib/R/include" -DNDEBUG  -I'/envs/spatial_v3/lib/R/library/Rcpp/include' -I'/envs/spatial_v3/lib/R/library/RcppArmadillo/include' -I'/envs/spatial_v3/lib/R/library/RcppProgress/include' -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /envs/spatial_v3/include -I/envs/spatial_v3/include -Wl,-rpath-link,/envs/spatial_v3/lib   -fpic  -fvisibility-inlines-hidden  -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /envs/spatial_v3/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1660164760553/work=/usr/local/src/conda/r-base-4.1.3 -fdebug-prefix-map=/envs/spatial_v3=/usr/local/src/conda-prefix  -c RcppExports.cpp -o RcppExports.o
/opt/rh/devtoolset-7/root/bin/g++ -std=gnu++11 -I"/envs/spatial_v3/lib/R/include" -DNDEBUG  -I'/envs/spatial_v3/lib/R/library/Rcpp/include' -I'/envs/spatial_v3/lib/R/library/RcppArmadillo/include' -I'/envs/spatial_v3/lib/R/library/RcppProgress/include' -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /envs/spatial_v3/include -I/envs/spatial_v3/include -Wl,-rpath-link,/envs/spatial_v3/lib   -fpic  -fvisibility-inlines-hidden  -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /envs/spatial_v3/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1660164760553/work=/usr/local/src/conda/r-base-4.1.3 -fdebug-prefix-map=/envs/spatial_v3=/usr/local/src/conda-prefix  -c harmony.cpp -o harmony.o
/opt/rh/devtoolset-7/root/bin/g++ -std=gnu++11 -shared -L/envs/spatial_v3/lib/R/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/envs/spatial_v3/lib -Wl,-rpath-link,/envs/spatial_v3/lib -L/envs/spatial_v3/lib -o harmony.so RcppExports.o harmony.o -llapack -lblas -lgfortran -lm -lquadmath -L/envs/spatial_v3/lib/R/lib -lR
installing to /envs/spatial_v3/lib/R/library/00LOCK-harmony/00new/harmony/libs
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** stack smashing detected ***: /envs/spatial_v3/lib/R/bin/exec/R terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x2abb84e9d7a7]
/lib64/libc.so.6(+0x118762)[0x2abb84e9d762]

However could install it under R 4.1.3 via conda install -c bioconda r-harmony this does not work for r-base=4.2.1

Any suggestions? Many Thanks

swarrd commented 2 years ago

I had a similar issue trying to install Harmony under r 4.2.1. Output script:

Downloading GitHub repo immunogenomics/harmony@HEAD ✔ checking for file ‘/private/var/folders/dw/xkmd_52514nb_btchbc91g9jqlp_jn/T/RtmpFvhBlI/remotes16c563e5552d8/immunogenomics-harmony-6866e01/DESCRIPTION’ ... ─ preparing ‘harmony’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building ‘harmony_0.1.0.tar.gz’ Warning: invalid uid value replaced by that for user 'nobody' Warning: invalid gid value replaced by that for user 'nobody'

alikhuseynov commented 2 years ago

@swarrd in your case it's slightly different error. You might need to install rgdal as well. The Abort trap: 6.. error is probably related to Xcode version, not sure.

alikhuseynov commented 2 years ago

@swarrd and others users, I could install it under R 4.2.1 using r-harmony from bioconda. (Note I'm using conda environment) Dirty solution but it works and harmony runs smoothly:

hope this helps!