Skip to content
Back to formatted view

Raw Message

Message-ID: <4371C3AD.4060707@cimr.cam.ac.uk>
Date: 2005-11-09T09:38:53Z
From: Hin-Tak Leung
Subject: R build under mandriva 10.2
In-Reply-To: <200511081633.49575.gilles.guillot@inapg.inra.fr>

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