From owner-freebsd-toolchain@freebsd.org Mon Oct 15 18:25:56 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 1550410C41A3 for ; Mon, 15 Oct 2018 18:25:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B45137F59E for ; Mon, 15 Oct 2018 18:25:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 2780E10B429; Mon, 15 Oct 2018 14:25:53 -0400 (EDT) Subject: Re: powerpc64 example, base/binutils presence vs. devel/powerpc64-gcc build failure: "phase: build-depends" confused then gcc config aborts build To: Warner Losh References: <925D3E9A-4EF0-4B49-83D4-C9574170EB66@yahoo.com> <4b7cb935-7643-da6c-261a-d69e9f155c78@FreeBSD.org> Cc: Mark Millard , "freebsd-toolchain@FreeBSD.org" From: John Baldwin Message-ID: <27396a4d-7fe9-2540-dfd2-28ae75109e01@FreeBSD.org> Date: Mon, 15 Oct 2018 11:25:51 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 15 Oct 2018 14:25:54 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 18:25:56 -0000 On 10/15/18 11:06 AM, Warner Losh wrote: > > > On Mon, Oct 15, 2018, 10:20 AM John Baldwin > wrote: > > On 10/12/18 6:51 AM, Mark Millard wrote: > > The following is from attempting to build devel/powerpc-gcc > > via poudriere-devel on the powerpc64 system after having > > bootstrapped via (in part) base/binutils and the .txz > > produced on the host (amd64). > > > > Looks like having both: > > > > /usr/bin/powerpc64-unknown-freebsd12.0-* > > and: > > /usr/local/bin/powerpc64-unknown-freebsd12.0-* > > > > in a powerpc64 environment confuses "phase: build-depends" > > in poudriere for the devel/powerpc64-gcc build: > > Ah, I could see that.  I had kept the longer binary names with the full tuple > since the original base/binutils had them, but I've considered stripping them > as we only really need /usr/bin/as, etc. for the base system.  I hadn't gotten > to the point of trying to build any ports with base/* as I'm still trying to > just do a buildworld (and running poudriere in a qemu image of mips64 would > be very unpleasant).  I think probably base/binutils just needs to drop the > names with a full tuple if possible. > > > Having symlinks to the long names plays nicer with autoconf, of at least has in the past. Our build system doesn't care, though... I think it only plays nicer for the port. We've never had /usr/bin/x86_64-freebsd-ld linked to /usr/bin/ld in base, and base/binutils' role is to provide /usr/bin/as, /usr/bin/ld, etc. -- John Baldwin