STABLE fails since change to Clang 8

Per olof Ljungmark peo at nethead.se
Mon Apr 22 09:15:31 UTC 2019


On 2019-04-22 00:10, Eugen wrote:
> I used to build world and kernel every other week.
> My last successful build of the source tree was version 345754.
> I believe in the meantime Clang was changed from 7 to 8.
> World build fails ever since with this:
> ---------------------------------------------------------------------------------------------------
[snip]

> /usr/src/contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp:1195:10:
> fatal error: 'emmintrin.h' file not found
> #include <emmintrin.h>
>           ^~~~~~~~~~~~~
> 1 error generated.
> *** [Basic/SourceManager.o] Error code 1
> 
> make[4]: stopped in /usr/src/lib/clang/libclang
> 1 error
> 
> make[4]: stopped in /usr/src/lib/clang/libclang
> *** [all_subdir_lib/clang/libclang] Error code 2
> 
> make[3]: stopped in /usr/src/lib/clang
> 1 error
> 
> make[3]: stopped in /usr/src/lib/clang
> *** [cross-tools] Error code 2
> 
> make[2]: stopped in /usr/src
> 1 error
> 
> make[2]: stopped in /usr/src
> *** [_cross-tools] Error code 2
> 
> make[1]: stopped in /usr/src
> 1 error
> ---------------------------------------------------------------------------------------------------
> uname -a produces this:
> 
> FreeBSD main 12.0-STABLE FreeBSD 12.0-STABLE #0 r345754M: Sun Mar 31
> 10:01:26 PDT 2019
> root at main:/home/sys_build/usr/src/amd64.amd64/sys/WORLD  amd64

+1 for 11-STABLE and ports too - would be nice if this could be sorted 
rather quickly.

There are six incarnations of emmintrin.h in this system but apparently 
none is useful:
/usr/src/contrib/gcc/config/i386/emmintrin.h
/usr/src/contrib/llvm/tools/clang/lib/Headers/emmintrin.h
/usr/local/llvm70/lib/clang/7.0.1/include/emmintrin.h
/usr/local/llvm80/lib/clang/8.0.0/include/emmintrin.h
/usr/local/lib/gcc8/gcc/x86_64-portbld-freebsd11.2/8.3.0/include/emmintrin.h
/usr/local/llvm60/lib/clang/6.0.1/include/emmintrin.h

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237461

Thanks,

//per


More information about the freebsd-stable mailing list