[Bug 283581] Buildworld fails on 14.2-RELEASE not finding immintrin.h

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Dec 2024 00:06:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283581

            Bug ID: 283581
           Summary: Buildworld fails on 14.2-RELEASE not finding
                    immintrin.h
           Product: Base System
           Version: 14.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: smurf.daemon@mail.smurfd.me

Hey,
Have two bhyve virtual machines. One is running 13.4-RELEASE and one is running
14.2-RELEASE
Cloning https://github.com/freebsd/freebsd-src

have basicly only installed git and gcc via pkg on both.
Not using gcc to build though.

On the 13.4 im able to `doas make buildworld` without a problem.
On the 14.2 im Not able to `doas make buildworld`

(the file ofcourse exists in: /usr/lib/clang/17/include/ on both virtual
machines)
(have tried to pulled main a couple of days before filing, without a solution)

It errors on:

```
===> lib/clang/libllvm (all)
cc  -O2 -pipe -fno-common 
-I/usr/obj/usr/home/casper/dev/freebsd-src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm
-I/usr/home/casper/dev/freebsd-src/sys/contrib/zstd/lib
-I/usr/home/casper/dev/freebsd-src/contrib/llvm-project/llvm/lib/Target/X86
-I/usr/home/casper/dev/freebsd-src/contrib/llvm-project/llvm/lib/ObjCopy
-DBLAKE3_USE_NEON=0 -I/usr/home/casper/dev/freebsd-src/lib/clang/include
-I/usr/home/casper/dev/freebsd-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-freebsd15.0\"
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd15.0\"
-DDEFAULT_SYSROOT=\"/usr/obj/usr/home/casper/dev/freebsd-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.Support_BLAKE3_blake3.o
-MTSupport/BLAKE3/blake3.o -std=gnu99 -Wno-format-zero-length -Wno-pointer-sign
-Wdate-time -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-parameter -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/home/casper/dev/freebsd-src/amd64.amd64/tmp/legacy/usr/include
-c
/usr/home/casper/dev/freebsd-src/contrib/llvm-project/llvm/lib/Support/BLAKE3/blake3.c
-o Support/BLAKE3/blake3.o
In file included from
/usr/home/casper/dev/freebsd-src/contrib/llvm-project/llvm/lib/Support/BLAKE3/blake3.c:13:
/usr/home/casper/dev/freebsd-src/contrib/llvm-project/llvm/lib/Support/BLAKE3/blake3_impl.h:53:10:
fatal error: 'immintrin.h' file not found
   53 | #include <immintrin.h>
      |          ^~~~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.

casper@fb14:~/dev/freebsd-src $ uname -a
FreeBSD fb14 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412
GENERIC amd64
```

Thanks in advance, probably some fluke. Will probably try to setup a new
virtual machine and see if i get the issue aswell and maby also 14.1-RELEASE.

Br

-- 
You are receiving this mail because:
You are the assignee for the bug.