Re: [Rd] Compile error on a 'scratch' linux distro

From: Hin-Tak Leung <hin-tak.leung_at_cimr.cam.ac.uk>
Date: Fri, 22 Jun 2007 11:40:17 +0100

Don't do that - if you are using gcc 4.x, you should be using gfortran 4.x, rather than g77 3.x...

Dan Bolser wrote:
> Here are the details...
>
> uname -a
> Linux yellow 2.6.16.1.i686.1 #23 SMP Mon Aug 28 15:36:14 CEST 2006
> i686 GNU/Linux
>
> gcc --version
> gcc (GCC) 4.2.0
>
> g77 --version
> GNU Fortran (GCC) 3.4.4

<snipped>
> -L/arch/i686/usr/lib/gcc/i686-pc-linux-gnu/3.4.4
> -L/arch/i686/usr/lib/gcc -L/arch/i686/usr/lib -lg2c -lm -lgcc_s
> ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a
> -lreadline -ldl -lm -liconv
> complex.o: In function `z_logbase':
> /tmp/R-2.5.0/src/main/complex.c:450: undefined reference to `__divdc3'
> complex.o: In function `z_atan2':
> /tmp/R-2.5.0/src/main/complex.c:544: undefined reference to `__divdc3'
> complex.o: In function `complex_binary':
> /tmp/R-2.5.0/src/main/complex.c:257: undefined reference to `__divdc3'
> /tmp/R-2.5.0/src/main/complex.c:245: undefined reference to `__muldc3'
> collect2: ld returned 1 exit status
<snipped>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 22 Jun 2007 - 11:15:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Jun 2007 - 11:35:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.