Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2023 20:57:02 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Tom Vogt <freebsdlists@bsdunix.ch>
Cc:        stable@freebsd.org
Subject:   Re: stable does not compile, llvm error
Message-ID:  <8D28DB36-A00A-4019-BB9D-D39F4C17405D@FreeBSD.org>
In-Reply-To: <a3543c2b-1cd0-99a5-4249-fc81bcf34e4c@bsdunix.ch>
References:  <a3543c2b-1cd0-99a5-4249-fc81bcf34e4c@bsdunix.ch>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_FF5232AC-1708-42BC-B272-05D6564D5046
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 16 Apr 2023, at 20:32, Tom Vogt <freebsdlists@bsdunix.ch> wrote:
>=20
> I try to compile the latest 13 stable version but it fails with an =
llvm error.
>=20
> My working version is:
> 13.2-STABLE stable/13-3cea7ca84 GENERIC amd64
>=20
> The version I try o compile is:
> git show -s
> commit 3e9d966ce45e3971c295a1dff7435d6b9f1321da (grafted, HEAD -> =
stable/13, origin/stable/13)
>=20
> Compile:
> make -j `sysctl -n hw.ncpu` buildworld buildkernel && make =
installkernel
>=20
> 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=3D\"x86_64-unknown-freebsd13.2\" =
-DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd13.2\" =
-DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/amd64.amd64/tmp\" =
-DLLVM_TARGET_ENABLE_X86 =
-DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser =
-DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter =
-DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler =
-DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target =
-DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeX86TargetInfo =
-DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC -ffunction-sections =
-fdata-sections -MD  -MF.depend.Support_BLAKE3_blake3.o =
-MTSupport/BLAKE3/blake3.o -std=3Dgnu99 -Wno-format-zero-length =
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int =
-Wno-unused-const-variable -Wno-error=3Dunused-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>
>         ^~~~~~~~~~~~~

This type of error pops up every once in a while, and it usually turns
out that people deleted their /usr/lib/clang directory for some reason,
or if they did a packaged base install, they did not install the
toolchain packages.

In any case, you will have to restore the files in /usr/lib/clang for
the build to continue.

-Dimitry


--Apple-Mail=_FF5232AC-1708-42BC-B272-05D6564D5046
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZDxE/gAKCRCwXqMKLiCW
o6jZAJwO7yspX9XGkebtQL5M03UM2Fb5FACgip+8EDBmW8w05oKRqv5wj/QnmCA=
=xfc6
-----END PGP SIGNATURE-----

--Apple-Mail=_FF5232AC-1708-42BC-B272-05D6564D5046--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8D28DB36-A00A-4019-BB9D-D39F4C17405D>