fatal error: 'immintrin.h' file not found

Dimitry Andric dim at FreeBSD.org
Sun Jul 22 20:37:35 UTC 2018


On 22 Jul 2018, at 21:59, Stefan Hagen <sh+freebsd-current at codevoid.de> wrote:
> 
> I think I broke something and I can't figure out what it is. Since a few
> weeks, I'm not able to build current anymore.
> 
> make buildkernel, buildworld, toolchain - all abort with the following
> error:
> 
> --- 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.
> 
> Find shows me, that immintrin.h can be found in the following locations:
> 
> $ 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

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.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20180722/c2150da2/attachment.sig>


More information about the freebsd-current mailing list