[R] Failure to compile source packages in Debian

Dirk Eddelbuettel edd at debian.org
Wed Mar 31 16:21:32 CEST 2004


On Wed, Mar 31, 2004 at 09:15:24AM +0200, F. Tusell wrote:
> 
> As of quite recently I experience failures to compile source packages. 
> Messages like
> 
>  * Installing *source* package 'dse1' ...
> ** libs
> g77 -mieee-fp  -fPIC  -g -O2 -c dsefor.f -o dsefor.o
> gcc -shared  -o dse1.so dsefor.o  -L/usr/lib/gcc-lib/i486-linux/3.3.3 
> -L/usr/lib/gcc-lib/i486-linux/3.3.3/../../..
> -lfrtbegin -lg2c-pic -lm -lgcc_s -L/usr/lib/R/bin -lR
> /usr/bin/ld: no se puede encontrar -lg2c-pic
> 
> clearly point to the non-existence of library g2c-pic. Problem is I 
> cannot locate  the .deb package
> containing such library. Could some Debian user point me to the right 
> location? (I am using
> Debian "testing"  on a Pentium box and R ver. 1.8.1 installed from the 
> .deb package.)

The g77 packages used to provide a g2c-pic library. E.g. when 1.8.1 was
built, they did and thusly the Depends ended up in /etc/R/Makeconf. However,
on your current system, g77 no longer provides the library -- so this fails.

You need to bring R and g77 back in sync. There are several possibilities:

a) install the current r-base-core and r-base-dev packages from unstable
b) recompile the 1.8.1 package locally to reflect to reflect your current
   compiler setup
c) edit /etc/R/Makeconf  

I'm sorry for the bug, but these things are hard to control for.

Dirk


-- 
The relationship between the computed price and reality is as yet unknown.  
                                             -- From the pac(8) manual page




More information about the R-help mailing list