[
https://issues.apache.org/jira/browse/ARROW-15039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457540#comment-17457540
]
Jyotirmoy Bhattacharya commented on ARROW-15039:
------------------------------------------------
This happened with R built from source. So the flag must have been configured
when R was built.
> 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)