[
https://issues.apache.org/jira/browse/ARROW-15039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456192#comment-17456192
]
Jyotirmoy Bhattacharya commented on ARROW-15039:
------------------------------------------------
A workaround is to add the following to ~/.R/Makevars
CPICFLAGS=-fPIC
CXXPICFLAGS=-fPIC
CXX11PICFLAGS=-fPIC
CXX14PICFLAGS=-fPIC
CXX17PICFLAGS=-fPIC
CXX20PICFLAGS=-fPIC
FPICFLAGS=-fPIC
> Compile fails on aarch64 with -fpic error
> -----------------------------------------
>
> Key: ARROW-15039
> URL: https://issues.apache.org/jira/browse/ARROW-15039
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Affects Versions: 6.0.1
> Environment: System: Oracle Cloud, Ampere A1 instance, Ubuntu 20.04
> R version: 4.1.2
> CMake version: 3.16.3
> g++ version: 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
> Reporter: Jyotirmoy Bhattacharya
> Priority: Major
>
> On trying to install the R package (v. 6.0.1) on aarch64 the C++ package
> builds successfully but then the installation fails with the error
> /usr/bin/ld:
> /tmp/RtmpFxiJjo/R.INSTALL25d336ebab6c6/arrow/src/../inst/include/cpp11/protect.hpp:38:
> warning: too many GOT entries for -fpic, please recompile with -fPIC
--
This message was sent by Atlassian Jira
(v8.20.1#820001)