29.03.20 14:55, Dimitry Andric пишет:
On 29 Mar 2020, at 13:02, Alexandr Krivulya <shur...@shurik.kiev.ua> wrote:
28.03.20 18:32, Dimitry Andric пишет:
On 28 Mar 2020, at 13:48, Alexandr Krivulya <shur...@shurik.kiev.ua> wrote:
...
This typically happens if you don't run "make buildworld", or at least
"make kernel-toolchain" before running "make buildkernel", and your
userland is missing those headers, for some reason. (Usually people
seem to do a WITHOUT_CLANG installation or strip out 'unnecessary'
stuff manually...)

I have updated source tree to r359419 and now make builworld failed with an 
error:

--- Basic/Targets.o ---
c++  -O2 -pipe -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-project/clang/lib/Basic -I/usr/src/contrib/llvm-project/clang/lib/Driver 
-I/usr/src/contrib/llvm-project/clang/include -I/usr/src/lib/clang/include 
-I/usr/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS 
-D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC 
-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.depend.Basic_Targets.o -MTBasic/Targets.o 
-Wno-format-zero-length -Qunused-arguments -include ../freebsd_cc_version.h 
-I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -fno-exceptions -fno-rtti -gline-tables-only -std=c++14 
-stdlib=libc++ -Wno-c++11-extensions   -c /usr/src/contrib/llvm-project/clang/lib/Basic/Targets.cpp -o 
Basic/Targets.o
--- Basic/SourceManager.o ---
/usr/src/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp:1228:10: fatal 
error: 'emmintrin.h' file not found
#include <emmintrin.h>
          ^~~~~~~~~~~~~
If this happens during the cross-tools stage (stage 3), then your base
system's toolchain is missing some components.  Can you check whether
the directory /usr/lib/clang/x.y.z exists, where x.y.z is the version
printed by "cc -v" ?

If that directory does not exist, the easiest fix is probably to use
a toolchain port to bootstrap, or alternatively restore the toolchain
directories from a 13-CURRENT snapshot.



You are absolutely right. The directory /usr/lib/clang was empty.
Thank you!

_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to