[Rd] R build under mandriva 10.2

Hin-Tak Leung hin-tak.leung at cimr.cam.ac.uk
Wed Nov 9 10:38:53 CET 2005


Gilles GUILLOT wrote:
> After upgrading from mandrake 10.1 to mandriva 10.2
> I can't build shared archive with R 2.2.0

libg2c is part of the g77 fortran runtime package in gcc 3.x. You probably
have gcc 4.x (which has a new/different fortran frontend
called gfortran) when you upgrade to mandriva 10.2 .

You probably need to rebuild R with gcc 4.x, or downgrade your
compiler suites back to gcc 3.x.

> [guillot at laplace src]$ R CMD SHLIB main.f sub.f wrapper.c 
> gcc -shared  -L/usr/local/lib -o main.so main.o sub.o wrapper.o  -lg2c -lm 
> -lgcc_s
> /usr//bin/ld: cannot find -lg2c
> collect2: ld returned 1 exit status
> make: *** [main.so] Erreur 1
> 
> I guess the information in
> http://finzi.psych.upenn.edu/R/Rhelp01/archive/5146.html 
> are not relevant any longer.
> 
> What is missing ?
> 
> Gilles
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list