[R-sig-Debian] Ubuntu 8.10: Package installation fails (lf77blas problem)

Vincent Goulet vincent.goulet at act.ulaval.ca
Mon Dec 8 16:54:48 CET 2008


Le lun. 8 déc. à 08:46, Dirk Eddelbuettel a écrit :

>
> On 8 December 2008 at 06:22, Dirk Eddelbuettel wrote:
> | | gcc -std=gnu99 -I/usr/share/R/include      -fpic  -g -O2 -c  
> mboost.c -o mboost.o
> | | gcc -std=gnu99 -shared  -o mboost.so mboost.o -lf77blas -latlas - 
> lgfortran -lm
> | | -L/usr/lib/R/lib -lR
> | | /usr/bin/ld: cannot find -lf77blas
> | | collect2: ld returned 1 exit status
> | | make: *** [mboost.so] Error 1
> | | ERROR: compilation failed for package 'mboost'
> | |
> | | I guess this has something to do with the removal of the g77  
> package from Ubuntu
> | | 8.10. Is there anything I can do short of compiling g77 and/or R  
> myself?
> |
> | It is not g77 itself (which was replaced by the improved  
> gfortran), it
> | appears to be a Fortran-built BLAS library for linear algebra.
> |
> | As I have no issue building these package, let's see where this  
> library comes from:
> |
> |   edd at joe:~$ locate libf77blas.so
> |   /usr/lib/libf77blas.so
> |   /usr/lib/libf77blas.so.3gf
> |   /usr/lib/libf77blas.so.3gf.0
> |
> | and hence
> |
> |   edd at joe:~$ dpkg -S /usr/lib/libf77blas.so
> |   libatlas-base-dev: /usr/lib/libf77blas.so
> |
> | So 'sudo apt-get install libatlas-base-dev' should fix it for you.
>
> Something may change in the build process.   R wants this 'f77blas'  
> library
> as it was encoded at configure time for R itself.  My Debian testing  
> box has
>
>   edd at ron:~$ grep blas /etc/R/Makeconf
>   BLAS_LIBS = -lblas
>   edd at ron:~$
>
> which is correct: 'blas' is library that can be provide by atlas  
> (fast, big
> package) or refblas (smaller).  My Ubuntu system (using our CRAN  
> binaries for
> R) has
>
>   edd at joe:~$ grep blas /etc/R/Makeconf
>   BLAS_LIBS = -lf77blas -latlas
>   edd at ron:~$
>
> which is what you have, and which may have gotten there by accident.

Same here (obviously) on the build system. It seems to be because I  
have libatlas-base-dev installed. I rebuilt without the package and  
now /etc/R/Makeconf has "BLAS_LIBS = -lblas". Should I provide an  
updated binary?

Cheers

Vincent


> The odd
> bit is that I had autobuilds of Debian R packages fail on just one  
> minor
> architecture (mips) for the same reason -- so maybe something  
> changed at the
> atlas library / compiler intersection.
>
> Dirk
>
> -- 
> Three out of two people have difficulties with fractions.
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian



More information about the R-SIG-Debian mailing list