Re: /usr/src/lib/clang/libclang 'emmintrin.h' file not found

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 28 Dec 2018 13:02:26 +0100
On 28 Dec 2018, at 12:38, Julian H. Stacey <jhs_at_berklix.com> wrote:
> 
> "Julian H. Stacey" wrote:
>> Enji Cooper wrote:
>>>> On Dec 27, 2018, at 3:48 AM, Julian H. Stacey <jhs_at_berklix.com> wrote:
>>>> Hi current_at_
>>>> Anyone else seeing make buildworld Clang failures ?
>>>> ls -l /usr/bin suggests I last made world on Dec  9,
>>>> since then I've failed twice below
>>>> Seems the UPDATING doesnt give enough to rescue this.
>>>> ---------------
>>>> =20
>>>> cd /usr/src
>>>> cat .ctm_status # I recall src-cur 13840
>>>> make world
>>>> ... failed approx or maybe as below I recall:
>>>> =20
>>>> cat .svn_revision # 342545
>>>> cat .ctm_status # src-cur 13841
>>>> make buildworld
>>>> =20
>>>> c++  -O2 -pipe -DBERKLIX=3DYES =
>>> -I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libclang =
>>> -I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm =
>>> -I/usr/src/contrib/llvm/tools/clang/lib/Basic =
>>> -I/usr/src/contrib/llvm/tools/clang/lib/Driver =
>>> -I/usr/src/contrib/llvm/tools/clang/include -I/usr/src/lib/clang/include =
>>> -I/usr/src/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL =
>>> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS =
>>> -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd13.0\" =
>>> -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd13.0\" =
>>> -DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/amd64.amd64/tmp\" =
>>> -DLLVM_TARGET_ENABLE_X86 =
>>> -DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser =
>>> -DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter =
>>> -DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler =
>>> -DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target =
>>> -DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeX86TargetInfo =
>>> -DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC -ffunction-sections =
>>> -fdata-sections -gline-tables-only -MD -MF.de!
>>>> pend.Basic_SourceManager.o -MTBasic/SourceManager.o -Qunused-arguments =
>>> -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include  -std=3Dc++11 =
>>> -fno-exceptions -fno-rtti -gline-tables-only -stdlib=3Dlibc++ =
>>> -Wno-c++11-extensions  -c =
>>> /usr/src/contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp -o =
>>> Basic/SourceManager.o
>>>> /usr/src/contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp:1196:10: =
>>> fatal error:
>>>>     'emmintrin.h' file not found
>>>> #include <emmintrin.h>
>>>>        ^~~~~~~~~~~~~
>>>> 1 error generated.
>>>> *** Error code 1
>>>> =20
>>>> Stop.
>>>> bmake[4]: stopped in /usr/src/lib/clang/libclang

Most likely, your host compiler is missing required intrinsics headers.
These are located under /usr/lib/clang/x.y.z/include, where x.y.z is the
compiler version.  If they are missing, you might want to restore the
files from backup, or extract them from a release or snapshot tarball.

-Dimitry


Received on Fri Dec 28 2018 - 11:02:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC