Skip to content
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 on latest Alpine 3.19.0 #1

Closed
bastistician opened this issue Dec 9, 2023 · 1 comment
Closed

compilation failure on latest Alpine 3.19.0 #1

bastistician opened this issue Dec 9, 2023 · 1 comment

Comments

@bastistician
Copy link

RcppInt64 fails to install on the latest Alpine Linux 3.19.0:

../inst/include/rcppint64_bits/functions.h:48:58: error: 'int64_t' was not declared in this scope
   48 | inline Rcpp::NumericVector toInteger64(const std::vector<int64_t>& v) {
      |                                                          ^~~~~~~
../inst/include/rcppint64_bits/functions.h:23:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?

Indeed, the following one-liner fixes the installation for me:

diff --git a/inst/include/rcppint64_bits/functions.h b/inst/include/rcppint64_bits/functions.h
index d82f177..49e0787 100644
--- a/inst/include/rcppint64_bits/functions.h
+++ b/inst/include/rcppint64_bits/functions.h
@@ -20,6 +20,7 @@
 #pragma once
 
 #include <Rcpp/Lightest>
+#include <cstdint>
 
 namespace Rcpp {
@eddelbuettel
Copy link
Owner

Yes, thanks, will apply the change. These things can happen with newer compilers. Odd that the CRAN reports page is spotless as the Oxford setup tends to be 'early' and catch these things too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants