Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2018 09:00:49 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        Mark Millard <marklmi26-fbsd@yahoo.com>, delphij@freebsd.org
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: svn commit: r469449 - in head: Mk base/binutils base/gcc base/gcc/files
Message-ID:  <1682545.a7oihbGy4G@ralph.baldwin.cx>
In-Reply-To: <7DA47BC9-CA07-4C34-B4C6-78B0081A7E19@yahoo.com>
References:  <7DA47BC9-CA07-4C34-B4C6-78B0081A7E19@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1682545.a7oihbGy4G>