Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2007 22:17:05 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        "Thomas D. Dean" <tomdean@speakeasy.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Compiler Problems?
Message-ID:  <20070916051705.GA7308@troutmask.apl.washington.edu>
In-Reply-To: <200709160456.l8G4udLl023614@dv6000.tddhome>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070916051705.GA7308>