You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Webb Phillips (Jira)" <ji...@apache.org> on 2021/05/17 01:36:00 UTC

[jira] [Comment Edited] (ARROW-12802) No more default ARROW_CSV=ON in libarrow build breaks R arrow

    [ https://issues.apache.org/jira/browse/ARROW-12802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17345816#comment-17345816 ] 

Webb Phillips edited comment on ARROW-12802 at 5/17/21, 1:35 AM:
-----------------------------------------------------------------

Oops you're right. WIth further testing, I find that:

• R apache-arrow-3.0.0 builds and works on Ubuntu 18.04, R 4.0.3, devtools:
{code:java}
install_github('apache/arrow',subdir='r',ref='apache-arrow-3.0.0',clean=T,force=T) {code}
• R apache-arrow-4.0.0 and current HEAD builds but crashes on use on Ubuntu 18.04, e.g.:
{code:java}
> x=read_feather('test.ftr')
Error in io___MemoryMappedFile__Open(path, mode) :
 Cannot call io___MemoryMappedFile__Open(). See https://arrow.apache.org/docs/r/articles/install.html for help installing Arrow C++ libraries. 
{code}
• R apache-arrow-1.0.1 builds and works on macOS 10.13.6, R 4.0.4, devtools:
{code:java}
install_github('apache/arrow',subdir='r',ref='apache-arrow-1.0.1',clean=T,force=T){code}
• R HEAD, apache-arrow-4.0.0, 3.0.0 (and probably 2.0.0) don't build on macOS 10.13.6, R 4.0.4, devtools because of ARROW_CSV=OFF

• If I build and install libarrow apache-arrow-4.0.0 with ARROW_CSV=ON first, then R apache-arrow-4.0.0 builds and works (because it uses already installed libarrow) on macOS 10.13.6, R 4.0.4, devtools

By hypothesis, I could also skip libarrow and manually build only R arrow with ARROW_CSV=ON.

 


was (Author: webbp):
Oops you're right. WIth further testing, I find that:

• R apache-arrow-3.0.0 builds and works on Ubuntu 18.04, R 4.0.3, devtools:
{code:java}
install_github('apache/arrow',subdir='r',ref='apache-arrow-3.0.0',clean=T,force=T) {code}
• R apache-arrow-4.0.0 and current HEAD builds but crashes on use on Ubuntu 18.04, e.g.:

 
{code:java}
> x=read_feather('test.ftr')
Error in io___MemoryMappedFile__Open(path, mode) :
 Cannot call io___MemoryMappedFile__Open(). See https://arrow.apache.org/docs/r/articles/install.html for help installing Arrow C++ libraries. 
{code}
• R apache-arrow-1.0.1 builds and works on macOS 10.13.6, R 4.0.4, devtools:
{code:java}
install_github('apache/arrow',subdir='r',ref='apache-arrow-1.0.1',clean=T,force=T){code}
• R HEAD, apache-arrow-4.0.0, 3.0.0 (and probably 2.0.0) don't build on macOS 10.13.6, R 4.0.4, devtools because of ARROW_CSV=OFF

• If I build and install libarrow apache-arrow-4.0.0 with ARROW_CSV=ON first, then R apache-arrow-4.0.0 builds and works (because it uses already installed libarrow) on macOS 10.13.6, R 4.0.4, devtools

By hypothesis, I could also skip libarrow and manually build only R arrow with ARROW_CSV=ON.

 

> No more default ARROW_CSV=ON in libarrow build breaks R arrow
> -------------------------------------------------------------
>
>                 Key: ARROW-12802
>                 URL: https://issues.apache.org/jira/browse/ARROW-12802
>             Project: Apache Arrow
>          Issue Type: Bug
>    Affects Versions: 4.0.0, 4.0.1
>            Reporter: Webb Phillips
>            Priority: Major
>
> libarrow build succeeds, but include/arrow/csv/type_fwd.h isn't installed since 4.0.0. This causes R install.packages('arrow') to fail with:
> {code:java}
> make: *** [/opt/local/Library/Frameworks/R.framework/Resources/etc/Makeconf:179: array.o] Error 1
> In file included from recordbatch.cpp:18:
> ././arrow_types.h:37:10: fatal error: 'arrow/csv/type_fwd.h' file not found{code}
> Reproduced with Ubuntu 18.04 and with macOS 10.13.6 MacPorts with both apache-arrow-4.0.0 and current HEAD f959141ece4d660bce5f7fa545befc0116a7db79.
> No other type_fwd.h are missing:
> {code:java}
> find .../arrow/cpp/src -name type_fwd.h | wc -l
> 10
> find .../include -name type_fwd.h | wc -l
> 9{code}
> Best guess: default value of cmake ARROW_CSV changed and R arrow requires ARROW_CSV=ON.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)