Jonathan Keane created ARROW-13243:
--------------------------------------
Summary: [R] altrep function call in R 3.5
Key: ARROW-13243
URL: https://issues.apache.org/jira/browse/ARROW-13243
Project: Apache Arrow
Issue Type: Bug
Reporter: Jonathan Keane
Fix For: 5.0.0
It looks like we need some (more?) version- or altrep- gating in order to build
on 3.5.
This is what is causing the nightly build {{test-r-versions}} to fail.
{code}
/opt/R/3.5.3/lib/R/include/R_ext/Altrep.h:35:31: error: expected
primary-expression before ‘class’
R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
^~~~~
/opt/R/3.5.3/lib/R/include/R_ext/Altrep.h:35:43: error: expected
primary-expression before ‘data1’
R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
^~~~~
/opt/R/3.5.3/lib/R/include/R_ext/Altrep.h:35:55: error: expected
primary-expression before ‘data2’
R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
^~~~~
/opt/R/3.5.3/lib/R/include/R_ext/Altrep.h:35:60: error: expression list treated
as compound expression in initializer [-fpermissive]
R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
^
altrep.cpp: In instantiation of ‘static SEXPREC*
arrow::r::ArrayNoNull<sexp_type>::Make(R_altrep_class_t, const
std::shared_ptr<arrow::Array>&) [with int sexp_type = 14; SEXP = SEXPREC*]’:
altrep.cpp:113:34: required from here
altrep.cpp:47:28: error: ‘R_new_altrep’ cannot be used as a function
SEXP res = R_new_altrep(class_t, xp, R_NilValue);
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
altrep.cpp: In instantiation of ‘static SEXPREC*
arrow::r::ArrayNoNull<sexp_type>::Make(R_altrep_class_t, const
std::shared_ptr<arrow::Array>&) [with int sexp_type = 13; SEXP = SEXPREC*]’:
altrep.cpp:127:33: required from here
altrep.cpp:47:28: error: ‘R_new_altrep’ cannot be used as a function
/opt/R/3.5.3/lib/R/etc/Makeconf:172: recipe for target 'altrep.o' failed
make: *** [altrep.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘arrow’
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)