Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2017 14:44:11 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>, FreeBSD Current <current@freebsd.org>
Subject:   Re: buildkernel broken for META_MODE
Message-ID:  <8a4e0cd6-c494-3222-f166-bc424d6d2873@FreeBSD.org>
In-Reply-To: <37722.1492551184@kaos.jnpr.net>
References:  <D39E557A-D7B4-4285-95D9-9FD8F0D4F335@gmail.com> <d1700f26-b086-aefb-8f86-025a7481304c@FreeBSD.org> <11023f9a-f057-4306-6d27-69194395de58@FreeBSD.org> <37722.1492551184@kaos.jnpr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--jwqQOILEGx3liAivGtCPctceVE2DMldj3
Content-Type: multipart/mixed; boundary="5PfUMkC6gFnOCa3HsfMxX6xs3QJJRkGpc";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: "Simon J. Gerraty" <sjg@juniper.net>
Cc: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>,
 FreeBSD Current <current@freebsd.org>
Message-ID: <8a4e0cd6-c494-3222-f166-bc424d6d2873@FreeBSD.org>
Subject: Re: buildkernel broken for META_MODE
References: <D39E557A-D7B4-4285-95D9-9FD8F0D4F335@gmail.com>
 <d1700f26-b086-aefb-8f86-025a7481304c@FreeBSD.org>
 <11023f9a-f057-4306-6d27-69194395de58@FreeBSD.org>
 <37722.1492551184@kaos.jnpr.net>
In-Reply-To: <37722.1492551184@kaos.jnpr.net>

--5PfUMkC6gFnOCa3HsfMxX6xs3QJJRkGpc
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 4/18/2017 2:33 PM, Simon J. Gerraty wrote:
> Bryan Drewery <bdrewery@freebsd.org> wrote:
>> Aha /usr/obj/usr/obj.
>>
>> That was in Renato's report as well.
>>
>> The bug is WITH_AUTO_OBJ. I just confirmed that. A bunch of errors occ=
ur
>> when doing the first build and the opt_*.h files are not generated in
>> the "proper" place by config(8).
>>
>> WITH_AUTO_OBJ is not really workable yet in buildworld/buildkernel. I
>> have patches that I will commit soon to add support for them (meaning =
to
>> work as it all does not but without a 'make obj' tree walk).
>=20
> What is the issue above? diff?

I don't know what the issue is with buildkernel specifically, I never
looked into it. Buildworld had other issues like rescue/rescue not being
AUTO_OBJ safe. That's fixed. I forget the details of buildworld as well.
One of the simpler changes is to remove the 'make obj' treewalk and
prefer .OBJDIR/OBJTOP over other ${CANONICALOBJDIR} ${OBJTREE} type
hacks. My patches are quite mangled with the idea of moving to
/usr/obj/CURDIR/TARGET.TARGET_ARCH/RELDIR and I need to split it all up
still.

>=20
> FWIW the latest version of auto.obj.mk deals with __objdir=3Dobj which =
is
> a corner case compared to any use of MAKEOJDIRPREFIX etc.
>=20

It does not fix the issues.

> --------------------------------------------------------------
>>>> stage 2.2: rebuilding the object tree
> --------------------------------------------------------------
> cd /usr/obj/root/git/freebsd/sys/GENERIC; COMPILER_VERSION=3D40000  COM=
PILER_FEATURES=3Dc++11  COMPILER_TYPE=3Dclang  COMPILER_FREEBSD_VERSION=3D=
1200006 MAKEOBJDIRPREFIX=3D/usr/obj  MACHINE_ARCH=3Damd64  MACHINE=3Damd6=
4  CPUTYPE=3D BUILD_TOOLS_META=3D.NOMETA GROFF_BIN_PATH=3D/usr/obj/root/g=
it/freebsd/tmp/legacy/usr/bin  GROFF_FONT_PATH
> =3D/usr/obj/root/git/freebsd/tmp/legacy/usr/share/groff_font  GROFF_TMA=
C_PATH=3D/usr/obj/root/git/freebsd/tmp/legacy/usr/share/tmac CC=3D"/usr/l=
ocal/bin/ccache cc -target x86_64-unknown-freebsd12.0 --sysroot=3D/usr/ob=
j/root/git/freebsd/tmp -B/usr/obj/root/git/freebsd/tmp/usr/bin" CXX=3D"/u=
sr/local/bin/ccache c++  -target x86_
> 64-unknown-freebsd12.0 --sysroot=3D/usr/obj/root/git/freebsd/tmp -B/usr=
/obj/root/git/freebsd/tmp/usr/bin"  CPP=3D"cpp -target x86_64-unknown-fre=
ebsd12.0 --sysroot=3D/usr/obj/root/git/freebsd/tmp -B/usr/obj/root/git/fr=
eebsd/tmp/usr/bin"  AS=3D"as" AR=3D"ar" LD=3D"ld" LLVM_LINK=3D""  NM=3Dnm=
 OBJCOPY=3D"objcopy"  RANLIB=3Dranlib STRINGS=3D
>  SIZE=3D"size"  INSTALL=3D"sh /root/git/freebsd/tools/install.sh"  PATH=
=3D/usr/obj/root/git/freebsd/tmp/legacy/usr/sbin:/usr/obj/root/git/freebs=
d/tmp/legacy/usr/bin:/usr/obj/root/git/freebsd/tmp/legacy/bin:/usr/obj/ro=
ot/git/freebsd/tmp/usr/sbin:/usr/obj/root/git/freebsd/tmp/usr/bin:/sbin:/=
bin:/usr/sbin:/usr/bin make  -j 1
> 5 -D NO_FILEMON -d M -J 15,16 -m /root/git/freebsd/share/mk  KERNEL=3Dk=
ernel obj
> [Creating objdir /usr/obj/usr/obj/root/git/freebsd/sys/GENERIC...]
Wrong^

Note we have 'cd /usr/obj/....' and 'MAKEOBJDIRPREFIX=3D/usr/obj' in
there, so we get a nested /usr/obj/.CURDIR problem of /usr/obj/usr/obj.


> grep: opt_md.h: No such file or directory
> grep: opt_ddb.h: No such file or directory
> grep: opt_kdtrace.h: No such file or directory
> grep: opt_hwpmc_hooks.h: No such file or directory
Wrong^


I will look into this as part of my larger patch, but it's likely due to
the first bug.



--=20
Regards,
Bryan Drewery


--5PfUMkC6gFnOCa3HsfMxX6xs3QJJRkGpc--

--jwqQOILEGx3liAivGtCPctceVE2DMldj3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJY9oirAAoJEDXXcbtuRpfP7SAIAOC6QLJOI90X0s6gycdARqfz
jLUfZlnh4V9xHOykAb3Yil38RXf7PRIlFRCMFYy3DL7Lv/1dICq7EsrZ9UIILLhj
Clo9vFtomQowb1cwq64keg8k3w5+VKhuOREfsBtZffCAqvMUJZ9lTdffUFT8d6iZ
EoTLpOpScPx6IJ2OIo3ThmPNf1/j0qRYFJ0K1sYRNRmqcVQclSA9twmRhSHCtF8s
AlV1USvNx2WB+X2h0PVlQmI9/q+EylyP8xVxGPv04pTbJZv3CZzA7sH6tHzhfYGd
O9+AEFn1ruOExHTGRFrXBmYWl9tWTArrIb8xBK0acPeTyO/QA0eUHFPSkBnuWT8=
=E26g
-----END PGP SIGNATURE-----

--jwqQOILEGx3liAivGtCPctceVE2DMldj3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8a4e0cd6-c494-3222-f166-bc424d6d2873>