From owner-freebsd-current@freebsd.org Sat Mar 28 16:32:19 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 582C52A70FF for ; Sat, 28 Mar 2020 16:32:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48qPQ939cGz48SC; Sat, 28 Mar 2020 16:32:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 39F44F3CD; Sat, 28 Mar 2020 16:32:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::f1a1:8a1f:779d:88b6] (unknown [IPv6:2001:470:7a58:0:f1a1:8a1f:779d:88b6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 8CA335AC59; Sat, 28 Mar 2020 17:32:07 +0100 (CET) From: Dimitry Andric Message-Id: <9E22D99A-63CB-4CCB-B3C1-3838F1769BED@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_F22C500A-A40C-4B03-9536-7C95CCDCE960"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: kernel build failed Date: Sat, 28 Mar 2020 17:32:00 +0100 In-Reply-To: <4ee54436-0c15-41c3-3581-053da0a08181@shurik.kiev.ua> Cc: freebsd-current@freebsd.org To: Alexandr Krivulya References: <672d55ce-0949-2397-0a3c-3a86020381a4@shurik.kiev.ua> <20200328123542.GR1511@albert.catwhisker.org> <4ee54436-0c15-41c3-3581-053da0a08181@shurik.kiev.ua> X-Mailer: Apple Mail (2.3445.104.14) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sat, 28 Mar 2020 16:32:19 -0000 --Apple-Mail=_F22C500A-A40C-4B03-9536-7C95CCDCE960 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 28 Mar 2020, at 13:48, Alexandr Krivulya = wrote: >=20 > 28.03.20 14:35, David Wolfskill =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> On Sat, Mar 28, 2020 at 02:01:39PM +0200, Alexandr Krivulya wrote: >>> Hello, >>> on latest CURRENT kernel fails to build: >>>=20 >>> =3D=3D=3D> aesni (all) >>> [Creating objdir = /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modul= es/aesni...] >>> ... >>> /usr/src/sys/crypto/aesni/aesni_ghash.c:75:10: fatal error: = 'wmmintrin.h' >>> file not found >>> #include >>> ^~~~~~~~~~~~~ >>> 1 error generated. >>> *** Error code 1 >>> .... >> I had no issues updating from r359325 to r359356 yesterday, or from >> r359356 to r359389 today (using META_MODE). >=20 > So what may be a reason? I tried: > - remove and checkout source tree > - remove /usr/obj >=20 > wmmintrin.h is present under = /usr/src/contrib/llvm-project/clang/lib/Headers/wmmintrin.h >=20 > /etc/make.conf: > KERNCONF=3DGENERIC-NODEBUG > MALLOC_PRODUCTION=3Dyes >=20 > no /etc/src.conf This typically happens if you don't run "make buildworld", or at least "make kernel-toolchain" before running "make buildkernel", and your userland is missing those headers, for some reason. (Usually people seem to do a WITHOUT_CLANG installation or strip out 'unnecessary' stuff manually...) -Dimitry --Apple-Mail=_F22C500A-A40C-4B03-9536-7C95CCDCE960 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXn98AAAKCRCwXqMKLiCW oySLAJsFk3SdAvty2KkfSeYcdZaT67CO2ACgy1zvN3OfhYSkXC0VS7cag8u4+Tw= =CQiQ -----END PGP SIGNATURE----- --Apple-Mail=_F22C500A-A40C-4B03-9536-7C95CCDCE960--