Skip to content

error in building R-2.15.3: configure: error: linking to Fortran libraries from C fails

2 messages · Dinesh, Brian Ripley

#
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.

Regards
Dinesh
#
On 05/02/2014 05:44, Dinesh wrote:
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).