Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2017 12:41:33 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
Cc:        FreeBSD Current <current@FreeBSD.ORG>
Subject:   Re: buildkernel broken for META_MODE
Message-ID:  <11023f9a-f057-4306-6d27-69194395de58@FreeBSD.org>
In-Reply-To: <d1700f26-b086-aefb-8f86-025a7481304c@FreeBSD.org>
References:  <D39E557A-D7B4-4285-95D9-9FD8F0D4F335@gmail.com> <d1700f26-b086-aefb-8f86-025a7481304c@FreeBSD.org>

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

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

On 4/10/2017 11:14 AM, Bryan Drewery wrote:
> On 4/7/2017 12:13 PM, Ngie Cooper (yaneurabeya) wrote:
>> Hi,
>> 	I ran into this error when trying to run a meta mode build (for the f=
irst time). It might be related to the recent assym* ordering changes.
>> Thanks!
>> -Ngie
>>
>> $ cat /etc/src-env.conf
>> WITH_AUTO_OBJ=3D  yes

Oh I missed this part^

>> WITH_META_MODE=3D yes
>> UPDATE_DEPENDFILE=3D      yes

By the way UPDATE_DEPENDFILE is not really a user variable and setting
it may break things.

>> $ pwd
>> /usr/src
>> $ svnversion
>> 316603M
>> $ svn st | grep -v \?
>> M       usr.bin/grep/tests/Makefile
>> $ env SRCCONF=3D/dev/null NO_FILEMON=3D1 script ~/bk.ts make buildkern=
el -j3
>> Script started on Fri Apr  7 11:52:38 2017
>> Command: time make buildkernel -j3
>> --- buildkernel ---
>> make[1]: "/usr/src/Makefile.inc1" line 146: SYSTEM_COMPILER: Determine=
d that CC=3Dcc matches the source tree.  Not bootstrapping a cross-compil=
er.
>> --- buildkernel ---
>> --------------------------------------------------------------
>>>>> Kernel build for GENERIC started on Fri Apr  7 11:52:39 PDT 2017
>> --------------------------------------------------------------
>> =3D=3D=3D> GENERIC
>> mkdir -p /usr/obj/usr/src/sys
>> --------------------------------------------------------------
>>>>> stage 1: configuring the kernel
>> --------------------------------------------------------------
>> ...
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/acpi_quirks.h

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 occur
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).


>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/feeder_eq_gen.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/feeder_rate_gen.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/snd_fxdiv_gen.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/miidevs.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/pccarddevs.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/teken_state.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/usbdevs.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/vnode_if.h
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC/ia32_genassym.o
>> --- ia32_genassym.o ---
>> <built-in>:1:10: fatal error: 'opt_global.h' file not found
>> #include "opt_global.h"
>>          ^~~~~~~~~~~~~~
>> 1 error generated.
>> *** [ia32_genassym.o] Error code 1
>>
>> make[2]: stopped in /usr/obj/usr/src/sys/GENERIC
>> .ERROR_TARGET=3D'ia32_genassym.o'
>> .ERROR_META_FILE=3D'/usr/obj/usr/obj/usr/src/sys/GENERIC/ia32_genassym=
=2Eo.meta'
>>
>=20
> It was previously reported here too
> https://lists.freebsd.org/pipermail/freebsd-current/2016-June/061946.ht=
ml.
>  It's a race.  I had forgotten about it but will look at it again.
>=20

--=20
Regards,
Bryan Drewery


--xX2ampjkK0j8HgkKXpWVpadwhdwAG1Oj1--

--8Rc88kPOhUVQedJtxK8NuLfkIS8gO99NK
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

iQEcBAEBAgAGBQJY9mvxAAoJEDXXcbtuRpfP9pgH/0Ebq6NtIdYpLOYPGWXmF9a4
AuzceZD4tqxJQvBFj07SF9InVV1MVnDCuTGNbgDZ1FdqPA/vV6bN0FhOYVXtP5w6
P3QKWiA4YTczWXNHippkpksscXaqG94FJGKbKFZdO8xG9H/ZTYP1jPpaewGD+VXm
LgSnOmF+AfMGNRlskOKeUzPx6CPj1UMZCeFs2F7+CGoT8pD2fw5XIKW6eiMPqXWe
bsN7ndvzXXAMpqc0cQDDUp01Z+d7NiF4vCEXXHDMssr0vNFA2NU8WqRpHBj1nA3N
W6Dprz2R+bvAAW8WPDvx2vK2o77TYa3e/2n7DOqhzAIfWjsvGnfkuzBo+xiD2Xw=
=yVrR
-----END PGP SIGNATURE-----

--8Rc88kPOhUVQedJtxK8NuLfkIS8gO99NK--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11023f9a-f057-4306-6d27-69194395de58>