You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jonathan Keane (Jira)" <ji...@apache.org> on 2021/11/24 20:46:00 UTC

[jira] [Assigned] (ARROW-14803) [R] Function not declared in scope

     [ https://issues.apache.org/jira/browse/ARROW-14803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Keane reassigned ARROW-14803:
--------------------------------------

    Assignee: Jonathan Keane

> [R] Function not declared in scope
> ----------------------------------
>
>                 Key: ARROW-14803
>                 URL: https://issues.apache.org/jira/browse/ARROW-14803
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Jonathan Keane
>            Assignee: Jonathan Keane
>            Priority: Major
>
> Starting with ARROW-13111, CI for R versions 3.4 and 3.3 have been failing with:
> {code}
> In file included from ./arrow_types.h:22:0,
>                  from altrep.cpp:18:
> ././arrow_cpp11.h: In lambda function:
> ././arrow_cpp11.h:108:23: error: ‘STRING_PTR_RO’ was not declared in this scope
>      const SEXP* p_x = STRING_PTR_RO(x);
>                        ^~~~~~~~~~~~~
> ././arrow_cpp11.h:108:23: note: suggested alternative: ‘STRING_PTR’
>      const SEXP* p_x = STRING_PTR_RO(x);
>                        ^~~~~~~~~~~~~
>                        STRING_PTR
> altrep.cpp: In function ‘std::shared_ptr<arrow::Array> arrow::r::altrep::vec_to_arrow_altrep_bypass(SEXP)’:
> altrep.cpp:709:24: error: ambiguating new declaration of ‘std::shared_ptr<arrow::Array> arrow::r::altrep::vec_to_arrow_altrep_bypass(SEXP)’
>  std::shared_ptr<Array> vec_to_arrow_altrep_bypass(SEXP x) { return nullptr; }
>                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from altrep.cpp:18:0:
> ./arrow_types.h:190:31: note: old declaration ‘std::shared_ptr<arrow::ChunkedArray> arrow::r::altrep::vec_to_arrow_altrep_bypass(SEXP)’
>  std::shared_ptr<ChunkedArray> vec_to_arrow_altrep_bypass(SEXP);
>                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
> g++ -std=gnu++11 -I/opt/R/3.4.4/lib/R/include -DNDEBUG -I/arrow/r/check/arrow.Rcheck/00_pkg_src/arrow/libarrow/arrow-6.0.1.9000/include  -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_S3 -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fpic  -g -O2 -c array.cpp -o array.o
> In file included from ./arrow_types.h:22:0,
>                  from array.cpp:18:
> ././arrow_cpp11.h: In lambda function:
> ././arrow_cpp11.h:108:23: error: ‘STRING_PTR_RO’ was not declared in this scope
>      const SEXP* p_x = STRING_PTR_RO(x);
>                        ^~~~~~~~~~~~~
> /opt/R/3.4.4/lib/R/etc/Makeconf:168: recipe for target 'altrep.o' failed
> make: *** [altrep.o] Error 1
> make: *** Waiting for unfinished jobs....
> ././arrow_cpp11.h:108:23: note: suggested alternative: ‘STRING_PTR’
>      const SEXP* p_x = STRING_PTR_RO(x);
>                        ^~~~~~~~~~~~~
>                        STRING_PTR
> /opt/R/3.4.4/lib/R/etc/Makeconf:168: recipe for target 'array.o' failed
> make: *** [array.o] Error 1
> ERROR: compilation failed for package ‘arrow’
> * removing ‘/arrow/r/check/arrow.Rcheck/arrow’
> {code}
> https://github.com/ursacomputing/crossbow/runs/4295709576?check_suite_focus=true#step:8:1402
> It looks like we need a bit more gating here to only use this code when altrep is available in R



--
This message was sent by Atlassian Jira
(v8.20.1#820001)