Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2018 07:47:36 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Stefan Hagen <sh+freebsd-current@codevoid.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: fatal error: 'immintrin.h' file not found
Message-ID:  <3D7D1A21-5D35-4246-83E4-1D64FBB8716D@FreeBSD.org>
In-Reply-To: <20180722214852.GA76585@ptrace.hagen.corp>
References:  <20180722195900.GA75436@ptrace.hagen.corp> <82B3EB35-676F-42B6-9577-3BAF43F2719F@FreeBSD.org> <20180722214852.GA76585@ptrace.hagen.corp>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <sh+freebsd-current@codevoid.de> =
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 <immintrin.h>
>>>             ^~~~~~~~~~~~~
>>> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7D1A21-5D35-4246-83E4-1D64FBB8716D>