From owner-freebsd-toolchain@freebsd.org Sun Apr 8 00:01:35 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C224F90A08 for ; Sun, 8 Apr 2018 00:01:35 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic305-4.consmr.mail.bf2.yahoo.com (sonic305-4.consmr.mail.bf2.yahoo.com [74.6.133.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E31F1764A2 for ; Sun, 8 Apr 2018 00:01:34 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: jRuERlIVM1mQQKnqm5lRw8wJb_Yh2Wa.pijnMyn9LHDI.kTOJCgzHHGYZFRuDgQ ZcdebkcP7paGzdiBsC1B1.5Kl792RA9NAHOto3OteWNeXqOmyGMxIuZUgJqIHHD6wLdgq9aQtPBM smrHkyet43EqvSWDpadIPLsN295bR12rvbeofmvx7RN7wtGaRL.aU6BfRKnIvcQNx3VaXK8ZP4.J 7JCj4ECaq9eZAdbrknm3VflrYNWGV.Gq7B5zW0PjRlNh_lNa7XqL5LfB6Zje2.FLWpxTvg2WV2r8 5GSaAtZUPFjvEA50ZRvb0yQ.rOOI0VXX8ue91Zu8e.zhUbaORhFclGsfuUvd4Z5rY8LFjabrYjoi lSNO7jmspgD81SBgwziikcqXelbvkxeb3lvFqd6ki439iXT0UfUBOMUGkRgzbvdxyUYx6WWgS8x5 eE6GxO_aa3sfasVvxKtlrKPYdOwTTNuCCOYSnGsbxS52mNNFc.QG9mrtyfMeeTNgBwSk4bug0g9o cHxeGScX3iwS0rMqMOoYKx4S_e0YnQZ_eSB3f Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Apr 2018 00:01:33 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp422.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0d21aa43699c708bbe193f9bd96b4e9c; Sun, 08 Apr 2018 00:01:33 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: amd64-binutils file name structure for utils vs. for powerpc64-binutils and aarch64-binutils From: Mark Millard In-Reply-To: <20180407193742.1c6cd33d@kan> Date: Sat, 7 Apr 2018 17:01:30 -0700 Cc: freebsd-toolchain@freebsd.org, John Baldwin Content-Transfer-Encoding: 7bit Message-Id: <4410009D-E857-4BB0-B865-9294D24187F5@yahoo.com> References: <20180407184317.3ab301e2@kan> <20180407193742.1c6cd33d@kan> To: Alexander Kabaev X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2018 00:01:35 -0000 On 2018-Apr-7, at 4:37 PM, Alexander Kabaev wrote: > On Sat, 7 Apr 2018 18:43:17 -0400 > Alexander Kabaev wrote: > > Come to think of it, I am not sure I understand the problem. > amd64-binutils installs "proper" x86_64-freebsd-prefixed binaries. Did > you expect amd64-freebsd-* ? My understanding was that cross-build tools are now supposed to have the -unknown and the os version (12.0 here) even when the cross-build is targeting the same environment as the host environment. In other words: that it is not supposed to be the same as plain binutils for the host but as-if it was from a different architecture. But I was checking my understanding. In part because it used to be that, for example, on amd64 the aarch64-binutils also omitted the -unknown and 12.0 but now has them. I just had to update my environment's references to such for that. (This was not a self-hosted cross-build context and it changed.) Also, there is a recent check-in, -r466699 , for ports that, in part, says: Log: Fix two more issues with r465416. - Force build of a cross-compiler by defining CROSS_DIRECTORY_STRUCTURE in CFLAGS even if the build host matches the build target. This fixes such a cross compiler to not include /usr/local/lib in its default library path (e.g. amd64-gcc when built on amd64). But that was for powerpc64-gcc, not powerpc64-binutils (for example). I do not know for sure if similar points should also apply to *-binutils ports. So, again, I was checking. (I might have just got involved between already-made and other pending updates for all I know.) -- Alexander Kabaev === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)