Date: Mon, 30 May 2016 21:29:40 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: freebsd-current@freebsd.org Subject: Re: Recent seems to have broken toolchain Message-ID: <1EF864CF-12E8-4A48-B6E9-317D438B7B7C@FreeBSD.org> In-Reply-To: <20160529022702.GA57282@troutmask.apl.washington.edu> References: <20160529022702.GA57282@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_51DFDA6E-D0F0-44D4-9795-BA79C109B931 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 29 May 2016, at 04:27, Steve Kargl <sgk@troutmask.apl.washington.edu> = wrote: >=20 > I have a Fortran application that has built forever on = FreeBSD-current; > that is, until recently. It now dies with the following error: >=20 > gfortran48 -O2 -pipe -march=3Dnative -mtune=3Dnative -static = -funroll-loops \ > --param max-unroll-times=3D4 -ftree-vectorize -Wall\ > -rpath /usr/local/lib/gcc48 -I/home/kargl/modules -o acolor = acolor.f90 \ > globalm.o saxm.o -L/home/kargl/lib -L. -L/usr/local/lib -L. -ltgt = -loa \ > -L/home/kargl/lib -L. -L/usr/local/lib -lm90 -llapack -lblas > ./liboa.a(pointm.o): In function `__pointm_MOD_l2norm2': > pointm.f90:(.text+0x490): multiple definition of = `__pointm_MOD_l2norm2' > /home/kargl/lib/libtgt.a(pointm.o):pointm.f90:(.text+0x0): first = defined here >=20 > Yes, pointm.o is in both libtgt.a and liboa.a. In the past, during > linking, the symbols are resolved from the first of -ltgt or -loa > depending on the order on the command line. If you run the above command line with -v, what linker does it use? I suspect this may be something caused by a newer binutils port, or even by a newer gfortran. If this is using /usr/local/bin/ld, you might want to try downgrading your binutils. -Dimitry --Apple-Mail=_51DFDA6E-D0F0-44D4-9795-BA79C109B931 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAldMlKwACgkQsF6jCi4glqM1cgCgkahSMxz4HINQWbM5EBVd1cPy RKoAn0zE7cQvCLL1m4+trlA7Dugbu+Iu =5QU7 -----END PGP SIGNATURE----- --Apple-Mail=_51DFDA6E-D0F0-44D4-9795-BA79C109B931--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1EF864CF-12E8-4A48-B6E9-317D438B7B7C>