-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Hi, I was trying to compile the R arrow package inside a docker container, using [the nightly arrow build |
[https://dl.bintray.com/ursalabs/arrow-r/src/contrib/arrow_0.17.1.20200625.tar.gz]
] . I follwed the steps at #5507 , and then installed using the following command
'source("https://raw.githubusercontent.com/apache/arrow/master/r/R/install-arrow.R"); install_arrow(nightly=T, repos="https://cloud.r-project.org/")', and got the following error
In file included from /usr/include/c++/6/unordered_map:47:0,
from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/platform/compiler.h:153,
from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/r/headers.h:59,
from /usr/local/lib/R/site-library/Rcpp/include/RcppCommon.h:29,
from ././arrow_rcpp.h:18,
from ./arrow_types.h:20,
from symbols.cpp:18:
/usr/include/c++/6/bits/hashtable.h:1379:48: error: wrong number of template arguments (4, should be 10)
_H1, _H2, _Hash, _RehashPolicy, _Traits>::
^
In file included from /usr/include/c++/6/bits/hashtable.h:35:0,
from /usr/include/c++/6/unordered_map:47,
from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/platform/compiler.h:153,
from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/r/headers.h:59,
from /usr/local/lib/R/site-library/Rcpp/include/RcppCommon.h:29,
from ././arrow_rcpp.h:18,
from ./arrow_types.h:20,
from symbols.cpp:18:
/usr/include/c++/6/bits/hashtable_policy.h:42:11: note: provided for 'template<class _Key, class _Value, class _Alloc, class _ExtractKey, class _Equal, class _H1, class _H2, class _Hash, class _RehashPolicy, class _Traits> class std::_Hashtable'
class _Hashtable;
^~~~~~~~~~
In file included from /usr/include/c++/6/unordered_map:47:0,
from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/platform/compiler.h:153,
from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/r/headers.h:59,
from /usr/local/lib/R/site-library/Rcpp/include/RcppCommon.h:29,
from ././arrow_rcpp.h:18,
from ./arrow_types.h:20,
from symbols.cpp:18:
/usr/include/c++/6/bits/hashtable.h:1380:23: error: 'key_type' does not name a type
equal_range(const key_type& __k) const
^~~~~~~~
/usr/include/c++/6/bits/hashtable.h:1381:13: error: 'const_iterator' was not declared in this scope
-> pair<const_iterator, const_iterator>
^~~~~~~~~~~~~~
/usr/include/c++/6/bits/hashtable.h:1381:29: error: 'const_iterator' was not declared in this scope
-> pair<const_iterator, const_iterator>
^~~~~~~~~~~~~~
/usr/include/c++/6/bits/hashtable.h:1381:43: error: template argument 1 is invalid
-> pair<const_iterator, const_iterator>
^
/usr/include/c++/6/bits/hashtable.h:1381:43: error: template argument 2 is invalid
I was able to fix this error and successfully compile it by upgrading Rcpp to the most recent version on github. perhaps a higher version of Rcpp should be included as a dependency? Might just be an issue on my end but figured it would be worth opening an issue
sessioInfo(with Rcpp loaded) pre upgrading Rcpp:
R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.19.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rcpp_1.0.1
loaded via a namespace (and not attached):
[1] compiler_3.5.3
sessioInfo(with Rcpp loaded) after upgrading Rcpp:
R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.19.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rcpp_1.0.4.12
loaded via a namespace (and not attached):
[1] ps_1.3.0 prettyunits_1.0.2 crayon_1.3.4 withr_2.1.2
[5] rprojroot_1.3-2 assertthat_0.2.1 R6_2.4.0 backports_1.1.4
[9] magrittr_1.5 cli_1.1.0 curl_3.3 remotes_2.1.0
[13] callr_3.3.0 tools_3.5.3 compiler_3.5.3 processx_3.4.0
[17] pkgbuild_1.0.3
Reporter: Vinay Swamy
Assignee: Romain Francois / @romainfrancois
Related issues:
- [R] Switch to cpp11 (is superceded by)
Note: This issue was originally created as ARROW-9232. Please see the migration documentation for further details.