From owner-freebsd-current@FreeBSD.ORG Sun Sep 16 04:56:43 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B563816A41A for ; Sun, 16 Sep 2007 04:56:43 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id 82E3D13C458 for ; Sun, 16 Sep 2007 04:56:41 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: (qmail 14066 invoked from network); 16 Sep 2007 04:56:41 -0000 Received: from dsl081-173-150.sea1.dsl.speakeasy.net (HELO dv6000.tddhome) ([64.81.173.150]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 16 Sep 2007 04:56:41 -0000 Received: from dv6000.tddhome (localhost [127.0.0.1]) by dv6000.tddhome (8.14.1/8.14.1) with ESMTP id l8G4ueBl023644; Sat, 15 Sep 2007 21:56:40 -0700 (PDT) (envelope-from tomdean@dv6000.tddhome) Received: (from tomdean@localhost) by dv6000.tddhome (8.14.1/8.14.1/Submit) id l8G4udLl023614; Sat, 15 Sep 2007 21:56:39 -0700 (PDT) (envelope-from tomdean) Date: Sat, 15 Sep 2007 21:56:39 -0700 (PDT) Message-Id: <200709160456.l8G4udLl023614@dv6000.tddhome> From: "Thomas D. Dean" To: sgk@troutmask.apl.washington.edu In-reply-to: <20070916020726.GB6447@troutmask.apl.washington.edu> (message from Steve Kargl on Sat, 15 Sep 2007 19:07:26 -0700) References: <200709152159.l8FLxfha008167@dv6000.tddhome> <20070915222422.GA4487@troutmask.apl.washington.edu> <200709152255.l8FMtMSD008381@dv6000.tddhome> <20070915231526.GA4788@troutmask.apl.washington.edu> <200709152339.l8FNdVK1008558@dv6000.tddhome> <20070915235852.GB4998@troutmask.apl.washington.edu> <200709160102.l8G12bAl001481@dv6000.tddhome> <20070916020726.GB6447@troutmask.apl.washington.edu> Cc: freebsd-current@freebsd.org Subject: Re: Compiler Problems? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2007 04:56:43 -0000 Aha! The problem may be due to optimization. http://www.netlib.org/lapack/faq.html#1.25 1.25) Problems compiling dlamch.f? The routine dlamch.f (and its dependent subroutines dlamc1, dlamc2, dlamc3, dlamc4, dlamc5) MUST be compiled without optimization. If you downloaded the entire lapack distribution this will be taken care of by the LAPACK/SRC/Makefile. However, if you downloaded a specific LAPACK routine plus dependencies, you need to take care that slamch.f (if you downloaded a single precision real or single precision complex routine) or dlamch.f (if you downloaded a double precision real or double precision complex routine) has been included. # cd /usr/ports/math/lapack # make clean # script 200709152133.build # make # grep -n lamc 200709152133.build 18:( cd INSTALL; make; ./testlsame; ./testslamch; ./testdlamch; ./testsecond; ./testdsecnd; cp lsame.f ../BLAS/SRC/; cp lsame.f ../SRC; cp slamch.f ../SRC/; cp dlamch.f ../SRC/; cp second.f ../SRC/; cp dsecnd.f ../SRC/; cp etime_.c ../SRC/ ) 22:gfortran42 -c slamch.f 23:gfortran42 -O -c slamchtst.f 24:gfortran42 -o testslamch slamch.o lsame.o slamchtst.o 25:gfortran42 -c dlamch.f 26:gfortran42 -O -c dlamchtst.f 27:gfortran42 -o testdlamch dlamch.o lsame.o dlamchtst.o 370:gfortran42 -O -c slamch.f 1013:gfortran42 -O -c dlamch.f 1664:gfortran42 -pg -O -o slamch.po -c slamch.f 2307:gfortran42 -pg -O -o dlamch.po -c dlamch.f 2958:gfortran42 -fpic -DPIC -O -o slamch.So -c slamch.f 3601:gfortran42 -fpic -DPIC -O -o dlamch.So -c dlamch.f slamch.f and dlamch.f are compiled three times. One time without optimizaton and two times WITH optimization!