Date: Fri, 28 Dec 2018 12:38:09 +0100 From: "Julian H. Stacey" <jhs@berklix.com> To: current@freebsd.org Cc: Enji Cooper <yaneurabeya@gmail.com> Subject: Re: /usr/src/lib/clang/libclang 'emmintrin.h' file not found Message-ID: <201812281138.wBSBc9lP096617@fire.js.berklix.net> In-Reply-To: Your message "Thu, 27 Dec 2018 15:29:22 %2B0100." <201812271429.wBRETMUb097630@fire.js.berklix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"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. > > > --------------- > > >=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 > > > *** Error code 1 > > >=20 > > > src/UPDATING last has a note at 20181220 ... & > > > 20181211: > > > Clang, llvm, lld, lldb, compiler-rt and libc++ have been = > > upgraded to > > > 7.0.1. Please see the 20141231 entry below for information = > > about > > > prerequisites and upgrading, if you are not already using clang = > > 3.5.0 > > > or higher. > > >=20 > > > clang -v > > > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on = > > LLVM 6.0.1) > > >=20 > > > make includes > > > mkdir -p /usr/lib/clang/7.0.1/include/sanitizer/ > > > make includes > > > clang-tblgen -help > > > make -i includes > > > cd /usr/src/lib/clang/libclang > > > make > > > clang-tblgen -gen-clang-attr-dump -I = > > /usr/src/contrib/llvm/tools/clang/include -d clang/AST/AttrDump.inc.d -o = > > clang/AST/AttrDump.inc = > > /usr/src/contrib/llvm/tools/clang/include/clang/Basic/Attr.td > > > *** Signal 11 > > > reboot > > > cd /usr/src/lib/clang/libclang > > > make clean > > > make > > > clang-tblgen -gen-clang-attr-dump -I = > > /usr/src/contrib/llvm/tools/clang/include -d clang/AST/AttrDump.inc.d -o = > > clang/AST/AttrDump.inc = > > /usr/src/contrib/llvm/tools/clang/include/clang/Basic/Attr.td > > > *** Signal 11 > > > > Hi Julian, > > The handful of times I=E2=80=99ve seen this occur in the past = > > with other compiler versions, it=E2=80=99s been caused by an incomplete = > > buildworld and/or tainted .OBJDIR. It might be a good idea to wipe out = > > ${OBJROOT} and start buildworld from scratch, to see if the issue = > > persists. > > Best of luck, > > -Enji > > Thanks Enji, > I usually do, but I might have forgotten, > have now run: > cd /usr/obj; rm -rf * > cd /usr/src > make clean > make cleandir# prob un-necessary after obj rm > cat .ctm_status src-cur 13842 > cat .svn_revision 342550 > & started: > make buildworld That failed again: --------------- c++ -O2 -pipe -DBERKLIX=YES -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=\"x86_64-unknown-freebsd13.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/amd64.amd64/tmp\" -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -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=c++11 -fno-exceptions -fno-rtti -gline-tables-only -stdlib=libc++ -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 Stop. bmake[4]: stopped in /usr/src/lib/clang/libclang --------------- ls -l `find . -name emmintrin.h` -rw-r--r-- 1 jhs staff 42719 Dec 26 11:29 ./contrib/gcc/config/i386/emmintrin.h -rw-r--r-- 1 jhs staff 182761 Dec 26 11:33 ./contrib/llvm/tools/clang/lib/Headers/emmintrin.h --------------- make includes ===> lib/clang/headers (includes) [Creating objdir /usr/obj/usr/src/amd64.amd64/lib/clang/headers...] clang-tblgen -gen-arm-fp16 -I /usr/src/contrib/llvm/tools/clang/include/clang/Basic -d arm_fp16.h.d -o arm_fp16.h /usr/src/contrib/llvm/tools/clang/include/clang/Basic/arm_fp16.td clang-tblgen: Unknown command line argument '-gen-arm-fp16'. Try: 'clang-tblgen -help' clang-tblgen: Did you mean '-gen-arm-neon'? *** Error code 1 Stop. bmake[4]: stopped in /usr/src/lib/clang/headers --------------- make -i includes cd /usr/src/lib/clang/libclang make clang-tblgen -gen-clang-attr-dump -I /usr/src/contrib/llvm/tools/clang/include -d clang/AST/AttrDump.inc.d -o clang/AST/AttrDump.inc /usr/src/contrib/llvm/tools/clang/include/clang/Basic/Attr.td *** Signal 11 --------------- make clean make clang-tblgen -gen-clang-attr-dump -I /usr/src/contrib/llvm/tools/clang/include -d clang/AST/AttrDump.inc.d -o clang/AST/AttrDump.inc /usr/src/contrib/llvm/tools/clang/include/clang/Basic/Attr.td *** Signal 11 --------------- cd /usr/src/usr.bin/clang/clang-tblgen make c++ -O2 -pipe -DBERKLIX=YES -I/usr/obj/usr/src/amd64.amd64/lib/clang/libllvm -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=\"x86_64-unknown-freebsd13.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.0\" -DDEFAULT_SYSROOT=\"\" -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM -DLLVM_TARGET_ENABLE_MIPS -DLLVM_TARGET_ENABLE_POWERPC -DLLVM_TARGET_ENABLE_SPARC -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sections -gline-tables-only -fstack-protector-strong -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-un! used-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -Wl,--gc-sections -o clang-tblgen.full ClangASTNodesEmitter.o ClangAttrEmitter.o ClangCommentCommandInfoEmitter.o ClangCommentHTMLNamedCharacterReferenceEmitter.o ClangCommentHTMLTagsEmitter.o ClangDataCollectorsEmitter.o ClangDiagnosticsEmitter.o ClangOptionDocEmitter.o ClangSACheckersEmitter.o NeonEmitter.o TableGen.o /usr/obj/usr/src/amd64.amd64/lib/clang/libllvm/libllvm.a -L/usr/obj/usr/src/amd64.amd64/lib/ncurses/ncursesw -lncursesw -L/usr/obj/usr/src/amd64.amd64/lib/libthr -lpthread c++: error: no such file or directory: '/usr/obj/usr/src/amd64.amd64/lib/clang/libllvm/libllvm.a' --------------- cd /usr/obj/usr/src/amd64.amd64/lib/clang/libllvm echo *llvm* llvm llvm-dlltool llvm-lib ls -la llvm llvm-dlltool llvm-lib llvm: total 12 drwxrwxr-x 3 root staff 512 Dec 28 11:52 ./ drwxrwxr-x 29 root staff 1024 Dec 28 11:52 ../ drwxrwxr-x 2 root staff 512 Dec 28 11:52 IR/ llvm-dlltool: total 8 drwxrwxr-x 2 root staff 512 Dec 28 11:52 ./ drwxrwxr-x 29 root staff 1024 Dec 28 11:52 ../ llvm-lib: total 8 drwxrwxr-x 2 root staff 512 Dec 28 11:52 ./ drwxrwxr-x 29 root staff 1024 Dec 28 11:52 ../ cd /usr/obj ls -l `find . -name libllvm.a` -rw-r--r-- 1 root staff 323944458 Dec 27 17:56 ./usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm/libllvm.a ln /usr/obj//usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm/libllvm.a \ /usr/obj/usr/src/amd64.amd64/lib/clang/libllvm/libllvm.a cd /usr/src/usr.bin/clang/clang-tblgen make # OK cd .. make c++ -O2 -pipe -DBERKLIX=YES -I/usr/obj/usr/src/amd64.amd64/lib/clang/libclang -I/usr/obj/usr/src/amd64.amd64/lib/clang/libllvm -I/usr/src/contrib/llvm/tools/clang/include -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_STATIC_ANALYZER -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=\"x86_64-unknown-freebsd13.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.0\" -DDEFAULT_SYSROOT=\"\" -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM -DLLVM_TARGET_ENABLE_MIPS -DLLVM_TARGET_ENABLE_POWERPC -DLLVM_TARGET_ENABLE_SPARC -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sec! tions -gline-tables-only -MD -MF.depend.cc1_main.o -MTcc1_main.o -fstack-protector-strong -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/contrib/llvm/tools/clang/tools/driver/cc1_main.cpp -o cc1_main.o In file included from /usr/src/contrib/llvm/tools/clang/tools/driver/cc1_main.cpp:20: In file included from /usr/src/contrib/llvm/tools/clang/include/clang/Driver/DriverDiagnostic.h:13: In file included from /usr/src/contrib/llvm/tools/clang/include/clang/Basic/Diagnostic.h:18: /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticIDs.h:71:10: fatal error: 'clang/Basic/DiagnosticCommonKinds.inc' file not found #include "clang/Basic/DiagnosticCommonKinds.inc" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------- It seems something essential is missing from src/UPGRADING relating to CLang changes since about 9 Dec 2018. 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?201812281138.wBSBc9lP096617>