[R] error in building R-2.15.3: configure: error: linking to Fortran libraries from C fails
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Feb 5 08:58:35 CET 2014
On 05/02/2014 05:44, Dinesh wrote:
> Hi,
>
> I am trying to build R-2.15.3 and get the following error in
>
> /configure --with-readline --enable-R-shlib
> <snip>
> checking for dummy main to link with Fortran 77 libraries... unknown
> configure: error: in `/home/dinesh/R-build/R-2.15.3':
> configure: error: linking to Fortran libraries from C fails
>
>
> packages installed:
> zypper in texinfo readline-devel xorg-x11-devel
>
>
> Compilers:
> GNU Fortran (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
> gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
> g++ (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
>
>
> Linux:
> Linux hanaserver 2.6.32.27-0.2-default #1 SMP 2010-12-29 15:03:02 +0100
> x86_64 x86_64 x86_64 GNU/Linux
>
>
> FROM config.log
> configure:23444: checking for dummy main to link with Fortran 77 libraries
> configure:23478: gcc -std=gnu99 -o conftest -g -O2 -I/usr/local/include
> -L/usr/local/lib64 conftest.c -ldl -lm -lgfortran -lm >&5
> /usr/lib64/gcc/x86_64-suse-linux/4.3/libgfortran.so: undefined reference to
> `__gttf2 at GCC_4.3.0'
> /usr/lib64/gcc/x86_64-suse-linux/4.3/libgfortran.so: undefined reference to
> `__netf2 at GCC_4.3.0'
> /usr/lib64/gcc/x86_64-suse-linux/4.3/libgfortran.so: undefined reference to
> `__lttf2 at GCC_4.3.0'
> collect2: ld returned 1 exit status
> configure:23478: $? = 1
>
>
> Will greatly appreciate your help in working this out.
I don't see how we can. This is not an R issue, it is an
incompatibility between your C and your Fortran compiler of your
unstated OS version (and your compilers are ancient). If you can fathom
out what is missing from FLIBS, you can supply it to configure (it might
be -lquadmath, which current gfortran needs).
In any case, this is the wrong list (see the posting guide) and we do
not support obsolete versions of R (see the posting guide).
--
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