From owner-freebsd-current@freebsd.org Sat Dec 23 12:42:50 2017 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 65F96EA4F36 for ; Sat, 23 Dec 2017 12:42:50 +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 "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C5AA2890 for ; Sat, 23 Dec 2017 12:42:49 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (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 1280510B4D; Sat, 23 Dec 2017 13:42:41 +0100 (CET) From: Dimitry Andric Message-Id: <962D6B67-8D38-4483-B8D3-933FA483C364@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_DDCC5B33-4547-4515-B30A-CD363706BC5C"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Unable to build 12-current/amd64 Date: Sat, 23 Dec 2017 13:42:40 +0100 In-Reply-To: <20171223095633.GA52398@server.rulingia.com> Cc: freebsd-current@FreeBSD.org To: Peter Jeremy References: <20171223095633.GA52398@server.rulingia.com> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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, 23 Dec 2017 12:42:50 -0000 --Apple-Mail=_DDCC5B33-4547-4515-B30A-CD363706BC5C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Dec 2017, at 10:56, Peter Jeremy wrote: >=20 > Since r326496, buildworld on my 12-current/amd64 system has = consistently > died as follows. ... > /usr/src/contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp:1166:10: = fatal error: 'emmintrin.h' file not found > #include > ^~~~~~~~~~~~~ > 1 error generated. > *** Error code 1 >=20 > Stop. > make[4]: stopped in /usr/src/lib/clang/libclang >=20 > I'm building on a 12.0-CURRENT VirtualBox guest at r326430. I've = checked > that my /usr/src is clean and deleted /usr/obj to no effect. I have = dug > into SourceManager.cpp and the #include is protected by a #if = __SSE2__, > which is relying on clang internal checks to define (and my CPU = supports > SSE2). Does anyone have any ideas to explain what is going on? First of all, does your host system have emmintrin.h? E.g. what is the output of "find /usr/lib/clang -name emmintrin.h" ? Second, I think this scenario might be possible if you force -march or other CPU type flags into CFLAGS, instead of using CPUTYPE. What is the contents of your make.conf, and other build environment variables? -Dimitry --Apple-Mail=_DDCC5B33-4547-4515-B30A-CD363706BC5C 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWj5PQAAKCRCwXqMKLiCW oxRyAKCiP0ouoCHXmY3YebYv1Cs7miJmIgCgsB4PPI+FmPoCl87k8ezV+DT2w9Q= =R+Nv -----END PGP SIGNATURE----- --Apple-Mail=_DDCC5B33-4547-4515-B30A-CD363706BC5C--