Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 2014 07:18:26 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Stefan Esser <se@freebsd.org>
Cc:        "current@freebsd.org" <current@freebsd.org>, Trond.Endrestol@fagskolen.gjovik.no
Subject:   Re: buildworld fails (missing /usr/share/mk/src.opts.mk)
Message-ID:  <AADBE4D1-F3FB-4F54-B4FF-1B02D8397EF0@bsdimp.com>
In-Reply-To: <B33911D1-AFD8-491F-A59D-33C3E9DE1696@bsdimp.com>
References:  <5368B0C5.6040309@freebsd.org> <5368C675.1070700@freebsd.org> <alpine.BSF.2.00.1405061344040.27459@mail.fig.ol.no> <5368D7F1.4040009@freebsd.org> <B33911D1-AFD8-491F-A59D-33C3E9DE1696@bsdimp.com>

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

[-- Attachment #1 --]

On May 6, 2014, at 7:16 AM, Warner Losh <imp@bsdimp.com> wrote:

> 
> On May 6, 2014, at 6:39 AM, Stefan Esser <se@freebsd.org> wrote:
> 
>> Am 06.05.2014 13:44, schrieb Trond Endrestøl:
>>> On Tue, 6 May 2014 13:24+0200, Stefan Esser wrote:
>>>> Am 06.05.2014 11:52, schrieb Stefan Esser:
>>>>> Hi Warner,
>>>>> 
>>>>> as already reported by Jenkins, HEAD does not build.
>>>>> 
>>>>> Seems that this is caused by src.opts.mk missing in /usr/share/mk
>>>>> during the cleandir phase. I guess this is kind of a bootstrap
>>>>> issue - the definitions are looked up in the installed base, not
>>>>> in the src tree - but did not verify this assumption.
>>>>> 
>>>>> A work-around is to manually install src.opts.mk:
>>>>> 
>>>>> # make -C /usr/src/share/mk install
>>>>> 
>>>>> (which might deserve an UPDATING entry). Falling back on the file
>>>>> in the src directory might be a better solution ...
>>>>> 
>>>>> Regards, STefan
>>>> 
>>>> Following up to my earlier mail:
>>>> 
>>>> The diagnosis was wrong - the main Makefiles include src.opts.mk from
>>>> the source directory. But two sub-ordinate Makefiles missed to include
>>>> the new options file (sys/conf/kmod.mk and sys/modules/drm2/Makefile).
>>>> 
>>>> I committed a fix/work-around to stop the flood of tinderbox messages
>>>> (r265433).
>>> 
>>> tinderbox still complains about usr.bin/bmake/Makefile.inc.
>> 
>> Hmmm, I managed to buildworld -HEAD after this patch, but it is
>> possible, that I had src.opts.mk installed in /usr/share/mk when
>> I started the build.
>> 
>> (I later deleted it, to be sure that the version in the source
>> directory was found and used when building modules, which the
>> commit actually fixed.)
>> 
>> I guess the remaining problem is caused by
>> 
>> .include "src.opts.mk"
>> 
>> in line 3 of src/usr.bin/bmake/Makefile.inc
>> 
>> Changing this line to read ".include <src.opts.mk>" seems to fix
>> it on my system.
>> 
>> --- usr.bin/bmake/Makefile.inc~
>> +++ usr.bin/bmake/Makefile.inc
>> @@ -1,6 +1,6 @@
>> # $FreeBSD$
>> 
>> -.include "src.opts.mk"
>> +.include <src.opts.mk>
>> 
>> .if defined(.PARSEDIR)
>> # make sure this is available to unit-tests/Makefile
>> 
>> It is possible, that the build will still fail at a latter stage,
>> though (buildworld is still running).
>> 
>> I committed the above patch, since it gets buildworld through the
>> bmake subdirectory at least (r265436). If buildworld fails again,
>> then I'll commit any further missing fixes in one go. I'll know
>> in some 20 minutes.
> 
> What is your source system? This is absolutely the wrong change, and shouldn’t be necessary at all. These changes survived a universe run and a few build worlds on other systems.

<hit send too fast>

so I’d like to know how to recreate it, since I didn’t see this in any of my testing over the last two weeks...

> Warner


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTaOEiAAoJEGwc0Sh9sBEA/XUP/04G8Nbes2ABRaszgVtm/MfY
3NK+yCejbEZmo6SENJnrYmbS2KOotmKxq1ZJBDESH0mmynNaIplLUXhroVoqJ10I
WiedvKQezWU2CezpwUB77zTKw0oHaKTWr2zmcZXXeOystLS6HRyWxmB4Jxvgas1j
pg3NQha5lPZ6iksyDBR4wSZZgjwjBrHJV3wO1vmxUYFPo3EtH2bMHx2gKaMqkj7w
4sD9MY8vXEeKGbW2CkHKl97QPkdODeFLIAJDMiRlKGg5EBfcdgmxCLpUx6INVY+k
9UQDIfZwnH5POnF8q3U294Zm0hMReBUeMWVSc5XQWerAgyZ/GcwooD1zd3hZ/I98
20HHM7N4FWGIIc7b8DByG2tMOxcPeH4s+woQDwrWUV+rzV9fKuwMGvS19RlFDSdK
SMLnbs+hJFhNu7k2iTL/emTzLPges+cyx+VV/nCvWZCzvTn81Ct6WflX+mwHl6QP
GZUU9w5q7BoY+R1oywycZQrfYyRpaS11Eu8xGr6BPk4HopoYBJw/Lcr7HKSbZUti
4FXqI+hN9F8bAbb16ox7SDhKEWBuGxY1GIP+DsxqfNSKIihuJ5hkJtXrvFJxcNuc
uWySyNP8KIQ8Xc16RYZkNn8AWHNtrEfXncJDXqb/JkfSosz1AzuSfXKiwh89oP69
FxKJvhKVZKMwZbVm/7Hi
=L9+t
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AADBE4D1-F3FB-4F54-B4FF-1B02D8397EF0>