From owner-freebsd-current@freebsd.org Tue May 10 18:47:53 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFA0FB36561 for ; Tue, 10 May 2016 18:47:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 97F771DE2 for ; Tue, 10 May 2016 18:47:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::e891:9ced:6e7b:9e05] (unknown [IPv6:2001:7b8:3a7:0:e891:9ced:6e7b:9e05]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2646A31C68; Tue, 10 May 2016 20:47:39 +0200 (CEST) Subject: Re: Buildworld Fails Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_3DB2DEB9-3553-475E-85A8-6D30267E4463"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: Date: Tue, 10 May 2016 20:47:31 +0200 Cc: freebsd-current@freebsd.org Message-Id: <4CDE499C-4AD2-4D77-BE15-8122B932A104@FreeBSD.org> References: <949278F4-0451-483B-A684-2563210F69B5@FreeBSD.org> To: Johan Hendriks X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 18:47:53 -0000 --Apple-Mail=_3DB2DEB9-3553-475E-85A8-6D30267E4463 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 10 May 2016, at 20:29, Johan Hendriks wrote: > > Op 10/05/16 om 19:47 schreef Dimitry Andric: >> On 10 May 2016, at 13:53, Johan Hendriks 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 --Apple-Mail=_3DB2DEB9-3553-475E-85A8-6D30267E4463 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlcyLMoACgkQsF6jCi4glqMtaQCgqWuMeiokciBHORiUufxs+Mf4 KToAnAoDxipSZHWDGCVb6s788HclNSJS =qjnt -----END PGP SIGNATURE----- --Apple-Mail=_3DB2DEB9-3553-475E-85A8-6D30267E4463--