Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2006 12:49:41 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-current@freebsd.org
Subject:   loader problem
Message-ID:  <20060505194941.GA20542@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
I have set WITHOUT_FORTRAN in /etc/make.conf and rebuilt/installed
a new world.  I've removed all Fortran files related to the base
system f77 (aka g77) from my system.

I've install gfortran as a Fortran compiler in /usr/local.

As root, I do
% cd /usr/ports/math/lapack
% setenv FC gfortran
% make

gfortran   -O2 -pipe -c lsame.f
cc -O2 -fno-strict-aliasing -pipe -march=opteron -march=opteron  -c etime_.c
gfortran   -O2 -pipe -c slamch.f
gfortran   -O2 -pipe -c second.f
gfortran   -O2 -pipe -c dlamch.f
gfortran   -O2 -pipe -c dsecnd.f
building static lapack library
ranlib liblapack.a
gfortran -fpic -DPIC -O2 -pipe -o lsame.So -c lsame.f
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=opteron -march=opteron  -c etime_.c -o etime_.So
gfortran -fpic -DPIC -O2 -pipe -o slamch.So -c slamch.f
gfortran -fpic -DPIC -O2 -pipe -o second.So -c second.f
gfortran -fpic -DPIC -O2 -pipe -o dlamch.So -c dlamch.f
gfortran -fpic -DPIC -O2 -pipe -o dsecnd.So -c dsecnd.f
building shared library liblapack.so.3
/usr/bin/ld: cannot find -lg2c
*** Error code 1

Stop in /usr/ports/math/lapack/work/LAPACK/SRC.
*** Error code 1

Why is /usr/bin/ld looking for libg2c, which was removed?
libg2c is f77's (aka g77's) runtime library.  How do I tell
ld to not include -lg2c?

-- 
Steve



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