[R] Error when running configure on xeon with r-1-9-patched

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Sep 6 22:55:23 CEST 2004


Is libg2c.so in your library path?  That's one common problem.

On Mon, 6 Sep 2004, Gavin Simpson wrote:

> Dear list,
> 
> I'm having a problem configuring R-1-9-patched on a Intel Xeon machine 
> running Fedora Core 2. I used svn to checkout the source, altered 
> config.site to add some optimisation flags to match the Fedora rpm on 
> CRAN (the flags work fine on two other P3 or P4 machines I've compiled R 
> on).

(Configure does not know about P3 vs P4 vs Xeon.)

> ./configure fails with:
> 
> <snip>
> checking for long double... yes
> checking size of long double... 12
> checking whether we can compute C Make dependencies... yes, using gcc -MM
> checking whether gcc supports -c -o FILE.lo... yes
> checking how to get verbose linking output from g77... -v
> checking for Fortran libraries of g77...  -L/usr/local/lib 
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.3.3 
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../.. -lfrtbegin -lg2c -lm 
> -lgcc_s -lieee
> checking for dummy main to link with Fortran libraries... unknown
> configure: error: linking to Fortran libraries from C fails
> See `config.log' for more details.
> 
> I think this is the relevant part of the log, but I heavn't copied the 
> lengthy section on the variables etc that come at the end of the 
> config.log file:

The bit above on how this was linked may be relevant.


> | #define SIZEOF_INT 4
> | #define INT_32_BITS 1
> | #define SIZEOF_LONG 4
> | #define SIZEOF_LONG_LONG 8
> | #define SIZEOF_LONG_DOUBLE 12
> | /* end confdefs.h.  */
> | #define F77_DUMMY_MAIN _main
> | #ifdef F77_DUMMY_MAIN
> |
> | #  ifdef __cplusplus
> |      extern "C"
> | #  endif
> |    int F77_DUMMY_MAIN() { return 1; }
> |
> | #endif
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:25321: result: unknown
> configure:25341: error: linking to Fortran libraries from C fails
> See `config.log' for more details.
> 
> I guess I missed some software package or something - although I checked 
> that I had all the dependancies list for the Fedora 2 rpm. As I don't 
> really understand the specifics of what has gone wrong here could 
> someone enlighten me as to my mistake?
> 
> Many thanks in advance,
> 
> Gavin
> 
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list