Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 12:59:15 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "O. Hartmann" <ohartmann@walstatt.org>
Cc:        Gary Jennejohn <gljennjohn@gmail.com>, Lev Serebryakov <lev@FreeBSD.org>, freebsd-current@freebsd.org
Subject:   Re: r111 build error
Message-ID:  <C588D50F-21B4-4B2F-9B51-850EF7D6DE24@FreeBSD.org>
In-Reply-To: <20181212102455.102e8024@thor.intern.walstatt.dynvpn.de>
References:  <1348923530.20181212021110@serebryakov.spb.ru> <20181212100602.332da246@ernst.home> <20181212102455.102e8024@thor.intern.walstatt.dynvpn.de>

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

--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 <ohartmann@walstatt.org> wrote:
>=20
> Am Wed, 12 Dec 2018 10:06:02 +0100
> Gary Jennejohn <gljennjohn@gmail.com> schrieb:
>=20
> > On Wed, 12 Dec 2018 02:11:10 +0300
> > Lev Serebryakov <lev@FreeBSD.org> 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<clang::ReturnStmt>::_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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C588D50F-21B4-4B2F-9B51-850EF7D6DE24>