Skip to content

Fails to compile vs  #403

@YuriWerewolf

Description

@YuriWerewolf

Hi all,

here is my session info:

sessionInfo()

R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 21.1

Matrix products: default
BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/libflexiblas.so.3.3

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

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

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10       fansi_1.0.4       utf8_1.2.3        dbplyr_2.3.0      dplyr_1.1.0       assertthat_0.2.1  R6_2.5.1          lifecycle_1.0.3   DBI_1.1.3        
[10] magrittr_2.0.3    pillar_1.8.1      rlang_1.0.6       cli_3.6.0         rstudioapi_0.14   vctrs_0.5.2       generics_0.1.3    tools_4.1.2       bit64_4.0.5      
[19] glue_1.6.2        bit_4.0.5         compiler_4.1.2    pkgconfig_2.0.3   tidyselect_1.2.0  tibble_3.1.8      RClickhouse_0.6.4

When trying to install RcppArmadillo I get the following error:

g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o RcppArmadillo.so RcppArmadillo.o RcppExports.o fastLm.o -fopenmp -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -llapack: No such file or directory
/usr/bin/ld: cannot find -lblas: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/share/make/shlib.mk:10: RcppArmadillo.so] Error 1
ERROR: compilation failed for package ‘RcppArmadillo’

My guess is that because i have updated BLAS/LAPACK it fails to see new library.
Is it possible to compile it vs /usr/lib/x86_64-linux-gnu/libflexiblas.so.3.3 ? And if so how can I do it?

And if if it is not possible how do I compile RcppArmadillo pls?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions