From owner-freebsd-current@freebsd.org Wed Dec 12 11:59:22 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C942A133A8D3 for ; Wed, 12 Dec 2018 11:59:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (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)) by mx1.freebsd.org (Postfix) with ESMTPS id 4283F8CAB3; Wed, 12 Dec 2018 11:59:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [192.168.1.32] (095-096-143-063.static.chello.nl [95.96.143.63]) (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 80406487C; Wed, 12 Dec 2018 12:59:19 +0100 (CET) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_0154384F-B63A-498A-B3E3-1DCDFCF2294D"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: r111 build error Date: Wed, 12 Dec 2018 12:59:15 +0100 In-Reply-To: <20181212102455.102e8024@thor.intern.walstatt.dynvpn.de> Cc: Gary Jennejohn , Lev Serebryakov , freebsd-current@freebsd.org To: "O. Hartmann" References: <1348923530.20181212021110@serebryakov.spb.ru> <20181212100602.332da246@ernst.home> <20181212102455.102e8024@thor.intern.walstatt.dynvpn.de> X-Mailer: Apple Mail (2.3445.9.1) 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: Wed, 12 Dec 2018 11:59:22 -0000 --Apple-Mail=_0154384F-B63A-498A-B3E3-1DCDFCF2294D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Dec 2018, at 10:24, O. Hartmann wrote: >=20 > Am Wed, 12 Dec 2018 10:06:02 +0100 > Gary Jennejohn schrieb: >=20 > > On Wed, 12 Dec 2018 02:11:10 +0300 > > Lev Serebryakov wrote: > > > > > Hello Freebsd-current, > > > > > > I'm building very last r341836 (with new llvm/clang 7) on r341726 = and get this build > > > error (with MALLOC_PRODUCTION=3Dyes): > > > > > > > Worked for me from r341824 to r341840, but I deleted /usr/obj/usr > > before starting the build. I even added MALLOC_PRODUCTION=3Dyes to > > /etc/src.conf. >=20 > A "me, too" from here. I have also MALLOC_PRODUCTION=3Dyes in = /etc/src.conf, but I did, as > usual, a "make cleanworld" prior to the sebsequent system's = buildworld/buildkernel. >=20 > > > > > =3D=3D=3D> usr.bin/clang/clang (all) > > > c++ -target x86_64-unknown-freebsd13.0 = --sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp > > > -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe > > > -I/usr/obj/usr/src/amd64.amd64/lib/clang/libclang > > > -I/usr/obj/usr/src/amd64.amd64/lib/clang/libllvm > > > -I/usr/src/contrib/llvm/tools/clang/include -DCLANG_ENABLE_ARCMT > > > -DCLANG_ENABLE_STATIC_ANALYZER -I/usr/src/lib/clang/include > > > -I/usr/src/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL = -D__STDC_LIMIT_MACROS > > > -D__STDC_CONSTANT_MACROS = -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd13.0\" > > > -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd13.0\" = -DDEFAULT_SYSROOT=3D\"\" > > > -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM = -DLLVM_TARGET_ENABLE_MIPS > > > -DLLVM_TARGET_ENABLE_POWERPC -DLLVM_TARGET_ENABLE_SPARC = -DLLVM_TARGET_ENABLE_X86 > > > -DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser > > > -DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter > > > -DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler > > > -DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target = -DLLVM_NATIVE_TARGETINFO=3DLLVMInit > > ia > > > lizeX86TargetInfo = -DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC > > > -ffunction-sections -fdata-sections -gline-tables-only = -fstack-protector-strong > > > -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-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 = -std=3Dc++11 > > > -fno-exceptions -fno-rtti -stdlib=3Dlibc++ -Wno-c++11-extensions = -Wl,--gc-sections > > > -static -o clang.full cc1_main.o cc1as_main.o = cc1gen_reproducer_main.o > > > driver.o = /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a = /usr/obj/usr/src/amd64.amd64/lib/clang/libllvm/libllvm.a > > > -lz -lncursesw -lpthread ld: error: undefined symbol: > > > clang::LocationContext::getCurrentStackFrame() const > > > >>> referenced by ExplodedGraph.h:138 > > > >>> = (/usr/src/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathS= ensitive/ExplodedGraph.h:138) > > > >>> ReturnUndefChecker.o:(void > > > >>> = clang::ento::check::PreStmt::_checkStmt<(anonymous > > > >>> namespace)::ReturnUndefChecker>(void*, clang::Stmt const*, > > > >>> clang::ento::CheckerContext&)) in > > > >>> archive = /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a > > > > > > ld: error: undefined symbol: clang::CallExpr::getLocStart() const > > > >>> referenced by MacOSXAPIChecker.cpp:86 > > > >>> = (/usr/src/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPICh= ecker.cpp:86) > > > >>> MacOSXAPIChecker.o:((anonymous > > > >>> = namespace)::MacOSXAPIChecker::CheckDispatchOnce(clang::ento::CheckerContex= t&, > > > >>> clang::CallExpr const*, llvm::StringRef) const) in > > > >>> archive = /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a Any ideas on how to reproduce this build failure? I have run multiple universe builds before committing this update, and I never saw any error which resembles the above. It almost looks as if your libclang.a is not rebuilt properly, or not built at all. Can you show the time stamps of: /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a /usr/obj/usr/src/amd64.amd64/lib/clang/libllvm/libllvm.a -Dimitry --Apple-Mail=_0154384F-B63A-498A-B3E3-1DCDFCF2294D 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXBD4EwAKCRCwXqMKLiCW ozM9AJ9z/QSTrk9dGH/M9SrX02y8NW+QhwCgvR6e4We3nKA/LxvkeRkUt4z1rnM= =d2pq -----END PGP SIGNATURE----- --Apple-Mail=_0154384F-B63A-498A-B3E3-1DCDFCF2294D--