Re: [Rd] R build under mandriva 10.2

From: Hin-Tak Leung <hin-tak.leung_at_cimr.cam.ac.uk>
Date: Wed 09 Nov 2005 - 09:38:53 GMT

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@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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Nov 09 20:42:01 2005

This archive was generated by hypermail 2.1.8 : Wed 09 Nov 2005 - 21:22:01 GMT