From owner-freebsd-current Sat Nov 2 13:35: 6 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 815B537B401 for ; Sat, 2 Nov 2002 13:35:04 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22E3D43E3B for ; Sat, 2 Nov 2002 13:35:04 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.5) with ESMTP id gA2LZ3eZ029791; Sat, 2 Nov 2002 13:35:03 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id gA2LZ3sL029790; Sat, 2 Nov 2002 13:35:03 -0800 (PST) Date: Sat, 2 Nov 2002 13:35:03 -0800 From: Steve Kargl To: Mark Murray Cc: freebsd-current@FreeBSD.ORG Subject: Re: __sF Message-ID: <20021102213503.GA29586@troutmask.apl.washington.edu> References: <20021102192432.GC28971@troutmask.apl.washington.edu> <200211022042.gA2KgZd0086562@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211022042.gA2KgZd0086562@grimreaper.grondar.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Nov 02, 2002 at 08:42:35PM +0000, Mark Murray wrote: > > > By the time __sF is mainstream, I guess the vendor will have adapted > > > their product to match. Win, win. > > > > > > > No, it does not just work. The NAG f95 compiler generates a > > C file. The C file is compiled by gcc. > > How about "much effort"? there _has_ to be some kind of way to > specify which C library to use. > The only work-around I know is documented in (watch the line wrap) http://www.freebsd.org/cgi/getmsg.cgi?fetch=1755928+1759974+/usr/local/www\ /db/text/2002/freebsd-current/20021013.freebsd-current To recap, I can do f95 -c hello.f90 gcc -v -o hello -nostdlib \ /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o \ /usr/local/lib/NAGWare/quickfit.o hello.o /usr/local/lib/NAGWare/libf96.so\ -lm \ /usr/home/karg/tmp/minpack/lib/libc.so \ /usr/lib/crtend.o /usr/lib/crtn.o But, the 2nd and 6th lines in the gcc command use the crt* files from freebsd-current. The math library, -lm, is also from freebsd-current. /usr/lib/compat does contains neither a 4.x math library nor the crt* files. The libc.so in the above is a symlink kargl[274] ldd hello hello: libf96.so.1 => /usr/local/lib/NAGWare/libf96.so.1 (0x2806b000) libm.so.2 => /usr/lib/libm.so.2 (0x2810b000) libc.so.4 => /usr/lib/compat/libc.so.4 (0x28129000) -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message