From owner-freebsd-current@freebsd.org Mon Jul 23 05:47:49 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E57E103F8A1 for ; Mon, 23 Jul 2018 05:47:49 +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 0CC7794E76 for ; Mon, 23 Jul 2018 05:47: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 07FD136A46; Mon, 23 Jul 2018 07:47:47 +0200 (CEST) From: Dimitry Andric Message-Id: <3D7D1A21-5D35-4246-83E4-1D64FBB8716D@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_F7E2DCDA-A02F-46F8-AD16-CEF5D20DE67F"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: fatal error: 'immintrin.h' file not found Date: Mon, 23 Jul 2018 07:47:36 +0200 In-Reply-To: <20180722214852.GA76585@ptrace.hagen.corp> Cc: freebsd-current@freebsd.org To: Stefan Hagen References: <20180722195900.GA75436@ptrace.hagen.corp> <82B3EB35-676F-42B6-9577-3BAF43F2719F@FreeBSD.org> <20180722214852.GA76585@ptrace.hagen.corp> X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Mon, 23 Jul 2018 05:47:49 -0000 --Apple-Mail=_F7E2DCDA-A02F-46F8-AD16-CEF5D20DE67F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 22 Jul 2018, at 23:48, Stefan Hagen = wrote >=20 > Dimitry Andric wrote: >> Stefan Hagen wrote: >>> --- lz_encoder.o --- >>> In file included from = /usr/src/contrib/xz/src/liblzma/lz/lz_encoder.c:23: >>> /usr/src/contrib/xz/src/liblzma/common/memcmplen.h:19:11: fatal = error: 'immintrin.h' file not found >>> # include >>> ^~~~~~~~~~~~~ >>> 1 error generated. >>>=20 >>> Find shows me, that immintrin.h can be found in the following = locations: >>>=20 >>> $ find / -name "immintrin.h" >>> /usr/lib/clang/4.0.0/include/immintrin.h >>> /usr/lib/clang/3.8.0/include/immintrin.h >>> /usr/lib/clang/5.0.0/include/immintrin.h >>> /usr/lib/clang/6.0.0/include/immintrin.h >>> /usr/lib/clang/5.0.1/include/immintrin.h >>=20 >> What does "cc -v" show? If it is clang 6.0.1, you are missing the = 6.0.1 >> intrinsics headers, located in /usr/lib/clang/6.0.1/include. As a = quick >> hack, you can try copying the /usr/lib/clang/6.0.0 headers there, or >> attempt to run "make install" in /usr/src/lib/clang/headers. >=20 > $ cc -v > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on = LLVM 6.0.1) >=20 > The following fixed it for me: >=20 > mkdir -p /usr/lib/clang/6.0.1/include/ > cd /usr/src/lib/clang/headers && make install >=20 > Shouldn't these headers be included in the llvm60-6.0.1_1 package? > Or are they part of the base system? They are part of the base system, but the port will install them in a similar location, under /usr/local. > I just wonder why I never had to install them before. That is the real mystery: during a normal installworld, these headers get installed. Maybe you ran an installworld using WITHOUT_CLANG, and then attempted to build a new one? Btw, you still have the /usr/lib/clang/3.8.0 through 6.0.0 directories, so maybe it is time to run "make delete-old" at some point. :) -Dimitry --Apple-Mail=_F7E2DCDA-A02F-46F8-AD16-CEF5D20DE67F 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW1Vr+AAKCRCwXqMKLiCW o62pAJ4+e1jnOw7uP4QsKMv19x/maCCjdgCeMUI0K/kg6DPz8BBlqqSfIZ8XGDA= =efLQ -----END PGP SIGNATURE----- --Apple-Mail=_F7E2DCDA-A02F-46F8-AD16-CEF5D20DE67F--