Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2023 20:32:43 +0200
From:      Tom Vogt <freebsdlists@bsdunix.ch>
To:        stable@freebsd.org
Subject:   stable does not compile, llvm error
Message-ID:  <a3543c2b-1cd0-99a5-4249-fc81bcf34e4c@bsdunix.ch>

next in thread | raw e-mail | index | archive | help
Hi,

I try to compile the latest 13 stable version but it fails with an llvm 
error.

My working version is:
13.2-STABLE stable/13-3cea7ca84 GENERIC amd64

The version I try o compile is:
git show -s
commit 3e9d966ce45e3971c295a1dff7435d6b9f1321da (grafted, HEAD -> 
stable/13, origin/stable/13)

Compile:
make -j `sysctl -n hw.ncpu` buildworld buildkernel && make installkernel

Error:
cc  -O2 -pipe -fno-common 
-I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm 
-I/usr/src/contrib/llvm-project/llvm/lib/Target/X86 
-I/usr/src/contrib/llvm-project/llvm/lib/ObjCopy 
-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 
-DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd13.2\" 
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.2\" 
-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 -MD  -MF.depend.Support_BLAKE3_blake3.o 
-MTSupport/BLAKE3/blake3.o -std=gnu99 -Wno-format-zero-length 
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
-Wno-unused-const-variable -Wno-error=unused-but-set-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 
-I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c 
/usr/src/contrib/llvm-project/llvm/lib/Support/BLAKE3/blake3.c -o 
Support/BLAKE3/blake3.o
In file included from 
/usr/src/contrib/llvm-project/llvm/lib/Support/BLAKE3/blake3.c:13:
/usr/src/contrib/llvm-project/llvm/lib/Support/BLAKE3/blake3_impl.h:61:10: 
fatal error: 'immintrin.h' file not found
#include <immintrin.h>
          ^~~~~~~~~~~~~
1 error generated.
*** [Support/BLAKE3/blake3.o] Error code 1

make[4]: stopped in /usr/src/lib/clang/libllvm


My environment:
/etc/src-env.conf
WITHOUT_BLUETOOTH=YES
WITHOUT_DEBUG_FILES=YES
WITHOUT_FINGER=YES
WITHOUT_SPLIT_KERNEL_DEBUG=YES
WITHOUT_ATM=yes
WITHOUT_IPX=yes
WITHOUT_WIRELESS=yes
WITHOUT_GAMES=yes
WITHOUT_BIND=yes
WITHOUT_PROFILE=yes
WITHOUT_SENDMAIL=yes
WITHOUT_TCP_WRAPPERS=yes

/etc/make.conf
DEFAULT_VERSIONS+=ssl=openssl

kldstat
Id Refs Address                Size Name
  1   30 0xffffffff80200000  2141ee0 kernel
  2    1 0xffffffff82342000     3348 cc_cubic.ko
  3    1 0xffffffff82346000     a5e8 cryptodev.ko
  4    1 0xffffffff82351000    47c18 ipfw.ko
  5    1 0xffffffff82399000   59ff20 zfs.ko
  6    1 0xffffffff82939000     3948 cc_htcp.ko
  7    1 0xffffffff83ae5000     d9b0 geom_eli.ko
  8    1 0xffffffff83af3000     3250 ichsmb.ko
  9    1 0xffffffff83af7000     2180 smbus.ko
10    1 0xffffffff83afa000     4700 nullfs.ko

Any idea?

Regards,
Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a3543c2b-1cd0-99a5-4249-fc81bcf34e4c>