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

Matt Pollock edited comment on ARROW-9602 at 8/3/20, 3:38 PM:
--------------------------------------------------------------

Thanks for working through this with me!

I can't get the code macro in Jira to work with the output messages (it refuses 
line breaks) but I put the output in this github gist: 
[https://gist.github.com/mattpollock/96c1334229daa1d83ab788c43f6d8c1b]. I think 
the important part is:

Looks like cmake may be the issue

 


{code:java}
*** Successfully retrieved C++ source
*** Building C++ libraries
rm: cannot remove ‘src/*.o’: No such file or directory
*** Building with MAKEFLAGS= -j2
**** arrow with 
SOURCE_DIR="/tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp" 
BUILD_DIR="/tmp/RtmpkEUbIw/file5ec517d79a18" DEST_DIR="libarrow/arrow-1.0.0" 
CMAKE="/usr/bin/cmake" CC="/opt/rh/devtoolset-8/root/bin/gcc" 
CXX="/opt/rh/devtoolset-8/root/bin/g++ -std=gnu++11" LDFLAGS="-L/usr/local/lib"
++ pwd
+ : /tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow
+ : /tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
+ : /tmp/RtmpkEUbIw/file5ec517d79a18
+ : libarrow/arrow-1.0.0
+ : /usr/bin/cmake
++ cd /tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
++ pwd
+ SOURCE_DIR=/tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
++ mkdir -p libarrow/arrow-1.0.0
++ cd libarrow/arrow-1.0.0
++ pwd
+ DEST_DIR=/tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow/libarrow/arrow-1.0.0
+ '[' '' = '' ']'
+ which ninja
+ '[' '' = false ']'
+ ARROW_DEFAULT_PARAM=OFF
+ mkdir -p /tmp/RtmpkEUbIw/file5ec517d79a18
+ pushd /tmp/RtmpkEUbIw/file5ec517d79a18
/tmp/RtmpkEUbIw/file5ec517d79a18 /tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow
+ /usr/bin/cmake -DARROW_BOOST_USE_SHARED=OFF -DARROW_BUILD_TESTS=OFF 
-DARROW_BUILD_SHARED=OFF -DARROW_BUILD_STATIC=ON -DARROW_COMPUTE=ON 
-DARROW_CSV=ON -DARROW_DATASET=ON -DARROW_DEPENDENCY_SOURCE=BUNDLED 
-DARROW_FILESYSTEM=ON -DARROW_JEMALLOC=ON -DARROW_JSON=ON -DARROW_PARQUET=ON 
-DARROW_WITH_BROTLI=OFF -DARROW_WITH_BZ2=OFF -DARROW_WITH_LZ4=OFF 
-DARROW_WITH_SNAPPY=OFF -DARROW_WITH_UTF8PROC=OFF -DARROW_WITH_ZLIB=OFF 
-DARROW_WITH_ZSTD=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib 
-DCMAKE_INSTALL_PREFIX=/tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow/libarrow/arrow-1.0.0
 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_UNITY_BUILD=ON 
-DOPENSSL_USE_STATIC_LIBS=ON -G 'Unix Makefiles' 
/tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
CMake Error at CMakeLists.txt:18 (cmake_minimum_required):
 CMake 3.2 or higher is required. You are running version 2.8.12.2

 
{code}



was (Author: mpollock):
Thanks for working through this with me!

I can't get the code macro in Jira to work with the output messages (it refuses 
line breaks) but I put the output in this github gist: 
[https://gist.github.com/mattpollock/96c1334229daa1d83ab788c43f6d8c1b]. I think 
the important part is:

Looks like cmake may be the issue

 

*** Successfully retrieved C++ source
*** Building C++ libraries
rm: cannot remove ‘src/*.o’: No such file or directory
*** Building with MAKEFLAGS= -j2
**** arrow with 
SOURCE_DIR="/tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp" 
BUILD_DIR="/tmp/RtmpkEUbIw/file5ec517d79a18" DEST_DIR="libarrow/arrow-1.0.0" 
CMAKE="/usr/bin/cmake" CC="/opt/rh/devtoolset-8/root/bin/gcc" 
CXX="/opt/rh/devtoolset-8/root/bin/g++ -std=gnu++11" LDFLAGS="-L/usr/local/lib"
++ pwd
+ : /tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow
+ : /tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
+ : /tmp/RtmpkEUbIw/file5ec517d79a18
+ : libarrow/arrow-1.0.0
+ : /usr/bin/cmake
++ cd /tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
++ pwd
+ SOURCE_DIR=/tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
++ mkdir -p libarrow/arrow-1.0.0
++ cd libarrow/arrow-1.0.0
++ pwd
+ DEST_DIR=/tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow/libarrow/arrow-1.0.0
+ '[' '' = '' ']'
+ which ninja
+ '[' '' = false ']'
+ ARROW_DEFAULT_PARAM=OFF
+ mkdir -p /tmp/RtmpkEUbIw/file5ec517d79a18
+ pushd /tmp/RtmpkEUbIw/file5ec517d79a18
/tmp/RtmpkEUbIw/file5ec517d79a18 /tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow
+ /usr/bin/cmake -DARROW_BOOST_USE_SHARED=OFF -DARROW_BUILD_TESTS=OFF 
-DARROW_BUILD_SHARED=OFF -DARROW_BUILD_STATIC=ON -DARROW_COMPUTE=ON 
-DARROW_CSV=ON -DARROW_DATASET=ON -DARROW_DEPENDENCY_SOURCE=BUNDLED 
-DARROW_FILESYSTEM=ON -DARROW_JEMALLOC=ON -DARROW_JSON=ON -DARROW_PARQUET=ON 
-DARROW_WITH_BROTLI=OFF -DARROW_WITH_BZ2=OFF -DARROW_WITH_LZ4=OFF 
-DARROW_WITH_SNAPPY=OFF -DARROW_WITH_UTF8PROC=OFF -DARROW_WITH_ZLIB=OFF 
-DARROW_WITH_ZSTD=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib 
-DCMAKE_INSTALL_PREFIX=/tmp/RtmpzuNlwZ/R.INSTALL5e9f10e419b9/arrow/libarrow/arrow-1.0.0
 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_UNITY_BUILD=ON 
-DOPENSSL_USE_STATIC_LIBS=ON -G 'Unix Makefiles' 
/tmp/RtmpkEUbIw/file5ec566d5e3ab/apache-arrow-1.0.0/cpp
CMake Error at CMakeLists.txt:18 (cmake_minimum_required):
 CMake 3.2 or higher is required. You are running version 2.8.12.2

 

> [R] segfault on Table$create(iris)
> ----------------------------------
>
>                 Key: ARROW-9602
>                 URL: https://issues.apache.org/jira/browse/ARROW-9602
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 1.0.0
>            Reporter: Matt Pollock
>            Priority: Major
>
>  
> {code:java}
> > arrow::write_parquet(iris, "~/iris") 
> *** caught segfault ***
> address (nil), cause 'memory not mapped' Traceback: 1: Table__from_dots(dots, 
> schema) 2: shared_ptr_is_null(xp) 3: shared_ptr(Table, Table__from_dots(dots, 
> schema)) 4: Table$create(x) 5: arrow::write_parquet(iris, "~/iris")
> {code}
> The segfault is easy to generate trying to write iris data to parquet. I have 
> tried R 4.0.0 and R 4.0.2, I've installed the arrow (R) package from CRAN, 
> source, nightly build, both with and without using the system arrow C++ 
> installation. When using system arrow the installed version is:
> {noformat}
> Installed Packages 
> Name        : arrow-devel 
> Arch        : x86_64 
> Version     : 1.0.0 
> Release     : 1.el7 
> Size        : 32 M 
> Repo        : installed 
> From repo   : apache-arrow 
> Summary     : Libraries and header files for Apache Arrow C++ 
> URL         : https://arrow.apache.org/ 
> License     : Apache-2.0 
> Description : Libraries and header files for Apache Arrow C++.
> {noformat}
>  I realize that this is so basic that it seems improbable that your CI didn't 
> catch something (i.e., that the issue has to do with my local environment) 
> but would appreciate verification that version 1.0 works for others on centOS7



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

Reply via email to