Closed skilpinen closed 2 years ago
This appears to be arising from your installed version of Rcpparmadillo not having required flags set for arm64, see related issue, though it seems to have been fixed upstream. I would recommend creating a new conda environment with updated packages or updating packages in your current enironment before installing sctransform.
As mentioned in https://github.com/conda-forge/r-base-feedstock/issues/163#issuecomment-1172913391, I successfully installed sctransform in Mac silicon M1 Max by first run export PKG_CPPFLAGS="-DHAVE_WORKING_LOG1P
in the terminal and then install the package in R.
Hi,
Any attempt to install this package (same with master and develop) to Arm64 Mac leads to error below. What is this about?
remotes::install_github("satijalab/sctransform", ref="develop") Downloading GitHub repo satijalab/sctransform@develop ✔ checking for file ‘/private/var/folders/jb/8nrbz8jx5v78ly5_0kvgx49c0000gn/T/RtmpQBcrbr/remotes1132274ac8bdc/satijalab-sctransform-e9e52a4/DESCRIPTION’ (442ms) ─ preparing ‘sctransform’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ installing the package to process help pages
─ installing source package ‘sctransform’ ... using staged installation libs arm64-apple-darwin20.0.0-clang++ -std=gnu++11 -I"/opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/lib/R/include" -DNDEBUG -I'/opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/lib/R/library/RcppArmadillo/include' -I'/opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/lib/R/library/Rcpp/include' -D_FORTIFY_SOURCE=2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/include -mmacosx-version-min=11.0 -I/opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/include -fPIC -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/r-base-split_1642327593909/work=/usr/local/src/conda/r-base-4.1.2 -fdebug-prefix-map=/opt/homebrew/Caskroom/miniforge/base/envs/r412_arm=/usr/local/src/conda-prefix -Wall -pedantic -fdiagnostics-color=always -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/lib/R/library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/lib/R/library/RcppArmadillo/include/RcppArmadilloForward.h:48: In file included from /opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/lib/R/library/RcppArmadillo/include/armadillo:380: /opt/homebrew/Caskroom/miniforge/base/envs/r412_arm/lib/R/library/RcppArmadillo/include/armadillo_bits/eop_aux.hpp:99:124: error: no member named 'Rlog1p' in namespace 'std'; did you mean 'log1p'? template arma_inline static typename arma_integral_only::result log1p (const eT x) { return eT( std::log1p(double(x)) ); }