From owner-freebsd-toolchain@freebsd.org Mon May 14 16:10:19 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 D7792DF7CFE for ; Mon, 14 May 2018 16:10:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from smtp.freebsd.org (unknown [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 88C4180AF7; Mon, 14 May 2018 16:10:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 5460D17E7D; Mon, 14 May 2018 16:10:19 +0000 (UTC) (envelope-from jhb@freebsd.org) From: John Baldwin To: Mark Millard , delphij@freebsd.org Cc: freebsd-toolchain@freebsd.org Subject: Re: svn commit: r469449 - in head: Mk base/binutils base/gcc base/gcc/files Date: Mon, 14 May 2018 09:00:49 -0700 Message-ID: <1682545.a7oihbGy4G@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <7DA47BC9-CA07-4C34-B4C6-78B0081A7E19@yahoo.com> References: <7DA47BC9-CA07-4C34-B4C6-78B0081A7E19@yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.26 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, 14 May 2018 16:10:20 -0000 On Saturday, May 12, 2018 10:38:20 PM Mark Millard wrote: > pkg-plist.mips seems to be missing any objcopy variant. (Is objcopy not needed?) > (Only this mips variant uses %%BUTARGET%% notation in the pkg-plist.* file.) > > pkg.plist.powerpc64 has 3 objcopy variants/places but 2 man1's. > > pkg.plist.sparc64 has 2 objcopy variants/places but one man1. > (no bin/sparc64-unknown-freebsd*-objcopy nor > man1/sparc64-unknown-freebsd*-objcopy.1.gz compared to powerpc64) > > pkg.plist.sparc64 is not using the *-unknown-freebsd* style of naming > at all. (Not limited to objcopy.) I'm guessing it was not updated when > base/binutils/Makefile got: > > BUTARGET= ${ARCH}-unknown-${OPSYS:tl}${OSREL} > > and base/gcc/Makefile got: > > GCC_TARGET= ${ARCH}-unknown-${OPSYS:tl}${OSREL} > > > > Details: > > # pwd > /usr/ports/base/binutils > > # grep objcopy pkg-plist.* > pkg-plist.powerpc64:bin/objcopy > pkg-plist.powerpc64:bin/powerpc64-unknown-freebsd12.0-objcopy > pkg-plist.powerpc64:powerpc64-unknown-freebsd12.0/bin/objcopy > pkg-plist.powerpc64:share/man/man1/objcopy.1.gz > pkg-plist.powerpc64:share/man/man1/powerpc64-unknown-freebsd12.0-objcopy.1.gz > pkg-plist.sparc64:bin/objcopy > pkg-plist.sparc64:share/man/man1/objcopy.1.gz > pkg-plist.sparc64:sparc64-freebsd/bin/objcopy > > # svnlite info /usr/ports/ | grep "Re[plv]" > Relative URL: ^/head > Repository Root: svn://svn.freebsd.org/ports > Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 > Revision: 469767 > Last Changed Rev: 469767 > > (I've never used/targeted mips or sparc64 but > I've targeted powerpc64 some of the time.) Yes, we are now using objcopy from elftoolchain and it seems that base/binutils was not updated when that happened. We should probably remove objcopy from the other plists. It would probably be best to use BUTARGET in the plist files. It would perhaps be really useful to start building base/binutils and base/gcc on a regular basis on platforms they have been ported to to detect regressions. At some point we are going to want to have package repositories with those available as well, but perhaps I can work with Xin Li to start building worlds via external toolchains which can then be used as CROSS_SYSROOTs to build pkg, base/binutils, and base/gcc in Jenkins. -- John Baldwin