You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2020/12/04 18:22:01 UTC
[jira] [Commented] (ARROW-10803) [R] Failure to compile on R 3.4
[ https://issues.apache.org/jira/browse/ARROW-10803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17244196#comment-17244196 ]
Neal Richardson commented on ARROW-10803:
-----------------------------------------
Confirmed that this is an issue with R 3.4: https://github.com/ursa-labs/crossbow/runs/1500164387
Another issue appears on R 3.3:
{code}
g++ -I/opt/R/3.3.3/lib/R/include -DNDEBUG -I/usr/local/include -I"/opt/R/3.3.3/lib/R/library/cpp11/include" -fpic -g -O2 -c imports.cpp -o imports.o
imports.cpp: In constructor ‘vctrs::vctrs_api_ptrs_t::vctrs_api_ptrs_t()’:
imports.cpp:25:40: error: ‘R_GetCCallable’ was not declared in this scope
short_vec_size = (R_len_t(*)(SEXP))R_GetCCallable("vctrs", "short_vec_size");
^~~~~~~~~~~~~~
imports.cpp:25:40: note: suggested alternative: ‘Rf_GetColNames’
short_vec_size = (R_len_t(*)(SEXP))R_GetCCallable("vctrs", "short_vec_size");
^~~~~~~~~~~~~~
Rf_GetColNames
{code}
> [R] Failure to compile on R 3.4
> -------------------------------
>
> Key: ARROW-10803
> URL: https://issues.apache.org/jira/browse/ARROW-10803
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Affects Versions: 2.0.0
> Environment: AWS EMR 5.22 (also tried EMR 5.31 and EMR 6.1)
> Amazon Linux AMI 2018.03
> R version 3.4.1
> Reporter: Doan Le
> Priority: Major
> Fix For: 3.0.0
>
>
> R install on clean AWS EMR fails. I've tried multiple methods:
>
> From within R
> {{> source("[https://raw.githubusercontent.com/apache/arrow/master/r/R/install-arrow.R]")}}
> {{> install_arrow()}}
> {{}}
> {{And also via: }}
> sudo R -e "install.packages('arrow', repos ='https://cloud.r-project.org',dependencies = TRUE)"
>
> All dependencies seem to install ok but the arrow R package itself fails:
>
> ++ -m64 -std=gnu++11 -I/usr/include/R -DNDEBUG -I/mnt/tmp/RtmpVCRQK4/R.INSTALL591557cd8b23/arrow/libarrow/arrow-2.0.0/include -DARROW_R_WITH_ARROW -I"/usr/lib64/R/library/cpp11/include" -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c array_from_vector.cpp -o array_from_vector.o
> array_from_vector.cpp: In instantiation of 'std::shared_ptr<arrow::Array> arrow::r::MakeSimpleArray(SEXP) [with int RTYPE = 13; RVector = cpp11::r_vector<int>; Type = arrow::Int32Type; SEXP = SEXPREC*]':
> array_from_vector.cpp:1406:65: required from here
> *array_from_vector.cpp:1361:59: error: 'DATAPTR' was not declared in this scope*
> *auto p_vec_start = reinterpret_cast<value_type*>(DATAPTR(vec));*
> *~~~~~~~^~~~~*
> *array_from_vector.cpp:1380:10: error: unable to deduce 'auto' from 'first_na'*
> *auto p_vec = first_na;*
> ^~~~~
> array_from_vector.cpp: In instantiation of 'std::shared_ptr<arrow::Array> arrow::r::MakeSimpleArray(SEXP) [with int RTYPE = 14; RVector = cpp11::r_vector<double>; Type = arrow::Int64Type; SEXP = SEXPREC*]':
> *array_from_vector.cpp:1408:65: required from here*
> *array_from_vector.cpp:1361:59: error: 'DATAPTR' was not declared in this scope*
> *auto p_vec_start = reinterpret_cast<value_type*>(DATAPTR(vec));*
> ~~~~~~~^~~~~
> array_from_vector.cpp:1380:10: error: unable to deduce 'auto' from 'first_na'
> auto p_vec = first_na;
> ^~~~~
> array_from_vector.cpp: In instantiation of 'std::shared_ptr<arrow::Array> arrow::r::MakeSimpleArray(SEXP) [with int RTYPE = 14; RVector = cpp11::r_vector<double>; Type = arrow::DoubleType; SEXP = SEXPREC*]':
> *array_from_vector.cpp:1410:66: required from here*
> *array_from_vector.cpp:1361:59: error: 'DATAPTR' was not declared in this scope*
> auto p_vec_start = reinterpret_cast<value_type*>(DATAPTR(vec));
> ~~~~~~~^~~~~
> *array_from_vector.cpp:1380:10: error: unable to deduce 'auto' from 'first_na'*
> *auto p_vec = first_na;*
> ^~~~~
> array_from_vector.cpp: In instantiation of 'std::shared_ptr<arrow::Array> arrow::r::MakeSimpleArray(SEXP) [with int RTYPE = 24; RVector = cpp11::r_vector<unsigned char>; Type = arrow::UInt8Type; SEXP = SEXPREC*]':
> array_from_vector.cpp:1412:61: required from here
> *array_from_vector.cpp:1361:59: error: 'DATAPTR' was not declared in this scope*
> *auto p_vec_start = reinterpret_cast<value_type*>(DATAPTR(vec));*
> ~~~~~~~^~~~~
> *array_from_vector.cpp:1380:10: error: unable to deduce 'auto' from 'first_na'*
> *auto p_vec = first_na;*
> ^~~~~
> make: *** [array_from_vector.o] Error 1
> ERROR: compilation failed for package 'arrow'
> * removing '/usr/lib64/R/library/arrow'
> The downloaded source packages are in
> '/mnt/tmp/RtmpyLdG80/downloaded_packages'
> Updating HTML index of packages in '.Library'
> Making 'packages.html' ... done
> Warning message:
> In install.packages("arrow", repos = arrow_repos(repos, nightly), :
> installation of package 'arrow' had non-zero exit status
>
> {{}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)