Open MikeDMorgan opened 3 years ago
Uugh, the build there is failing because they changed their TeX environment again.
About your error: The relevant part of the clang++
command line is -ggdb -fPIC XXFLAGS
It contains the -ggdb
from my Makevars
file: https://github.com/theislab/destiny/blob/28307e9d5dd755a79a84c2f9049cdd4a2112eacb/src/Makevars
And also inexplicably just specifies XXFLAGS
… not as a -option
or anything, just as an argument.
I assume something is doing something hacky which breaks when I specify PKG_CXXFLAGS
.
Can you try compiling it with the makevars file removed/commented out? I’m open to change it if it makes peoples’ lives easier.
Thanks. I cloned the master branch and I have tried commenting out both lines, and combinations of the two lines in both my .R/Makevars, and the one in destiny/src/Makevars. In all situations I receive the same error:
> devtools::install("~/src/destiny")
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: cpp11 (0.2.5 -> 0.2.6 ) [CRAN]
5: crayon (1.3.4 -> 1.4.0 ) [CRAN]
6: cli (2.2.0 -> 2.3.0 ) [CRAN]
7: matrixStats (0.57.0 -> 0.58.0) [CRAN]
8: tibble (3.0.5 -> 3.0.6 ) [CRAN]
9: broom (0.7.3 -> 0.7.4 ) [CRAN]
10: MatrixGen... (1.2.0 -> 1.2.1 ) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
✓ checking for file ‘/Users/morgan02/src/destiny/DESCRIPTION’ (341ms)
─ preparing ‘destiny’: (447ms)
✓ 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
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘destiny_3.1.1.tar.gz’
Warning: invalid uid value replaced by that for user 'nobody'
Warning: invalid gid value replaced by that for user 'nobody'
Running /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL \
/var/folders/lf/cjtf6ppx32b28hyzg6dgfnw1h6d7q3/T//RtmpqAFhm6/destiny_3.1.1.tar.gz \
--install-tests
* installing to library ‘/Users/morgan02/Library/R/4.0/library’
* installing *source* package ‘destiny’ ...
** using staged installation
** libs
/usr/local/clang4/bin/clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/morgan02/Library/R/4.0/library/Rcpp/include' -I'/Users/morgan02/Library/R/4.0/library/RcppEigen/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/grDevices/include' -I/usr/local/include -fPIC XXFLAGS -c RcppExports.cpp -o RcppExports.o
clang-4.0: error: no such file or directory: 'XXFLAGS'
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘destiny’
* removing ‘/Users/morgan02/Library/R/4.0/library/destiny’
Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
System command 'R' failed, exit status: 1, stdout & stderr were printed
Type .Last.error.trace to see where the error occured
Did anyone find a solution to this? I seem to be stuck at the same spot, on macOS Big Sur. Thanks!
I'm also stuck at same spot, macOS Mojave. Thanks!
Yeah, I still have no idea what causes the command line to be constructed that way. There’s two issues:
XXFLAGS
. As Apple doesn’t provide a VM of their OS which devs can use, I don’t have a way to debug this.if one of you figures out to fix one of the two, I’ll happily merge the PR
Hi @flying-sheep I am currently attempting to install
destiny
from Bioconductor in R 4.0.3 (Bioc 3.12). The destiny package is only available in source form (I see destiny is failing on the Bioconductor page). Attempts to install are met with the following compilation error:I have tried to set XXFLAGS in my R Makevars file, according to guidance for compiling R on Mac OSX Catalina:
My sessionInfo:
Do you know if there is an adjustment to Makevars that might fix this, or is destiny now fundamentally incompatible with Mac OSX??