Development
R Package on Linux AArch64: `too many GOT entries` Build Error
**Problem:**
Building the R package on Linux running on an ARM64 architecture (AArch64) may result in the following error message:  
```console
/usr/bin/ld: /usr/include/c++/10/bits/basic_string.tcc:206:
warning: too many GOT entries for -fpic, please recompile with -fPIC
```  
**Solution:**
Create or edit the `~/.R/Makevars` file. This example also contains the [flag to parallelize the build](#::r-package-the-build-only-uses-a-single-thread):  
```ini
ALL_CXXFLAGS = $(PKG_CXXFLAGS) -fPIC $(SHLIB_CXXFLAGS) $(CXXFLAGS)
MAKEFLAGS = -j$(nproc)
```  
When making this change, also consider [making the build parallel](#::r-package-the-build-only-uses-a-single-thread).