On 12 Dec 2018, at 10:24, O. Hartmann <ohartmann_at_walstatt.org> wrote: > > Am Wed, 12 Dec 2018 10:06:02 +0100 > Gary Jennejohn <gljennjohn_at_gmail.com> schrieb: > > > On Wed, 12 Dec 2018 02:11:10 +0300 > > Lev Serebryakov <lev_at_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=yes): > > > > > > > Worked for me from r341824 to r341840, but I deleted /usr/obj/usr > > before starting the build. I even added MALLOC_PRODUCTION=yes to > > /etc/src.conf. > > A "me, too" from here. I have also MALLOC_PRODUCTION=yes in /etc/src.conf, but I did, as > usual, a "make cleanworld" prior to the sebsequent system's buildworld/buildkernel. > > > > > > ===> usr.bin/clang/clang (all) > > > c++ -target x86_64-unknown-freebsd13.0 --sysroot=/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=\"x86_64-unknown-freebsd13.0\" > > > -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.0\" -DDEFAULT_SYSROOT=\"\" > > > -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=LLVMInitializeX86AsmParser > > > -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter > > > -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler > > > -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInit > > ia > > > lizeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC > > > -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=c++11 > > > -fno-exceptions -fno-rtti -stdlib=libc++ -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/PathSensitive/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/MacOSXAPIChecker.cpp:86) > > > >>> MacOSXAPIChecker.o:((anonymous > > > >>> namespace)::MacOSXAPIChecker::CheckDispatchOnce(clang::ento::CheckerContext&, > > > >>> 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
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC