From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16036 invoked by alias); 9 Jun 2006 08:42:38 -0000 Received: (qmail 15946 invoked by uid 22791); 9 Jun 2006 08:42:36 -0000 X-Spam-Check-By: sourceware.org Received: from ppsw-7.csi.cam.ac.uk (HELO ppsw-7.csi.cam.ac.uk) (131.111.8.137) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Jun 2006 08:42:33 +0000 Received: from server1.mrc-lmb.cam.ac.uk ([131.111.85.23]:37343) by ppsw-7.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtp id 1FocZB-00051y-Nv (Exim 4.54) for gcc-help@gcc.gnu.org (return-path ); Fri, 09 Jun 2006 09:42:05 +0100 Received: from alf1.lmb.internal ([10.1.0.1]) by server1.mrc-lmb.cam.ac.uk with esmtp (Exim 4.10) id 1FocZA-0000FH-00 for gcc-help@gcc.gnu.org; Fri, 09 Jun 2006 09:42:04 +0100 Date: Fri, 09 Jun 2006 08:42:00 -0000 From: Harry Powell To: gcc-help@gcc.gnu.org Subject: linking problem with gfortran 4.2.0 In-Reply-To: <4782372.post@talk.nabble.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg00081.txt.bz2 Hi Sorry if this has been answered elsewhere, but I can't find an obvious reference to it. If this requires an RTFM, could you give me a clue where in TFM? I found a reference to __gfortran_filename, __gfortran_ioparm, & __gfortran_line in a discussion on threads but this didn't give an obvious reason why I was suddenly encountering this error. Note that the _only_ difference in my two builds is the compiler. All libraries, flags, etc are identical (so it may just mean that I need to add another library - but which one?). I have been trying to build my code on an Intel iMac - with gfortran 4.0.3 compilation & linking goes okay and the executable is usable (though there are some unwanted features introduced by small bugs in the compiler, which I believe may have been addressed in newer versions). With gfortran 4.2.0 I get the following error on linking (in both cases I use the command "gfortran" for the linking, but this seems to explicitly invoke odcctools in 4.2.0); /sw/lib/odcctools/bin/ld: Undefined symbols: __gfortran_filename __gfortran_ioparm __gfortran_line collect2: ld returned 1 exit status make[2]: *** [ipmosflm] Error 1 make[1]: *** [all] Error 2 make: *** [all] Error 2 The gfortran 4.2.0 was installed from the "unstable" branch of fink (gcc4, 2:4.1.999-20060527). ************************************************************** Compiler/linker details: mosflm> /usr/local/bin/gfortran -v Using built-in specs. Target: i386-apple-darwin8.5.3 Configured with: ../gcc-4.0.3/configure --enable-languages=fortran Thread model: posix gcc version 4.0.3 mosflm> /sw/bin/gfortran -v Using built-in specs. Target: i386-apple-darwin8 Configured with: ../gcc-4.2-20060527/configure --prefix=/sw --prefix=/sw/lib/gcc4 --disable-multilib --enable-languages=c,c++,fortran,objc,java --infodir=/sw/lib/gcc4/share/info --with-gmp=/sw --with-included-gettext --host=i386-apple-darwin8 --with-as=/sw/lib/odcctools/bin/as --with-ld=/sw/lib/odcctools/bin/ld --with-nm=/sw/lib/odcctools/bin/nm Thread model: posix gcc version 4.2.0 20060527 (experimental) mosflm> /sw/lib/odcctools/bin/ld -v Apple Computer, Inc. version odcctools-590.36od13 ************************************************************** I tried to do "make bootstrap" with gcc 4.1.1 to try that version, but the build of the compiler failed (so that's another problem. ho hum...) Harry -- Dr Harry Powell, MRC Laboratory of Molecular Biology, MRC Centre, Hills Road, Cambridge, CB2 2QH