From owner-freebsd-current@freebsd.org Tue May 31 16:21:17 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DF82B56BFE for ; Tue, 31 May 2016 16:21:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E54DF1C4E; Tue, 31 May 2016 16:21:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::3cbe:aea7:5de8:a7e7] (unknown [IPv6:2001:7b8:3a7:0:3cbe:aea7:5de8:a7e7]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 6138839D47; Tue, 31 May 2016 18:21:13 +0200 (CEST) Subject: Re: Recent seems to have broken toolchain Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_273B5466-BDC6-42C6-8289-EECADF00296E"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: Date: Tue, 31 May 2016 18:21:06 +0200 Cc: Steve Kargl , FreeBSD Current Message-Id: <68FA9A9C-241A-4315-8DED-28359368B8A4@FreeBSD.org> References: <20160529022702.GA57282@troutmask.apl.washington.edu> <1EF864CF-12E8-4A48-B6E9-317D438B7B7C@FreeBSD.org> <20160530195116.GA93546@troutmask.apl.washington.edu> To: Ed Maste X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Tue, 31 May 2016 16:21:17 -0000 --Apple-Mail=_273B5466-BDC6-42C6-8289-EECADF00296E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 31 May 2016, at 16:25, Ed Maste wrote: >=20 > On 30 May 2016 at 15:51, Steve Kargl = wrote: >>=20 >> It happens with both /usr/bin/ld and /usr/local/bin/ld. I remove the >> binutils port and still had the issue. I tried reverting recent = changes >> to elftoolchain/libelftc, the resulting tree would not build. >=20 > The elftoolchain changes are a good candidate to check, although they > should have no impact at all on the linker. >=20 > What error did you encounter when trying to build with them reverted? =46rom Steve's initial mail: > 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. Maybe elftoolchain's ar does something different? Assuming the .a files are built with the system ar, of course. -Dimitry --Apple-Mail=_273B5466-BDC6-42C6-8289-EECADF00296E 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 iEYEARECAAYFAldNufkACgkQsF6jCi4glqMj+wCg214HbfSXhBY0FRdfGEhcHWVO 0SEAoJj5Jptc279Dz0VKzN8hSac8V4UF =8hAj -----END PGP SIGNATURE----- --Apple-Mail=_273B5466-BDC6-42C6-8289-EECADF00296E--