Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2018 14:06:25 +0100
From:      "Julian H. Stacey" <jhs@berklix.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        current@FreeBSD.org, Enji Cooper <yaneurabeya@gmail.com>
Subject:   Re: /usr/src/lib/clang/libclang 'emmintrin.h' file not found
Message-ID:  <201812281306.wBSD6PkN098863@fire.js.berklix.net>
In-Reply-To: Your message "Fri, 28 Dec 2018 13:02:26 %2B0100." <80F360C1-5769-45F3-8B81-3C90BB06FA1B@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dimitry Andric wrote:
> On 28 Dec 2018, at 12:38, Julian H. Stacey <jhs@berklix.com> wrote:
> >=20
> > "Julian H. Stacey" wrote:
> >> Enji Cooper wrote:
> >>>> On Dec 27, 2018, at 3:48 AM, Julian H. Stacey <jhs@berklix.com> =
> wrote:
> >>>> Hi current@
> >>>> 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.
> >>>> ---------------
> >>>> =3D20
> >>>> cd /usr/src
> >>>> cat .ctm_status # I recall src-cur 13840
> >>>> make world
> >>>> ... failed approx or maybe as below I recall:
> >>>> =3D20
> >>>> cat .svn_revision # 342545
> >>>> cat .ctm_status # src-cur 13841
> >>>> make buildworld
> >>>> =3D20
> >>>> c++  -O2 -pipe -DBERKLIX=3D3DYES =3D
> >>> -I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libclang =3D
> >>> -I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm =3D
> >>> -I/usr/src/contrib/llvm/tools/clang/lib/Basic =3D
> >>> -I/usr/src/contrib/llvm/tools/clang/lib/Driver =3D
> >>> -I/usr/src/contrib/llvm/tools/clang/include =
> -I/usr/src/lib/clang/include =3D
> >>> -I/usr/src/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL =3D
> >>> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS =3D
> >>> -DLLVM_DEFAULT_TARGET_TRIPLE=3D3D\"x86_64-unknown-freebsd13.0\" =3D
> >>> -DLLVM_HOST_TRIPLE=3D3D\"x86_64-unknown-freebsd13.0\" =3D
> >>> -DDEFAULT_SYSROOT=3D3D\"/usr/obj/usr/src/amd64.amd64/tmp\" =3D
> >>> -DLLVM_TARGET_ENABLE_X86 =3D
> >>> -DLLVM_NATIVE_ASMPARSER=3D3DLLVMInitializeX86AsmParser =3D
> >>> -DLLVM_NATIVE_ASMPRINTER=3D3DLLVMInitializeX86AsmPrinter =3D
> >>> -DLLVM_NATIVE_DISASSEMBLER=3D3DLLVMInitializeX86Disassembler =3D
> >>> -DLLVM_NATIVE_TARGET=3D3DLLVMInitializeX86Target =3D
> >>> -DLLVM_NATIVE_TARGETINFO=3D3DLLVMInitializeX86TargetInfo =3D
> >>> -DLLVM_NATIVE_TARGETMC=3D3DLLVMInitializeX86TargetMC =
> -ffunction-sections =3D
> >>> -fdata-sections -gline-tables-only -MD -MF.de!
> >>>> pend.Basic_SourceManager.o -MTBasic/SourceManager.o =
> -Qunused-arguments =3D
> >>> -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include  -std=3D3Dc++11 =
> =3D
> >>> -fno-exceptions -fno-rtti -gline-tables-only -stdlib=3D3Dlibc++ =3D
> >>> -Wno-c++11-extensions  -c =3D
> >>> /usr/src/contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp -o =3D
> >>> Basic/SourceManager.o
> >>>> =
> /usr/src/contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp:1196:10: =3D=
> 
> >>> fatal error:
> >>>>     'emmintrin.h' file not found
> >>>> #include <emmintrin.h>
> >>>>        ^~~~~~~~~~~~~
> >>>> 1 error generated.
> >>>> *** Error code 1
> >>>> =3D20
> >>>> 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

Thanks Dimitry 

  clang -v
    FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
    Target: x86_64-unknown-freebsd13.0
    Thread model: posix
    InstalledDir: /usr/bin
  cd /usr/lib/clang ; ls
    7.0.1/
  dmesg
    FreeBSD 13.0-CURRENT JHS_Lapr amd64
    FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)

So my current box has a mismatch. 
My other current box is normaly older, so I turned on to copy 6.0.1 libs 
& found a newer & consistent current:

  clang -v
    FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1)
    Target: x86_64-unknown-freebsd13.0
    Thread model: posix
    InstalledDir: /usr/bin

  dmesg:
    FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1)
  cd /usr/bin; ls -l
    Dec 20

So I'm checking the newer current box with make all,
then will do a cross host recovery to the inconsistent older box.
Thanks Enji & Dimitry

Cheers,
Julian
-- 
Julian Stacey, Computer Consultant Sys.Eng. BSD Linux Unix, Munich Aachen Kent
 First referendum stole 700,000 votes from Brits in EU;  3,700,000 globaly.
 Lies criminal funded; jobs pound & markets down. 1.9M new voters 1.3M dead.
 Email MP: "A new referendum will buy UK & EU more time (Art 50.3), to avoid
       a hard crash, & consider all options."  http://berklix.org/brexit/#mp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812281306.wBSD6PkN098863>