From owner-freebsd-questions@FreeBSD.ORG Wed Apr 6 01:20:57 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 736D3106564A for ; Wed, 6 Apr 2011 01:20:57 +0000 (UTC) (envelope-from eduardo.viruena@esfm.ipn.mx) Received: from mail.esfm.ipn.mx (mail.esfm.ipn.mx [148.204.102.61]) by mx1.freebsd.org (Postfix) with ESMTP id 495158FC15 for ; Wed, 6 Apr 2011 01:20:57 +0000 (UTC) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by mail.esfm.ipn.mx (Postfix) with ESMTP id 0FC3D131260; Tue, 5 Apr 2011 20:20:58 -0500 (CDT) X-Virus-Scanned: amavisd-new at esfm.ipn.mx Received: from mail.esfm.ipn.mx ([127.0.0.1]) by Gina.esfm.ipn.mx (mail.esfm.ipn.mx [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 83-XN+1S1yGu; Tue, 5 Apr 2011 20:20:56 -0500 (CDT) Received: by mail.esfm.ipn.mx (Postfix, from userid 80) id 98FAD131262; Tue, 5 Apr 2011 20:20:56 -0500 (CDT) Received: from 148.204.17.4 (SquirrelMail authenticated user mrspock) by mail.esfm.ipn.mx with HTTP; Tue, 5 Apr 2011 20:20:56 -0500 Message-ID: <1af86df102bbfdbb6a1f46516de89bb8.squirrel@mail.esfm.ipn.mx> In-Reply-To: References: <34c8bb36e9d888ef838e1841fcda0cd0.squirrel@mail.esfm.ipn.mx> Date: Tue, 5 Apr 2011 20:20:56 -0500 From: "Eduardo Viruena Silva" To: "Mehmet Erol Sanliturk" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org Subject: Re: f77 in FreeBSD 8.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: eduardo.viruena@esfm.ipn.mx List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2011 01:20:57 -0000 On Tue, April 5, 2011 7:44 pm, Mehmet Erol Sanliturk wrote: > On Tue, Apr 5, 2011 at 7:46 PM, Eduardo Viruena Silva < > eduardo.viruena@esfm.ipn.mx> wrote: > >> >> Hello, FreeBSD gurus, >> >> I have noticed that the Fortran Compiler f77 that used to be >> in freebsd sources is not longer there in version 8.2-stable, >> now it's in the obsolete software list. >> >> Nevertheless, it has some directories in the sources: >> >> /usr/src/gnu/usr.bin/cc/f77 >> /usr/src/gnu/usr.bin/cc/f77/Makefile >> /usr/src/gnu/usr.bin/cc/f771 >> /usr/src/gnu/usr.bin/cc/f771/Makefile >> /usr/src/gnu/usr.bin/cc/f77doc >> /usr/src/gnu/usr.bin/cc/f77doc/Makefile >> >> >> How can I install that compiler? >> >> The one in the ports does not work as fine as the the one in >> the sources. >> >> >> Thanks in advace, >> >> Eduardo. >> >> PS. Please answer to my e-mail address, I'm not subscribed to >> the list. >> >> >> > > My answer is NOT related directly to your question , please forgive me . > > > I am using G95 ( from www.g95.org which is in the packages of FreeBSD ) in > Windows and Linux , and I like it very much because it generates very good > code , especially if the stack traces are enabled in command line , on run > time errors it is giving nearly exact source line of the error point with > a > list of called subroutines chain . Since the G95 is generated from the > same > sources for the FreeBSD , I think there is no difference between platform > related compilers . > > Another point is ( if your source files have .FOR extension , it is using > Fortran 77 , if it is .F90 , it is using the Fortran 95 ( be careful about > cases of letters ) . For such points , please read its manual . If any > Fortran 77 source file has .F90 extension , it will produce a lot of > errors > because Fortran 77 is fixed line format based , Fortran 90 or 95 is free > line format based . > > Thank you very much . > > > Mehmet Erol Sanliturk > Thanks Mehmet. I'd better start promoting the use of g95. Some people in the list say that f77 users must move on in their lives and leave f77 behind. ==== Something curious is happening, g95 does not seem to find its library libg95. I have to write explicitly: g95 foo.for -o foo -L/usr/local/lib to compile the program foo. /etc/rc.d/ldconfig restart does not fix the problem. Any ideas? Thanks for answering, Eduardo.