Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2020 11:44:07 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Ed Maste <emaste@freebsd.org>, Justin Hibbits <chmeeedalf@gmail.com>, svn-src-head@freebsd.org
Subject:   Re: svn commit: r356379 - head/share/mk
Message-ID:  <8FEA0145-AF03-46EA-8AD7-E0B13C29965A@yahoo.com>
References:  <8FEA0145-AF03-46EA-8AD7-E0B13C29965A.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Justin Hibbits chmeeedalf at gmail.com  wrote on
Sun Jan 5 18:03:59 UTC 2020 :

> On Sun, 5 Jan 2020 12:21:53 -0500 Ed Maste <emaste at freebsd.org> =
wrote: > On Sun, 5 Jan 2020 at 11:59, Ed Maste <emaste at freebsd.org> =
wrote:=20
> > >=20
> > > Author: emaste=20
> > > Date: Sun Jan 5 16:59:24 2020=20
> > > New Revision: 356379=20
> > > URL: https://svnweb.freebsd.org/changeset/base/356379
> > >=20
> > > Log:=20
> > > src.opts.mk: disable BINUTILS_BOOTSTRAP on mips64*=20
> >=20
> > I should probably make this the case for all of mips* and sparc64.=20=

> > Using a decade-old binutils with a contemporary compiler (either =
Clang=20
> > or GCC) isn't likely to be a combination used by anyone else and =
it's=20
> > not going to be a good use of our time investigating and addressing=20=

> > any issues that arise.=20
> powerpc and powerpcspe still use in-tree binutils (or external =
binutils... but in-tree works well enough, until we start adding =
ifuncs), until such a time that lld is fully functional.=20

FYI:

I've tried the following combinations involving
devel/binutils@powerpc for 32-bit powerpc, either
the kernel crashed extremely early or the build
fails to complete.

system-clang and devel/binutils@powerpc (the crashing case)
devel/gcc9@powerpc and devel/binutils@powerpc (fails to build)

(These were cross builds.)

On the old 32-bit PowerMacs the crash is before
Apple's displayed material is replaced and it
gets back to Apple's prompt after the error
message.

The only combination that I've had success with
so far for 32-bit powerpc has been system-clang
for buildkernel with the in-tree-binutils used.

This may not matter much until ifuncs additions
are desired --or ever if lld becomes sufficient
first.

The build failure is for:

--- libc.so.7.full ---
/usr/local/bin/powerpc-unknown-freebsd13.0-ld: bss-plt forced due to =
/usr/obj/powerpcvtsc_xtoolchain-gcc/powerpc.powerpc/usr/src/powerpc.powerp=
c/tmp/usr/lib/crtbeginS.o
collect2: error: ld returned 1 exit status
*** [libc.so.7.full] Error code 1

As for the crashing case, looking at the kernel
produced show significant differences in where
ABS is used and some other differences. (I do
not claim anything like a complete comparison.)

Without work on one or both sides,
devel/binutils@powerpc does not seem to be
an alternative.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8FEA0145-AF03-46EA-8AD7-E0B13C29965A>