From owner-freebsd-current@freebsd.org Sun Mar 29 12:03:03 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2C1D227CD8D for ; Sun, 29 Mar 2020 12:03:03 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48qvP23KWDz4Z2Z; Sun, 29 Mar 2020 12:03:02 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 435B919F6E; Sun, 29 Mar 2020 11:56:06 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::c4c6:21d:89e:cb28] (unknown [IPv6:2001:470:7a58:0:c4c6:21d:89e:cb28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 66C455AD36; Sun, 29 Mar 2020 13:56:04 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_1E25C698-063A-4B43-8E10-A394F073D31F"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: kernel build failed Date: Sun, 29 Mar 2020 13:55:55 +0200 In-Reply-To: <1829bb5e-22aa-ca15-de07-2a930dacbe3c@shurik.kiev.ua> Cc: freebsd-current@freebsd.org To: Alexandr Krivulya References: <672d55ce-0949-2397-0a3c-3a86020381a4@shurik.kiev.ua> <20200328123542.GR1511@albert.catwhisker.org> <4ee54436-0c15-41c3-3581-053da0a08181@shurik.kiev.ua> <9E22D99A-63CB-4CCB-B3C1-3838F1769BED@FreeBSD.org> <1829bb5e-22aa-ca15-de07-2a930dacbe3c@shurik.kiev.ua> X-Mailer: Apple Mail (2.3445.104.14) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2020 12:03:03 -0000 --Apple-Mail=_1E25C698-063A-4B43-8E10-A394F073D31F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 29 Mar 2020, at 13:02, Alexandr Krivulya = wrote: >=20 > 28.03.20 18:32, Dimitry Andric =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> On 28 Mar 2020, at 13:48, Alexandr Krivulya = 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...) >>=20 >=20 > I have updated source tree to r359419 and now make builworld failed = with an error: >=20 > --- 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=3D\"x86_64-unknown-freebsd13.0\" = -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd13.0\" = -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 -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=3Dc++14 -stdlib=3Dlibc++ = -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 > ^~~~~~~~~~~~~ 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 --Apple-Mail=_1E25C698-063A-4B43-8E10-A394F073D31F 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXoCMywAKCRCwXqMKLiCW oxPyAKDg/dZzsRS+beCQ6RIq+MSZxb+CcACcDGWS9VeYQjKOFA4TZBvA5Wjt3hg= =u/W6 -----END PGP SIGNATURE----- --Apple-Mail=_1E25C698-063A-4B43-8E10-A394F073D31F--