gagolews / stringi

Fast and portable character string processing in R (with the Unicode ICU)
https://stringi.gagolewski.com/
Other
304 stars 44 forks source link

Compilation error: final link failed, symbol needs debug section which does not exist #333

Closed maximtrp closed 5 years ago

maximtrp commented 5 years ago

I came across an error when installing stringi on my aarch64 server.

Error log:

/usr/bin/ld: stri_brkiter.cpp:(.text+0x9c): warning: too many GOT entries for -fpic, please recompile with -fPIC
/usr/bin/ld: final link failed: symbol needs debug section which does not exist
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R//make/shlib.mk:6: stringi.so] Error 1
ERROR: compilation failed for package ‘stringi’
* removing ‘/home/maxim/R/aarch64-unknown-linux-gnu-library/3.5/stringi’

sessionInfo() output:

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: aarch64-unknown-linux-gnu (64-bit)
Running under: Arch Linux ARM

Matrix products: default
BLAS: /usr/lib/libopenblas_cortexa57p-r0.3.3.so
LAPACK: /usr/lib/liblapack.so.3.8.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1
gagolews commented 5 years ago

the warning message says: too many GOT entries for -fpic, please recompile with -fPIC

-> try editing /etc/R/Makeconf see also https://wiki.archlinux.org/index.php/R#Installation

You're on Arch Linux, be creative ;)

maximtrp commented 5 years ago

It worked! Thank you! :)