Compiler Problems?

Steve Kargl sgk at troutmask.apl.washington.edu
Sat Sep 15 22:17:38 PDT 2007


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


More information about the freebsd-current mailing list