Re: kernel build failed

From: Alexandr Krivulya <shuriku_at_shurik.kiev.ua>
Date: Sun, 29 Mar 2020 14:02:02 +0300
28.03.20 18:32, Dimitry Andric пишет:
> On 28 Mar 2020, at 13:48, Alexandr Krivulya <shuriku_at_shurik.kiev.ua> wrote:
>> 28.03.20 14:35, David Wolfskill пишет:
>>> On Sat, Mar 28, 2020 at 02:01:39PM +0200, Alexandr Krivulya wrote:
>>>> Hello,
>>>> on latest CURRENT kernel fails to build:
>>>>
>>>> ===> aesni (all)
>>>> [Creating objdir /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/aesni...]
>>>> ...
>>>> /usr/src/sys/crypto/aesni/aesni_ghash.c:75:10: fatal error: 'wmmintrin.h'
>>>> file not found
>>>> #include <wmmintrin.h>
>>>>           ^~~~~~~~~~~~~
>>>> 1 error generated.
>>>> *** Error code 1
>>>> ....
>>> I had no issues updating from r359325 to r359356 yesterday, or from
>>> r359356 to r359389 today (using META_MODE).
>> So what may be a reason? I tried:
>> - remove and checkout source tree
>> - remove /usr/obj
>>
>> wmmintrin.h is present under /usr/src/contrib/llvm-project/clang/lib/Headers/wmmintrin.h
>>
>> /etc/make.conf:
>> KERNCONF=GENERIC-NODEBUG
>> MALLOC_PRODUCTION=yes
>>
>> no /etc/src.conf
> 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>
          ^~~~~~~~~~~~~
1 error generated.
*** [Basic/SourceManager.o] Error code 1

make[4]: stopped in /usr/src/lib/clang/libclang
1 error

make[4]: stopped in /usr/src/lib/clang/libclang
*** [all_subdir_lib/clang/libclang] Error code 2

make[3]: stopped in /usr/src/lib/clang
1 error

make[3]: stopped in /usr/src/lib/clang
*** [cross-tools] Error code 2

make[2]: stopped in /usr/src
1 error

make[2]: stopped in /usr/src
*** [_cross-tools] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildworld] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src
Received on Sun Mar 29 2020 - 09:02:41 UTC

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