-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation failure #211
Comments
Same question here. Ask for help. |
Please comment out the line Rf_warning(es.str().c_str()) on line 48 in the /src/routines.cpp script. This is just a warning and does not affect the software installation and normal use. |
Thanks, it worked. |
rnakato
added a commit
to rnakato/velocyto.R
that referenced
this issue
Nov 21, 2024
rnakato
added a commit
to rnakato/velocyto.R
that referenced
this issue
Nov 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to install the package in R and keep getting this recurrent issue
Installing package into ‘/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
*installing source package ‘velocyto.R’ ...
**using staged installation
**libs
using C++ compiler: ‘g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0’
using C++11
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -I'/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4/RcppArmadillo/include' -fopenmp -fpic -g -O2 -fdebug-prefix-map=/build/r-base-Kaw86j/r-base-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -I'/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4/RcppArmadillo/include' -fopenmp -fpic -g -O2 -fdebug-prefix-map=/build/r-base-Kaw86j/r-base-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c points_within.cpp -o points_within.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -I'/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4/RcppArmadillo/include' -fopenmp -fpic -g -O2 -fdebug-prefix-map=/build/r-base-Kaw86j/r-base-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c routines.cpp -o routines.o
routines.cpp: In function ‘arma::sp_mat balanced_knn(const mat&, int, int, bool, int)’:
routines.cpp:48:29: error: format not a string literal and no format arguments [-Werror=format-security]
48 | Rf_warning(es.str().c_str());
| ^
cc1plus: some warnings being treated as errors
make: *** [/usr/lib/R/etc/Makeconf:204: routines.o] Error 1
ERROR: compilation failed for package ‘velocyto.R’
*removing ‘/home/pochelab/R/x86_64-pc-linux-gnu-library/4.4/velocyto.R’
Warning message:
In i.p(...) :
installation of package ‘/tmp/RtmpUL3yWQ/file18ddd4f93b660/velocyto.R_0.6.tar.gz’ had non-zero exit status
Thanks in advance
The text was updated successfully, but these errors were encountered: