Buildworld Fails

Dimitry Andric dim at FreeBSD.org
Tue May 10 18:47:53 UTC 2016


On 10 May 2016, at 20:29, Johan Hendriks <joh.hendriks at gmail.com> wrote:
> 
> Op 10/05/16 om 19:47 schreef Dimitry Andric:
>> On 10 May 2016, at 13:53, Johan Hendriks <joh.hendriks at gmail.com> wrote:
>>> My buildworld of current fails today with the following error message.
>>> This is FreeBSD desk.server.netaffairs.nl 11.0-CURRENT FreeBSD
>>> 11.0-CURRENT #8 r299158:
>> ...
>>> ===> bhnd (all)
>>> machine -> /usr/src/sys/amd64/include
>>> x86 -> /usr/src/sys/x86/include
>>> /usr/src/sys/dev/bhnd/tools/nvram_map_gen.sh
>>> /usr/src/sys/dev/bhnd/nvram/nvram_map -h
>>> make[4]: exec(/usr/src/sys/dev/bhnd/tools/nvram_map_gen.sh) failed
>>> (Permission denied)
>> Have you got /usr/src mounted noexec?
>> 
>> -Dimitry
>> 
> Thank you all.
> I had exec=off on my /usr/src zfs dataset.
> 
> Never needed exec on /usr/src so for that reason it was turned to off.
> Till now, now it is turned to on.
> 
> Now the kernel builds fine.
> 
> Thanks Adrian and Dimitry for your time.

I think it *should* be possible to build world with /usr/src mounted
noexec.  Typically, buildworld shell scripts are run using 'sh', for
example in sys/conf/kern.post.mk there is:

vers.c: $S/conf/newvers.sh $S/sys/param.h ${SYSTEM_DEP}
        MAKE=${MAKE} sh $S/conf/newvers.sh ${KERN_IDENT}

The same should probably be done for the nvram_map_gen.sh script.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160510/e31231a8/attachment.sig>


More information about the freebsd-current mailing list