Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2019 18:39:17 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Cameron Berkenpas <cam@neo-zeon.de>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: Building for ELFv2
Message-ID:  <FCDEBB26-32F4-47A1-AC0C-CDC90A1CD638@yahoo.com>
In-Reply-To: <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de>
References:  <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2019-Dec-28, at 15:28, Cameron Berkenpas <cam at neo-zeon.de> wrote:

> Hello,
>=20
> How can one build FreeBSD 13.0-CURRENT for ELFv2 support?
>=20
> I've installed xtoolchain-llvm90, and I run:
> CROSS_TOOLCHAIN=3Dllvm90 make buildenv
>=20
> =46rom here buildworld fails pretty early on with:
> /usr/src/sys/contrib/libnv/nvpair.c:33:10: fatal error: 'sys/cdefs.h' =
file not found
>=20
> I can add "-I/usr/include" and so on to /etc/src.conf to hack around =
this, it just goes a bit further and finds other headers missing.
>=20
> As far as I can tell, $SYSROOT =
(/usr/obj/usr/src/powerpc.powerpc64/tmp) isn't being properly setup =
properly which is resulting in missing headers.
>=20
> I've done some searching and haven't really found anything too =
helpful. But perhaps I just don't know what to look for.
>=20
> Thanks!
>=20

You may want to specify what type of context(s) you
can try to bootstrap into ELFv2 from. For example:
cross-build? self-hosted only? system version starting
from on the machine doing the build? gcc 4.2.1 based
starting point? single boot media vs. able to have
an old context produce separate/new boot media?
the amount of RAM and swap/page space? (You may be
able to come up with more things to identify that
might contribute to how to progress.)

I'm working towards updating, but I'll likely be
cross building and producing new media from a
bootable backup of the old media. (Helps avoid
potential live-update issues.) So what I end
up doing may well not match what you would do.

=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?FCDEBB26-32F4-47A1-AC0C-CDC90A1CD638>