You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dewey Dunnington (Jira)" <ji...@apache.org> on 2022/06/13 12:39:00 UTC

[jira] [Commented] (ARROW-16748) [R] CRAN Installation error on CentOS cluster

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

Dewey Dunnington commented on ARROW-16748:
------------------------------------------

Thank you for reporting! In theory we support gcc 4.8 and we should be providing a binary for CentOS7 when {{NOT_CRAN=true}}...could you post the full install command you used and the output? I suspect that the compiler flags are not what we normally expect for CentOS7 and that maybe the compiler isn't getting the signal that we're using C++11. If you aren't already, I believe that you need to set the environment variable {{ARROW_R_DEV=true}} to get the most verbose output.

The reason I say this is that I believe we compile using the output of {{R CMD config CXX11}} and {{R CMD config CXX11STD}}  instead of whatever {{g++}} is linked on the command line (although we still should be providing a binary for CentOS7 and I'm not sure why we aren't in this case).

As a workaround, you may be able to get this to work using something like the following to override the default makevars:

{{withr::with_makevars(list(CXX11 = "g++"), install.packages("arrow", type = "source"))}}

> [R] CRAN Installation error on CentOS cluster 
> ----------------------------------------------
>
>                 Key: ARROW-16748
>                 URL: https://issues.apache.org/jira/browse/ARROW-16748
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, R
>         Environment: CentOS 7.9.2009
>            Reporter: Jed Phillips
>            Priority: Major
>
> I am trying to install R arrow on a university cluster that's running CentOS v 7.9.2009. I've tried all of the options on [https://arrow.apache.org/docs/r/,] but continually get the same cryptic error:
>  
> {code:R}
> [ 34%] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/c/bridge.cc.o
> In file included from /tmp/RtmpIAcCpl/R.INSTALL352b6de22db6/arrow/tools/cpp/src/arrow/c/bridge.cc:42:0:
> /tmp/RtmpIAcCpl/R.INSTALL352b6de22db6/arrow/tools/cpp/src/arrow/util/small_vector.h: In member function ‘void arrow::internal::StaticVectorStorage<T, N, D>::move_construct(arrow::internal::StaticVectorStorage<T, N, D>&&)’:
> /tmp/RtmpIAcCpl/R.INSTALL352b6de22db6/arrow/tools/cpp/src/arrow/util/small_vector.h:98:44: error: invalid use of qualified-name ‘::move_construct_several’
>        storage_type::move_construct_several(other.static_data_, static_data_, size_, N);
>                                             ^
> /tmp/RtmpIAcCpl/R.INSTALL352b6de22db6/arrow/tools/cpp/src/arrow/util/small_vector.h: In member function ‘void arrow::internal::StaticVectorStorage<T, N, D>::clear()’:
> /tmp/RtmpIAcCpl/R.INSTALL352b6de22db6/arrow/tools/cpp/src/arrow/util/small_vector.h:109:35: error: invalid use of qualified-name ‘::destroy_several’
>      storage_type::destroy_several(static_data_, size_);
>                                    ^
> make[2]: *** [src/arrow/CMakeFiles/arrow_objlib.dir/c/bridge.cc.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [src/arrow/CMakeFiles/arrow_objlib.dir/all] Error 2
> gmake: *** [all] Error 2
>  * 
>  ** 
>  *** 
>  **** Error building Arrow C++.  
> {code}
> Here's the gcc/g++ backend that's loaded
> {code}
> [jm@login-17 r]$ /cluster/apps/gcc/5.2.0/bin/g++ --version
> g++ (GCC) 5.2.0
> [jm@login-17 r]$ /cluster/apps/gcc/5.2.0/bin/gcc --version
> gcc (GCC) 5.2.0
> {code}
> I've also tried with gcc/g++ v 6.3.0, with the same error. And get this regardless of whether I try to build from source, install from specific repos, or fix the known issues for CentOS.
>  
> Any thoughts on what the problem is?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)