Re: kernel build failed

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 29 Mar 2020 13:55:55 +0200
On 29 Mar 2020, at 13:02, Alexandr Krivulya <shuriku_at_shurik.kiev.ua> wrote:
> 
> 28.03.20 18:32, Dimitry Andric пишет:
>> On 28 Mar 2020, at 13:48, Alexandr Krivulya <shuriku_at_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.

-Dimitry


Received on Sun Mar 29 2020 - 10:03:03 UTC

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