From owner-freebsd-current@FreeBSD.ORG Sun Sep 16 05:17:38 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 59F8716A418 for ; Sun, 16 Sep 2007 05:17:38 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 306FB13C442 for ; Sun, 16 Sep 2007 05:17:38 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.1/8.14.1) with ESMTP id l8G5H5S6007329; Sat, 15 Sep 2007 22:17:06 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.1/8.14.1/Submit) id l8G5H5qQ007328; Sat, 15 Sep 2007 22:17:05 -0700 (PDT) (envelope-from sgk) Date: Sat, 15 Sep 2007 22:17:05 -0700 From: Steve Kargl To: "Thomas D. Dean" Message-ID: <20070916051705.GA7308@troutmask.apl.washington.edu> 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> <200709160456.l8G4udLl023614@dv6000.tddhome> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200709160456.l8G4udLl023614@dv6000.tddhome> User-Agent: Mutt/1.4.2.3i 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 05:17:38 -0000 On Sat, Sep 15, 2007 at 09:56:39PM -0700, Thomas D. Dean wrote: > # 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! Yep. The LAPACK port maintainer needs to add appropriate targets for *.po and *.So. You're probably picking up the version from the shared library. -- Steve