Install issue - splitting "Application Support" path to RcppParallel
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 401
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
Summary:
clang error when installing rstanarm. Path to RcppParallel is not being shell escaped and is being split at space in "Application Support".
Description:
I'm trying to install rstanarm on an arm64 Mac and am getting the error,
clang: error: no such file or directory: 'Support/renv/cache/v5/R-4.2/aarch64-apple-darwin21.6.0/RcppParallel/5.1.5/f3e94e34ff656a7c8336ce01207bc2b8/RcppParallel/include''
make: *** [stan_files/bernoulli.o] Error 1
rm stan_files/bernoulli.cc
ERROR: compilation failed for package ‘rstanarm’
The path should be ~/Library/Application Support/renv/cache/v5/R-4.2/aarch64-apple-darwin21.6.0/RcppParallel/5.1.5/f3e94e34ff656a7c8336ce01207bc2b8/RcppParallel/include/RcppParallel.h
So something is not escaping the space, which is causing the path to get split. I'm not sure where to start troubleshooting so any pointers would be greatly appreciated. My ~/.R/Makevars was initially
FC = /opt/homebrew/Cellar/gcc/12.2.0/bin/gfortran
F77 = /opt/homebrew/Cellar/gcc/12.2.0/bin/gfortran
FLIBS = -L/opt/homebrew/Cellar/gcc/12.2.0/lib
and I've tried adding various things, e.g.
CXX=clang++
CXX_STD = CXX11
PKG_LIBS += $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
but nothing seems to change the error. I use homebrew for gcc and clang.
Thanks a ton.
Reproducible Steps:
install.packages("rstanarm")
RStanARM Version:
latest, both from CRAN and from install.packages("rstanarm", type = "source")
R Version:
4.2.2
Operating System:
OS X 12.6.1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with install.packages("rstanarm") on the reported macOS and inspect the compiler arguments involving RcppParallel::RcppParallelLibs(). Done means the Application Support path remains intact during compilation and the rstanarm source installation succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, shell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100