From hin-tak.leung at cimr.cam.ac.uk  Fri Jun 22 12:40:17 2007
From: hin-tak.leung at cimr.cam.ac.uk (Hin-Tak Leung)
Date: Fri, 22 Jun 2007 11:40:17 +0100
Subject: [Rd] Compile error on a 'scratch' linux distro
In-Reply-To: <2c8757af0706220220t353c9673q12940fcaf6c34d76@mail.gmail.com>
References: <2c8757af0706220220t353c9673q12940fcaf6c34d76@mail.gmail.com>
Message-ID: <467BA711.3080802@cimr.cam.ac.uk>

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>



[Rd] Compile error on a 'scratch' linux distro
Hin-Tak Leung