Re: Buildworld dying wint lldb?

From: <yp_at_mm.st>
Date: Thu, 13 Feb 2020 10:22:07 +0300
Steve Kargl wrote:
> Anyone else see
> 
> ===> usr.bin/clang/lldb (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/src/contrib/llvm-project/lldb/include -I/usr/obj/usr/src/amd64.amd64/usr.bin/clang/lldb -march=bdver2 -I/usr/src/contrib/llvm-project/clang/include -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_STATIC_ANALYZER -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=\"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_RISCV -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=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sections -gline-tables-only -Wno-format-zero-length -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 -fno-exceptions -fno-rtti -std=c++11 -stdlib=libc++ -Wno-c++11-extensions  -Wl,--gc-sections   -o lldb.full  Driver.o /usr/obj/usr/src/amd64.amd64/lib/clang/liblldb/liblldb.a /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a /usr/obj/usr/src/amd64.amd64/lib/clang/libllvm/libllvm.a  -ledit  -lexecinfo  -lpanel  -lncursesw   -lz -lpthread
> ld: error: undefined symbol: lldb_private::ClangModulesDeclVendor::Create(lldb_private::Target&)
>>>> referenced by Target.cpp:2487 (/usr/src/contrib/llvm-project/lldb/source/Target/Target.cpp:2487)
> 
> 
> This is 'make buildworld' with an empty //usr/obj.
> 
> My /etc/sr.conf has
> 
> WITHOUT_TESTS="yes"
> WITH_LLDB="yes"

Looking at src.conf(5), this is already default setting for amd64.  And 
given that it's default, no, I'm not seeing this doing buildworld with 
recent checkouts.

> WITH_BSD_GREP="YES"
> 
> WITH_LLVM_TARGET_AARCH64="NO"
> WITH_LLVM_TARGET_ARM="NO"
> WITH_LLVM_TARGET_MIPS="NO"
> WITH_LLVM_TARGET_POWERPC="NO"
> WITH_LLVM_TARGET_SPARC="NO"
> WITH_LLVM_TARGET_X86="YES"

These settings don't do what you likely expect them to do as src.conf(5) 
explicitly states (and confirmed by your build log excerpt above):

      The values of variables are ignored regardless of their setting;
      even if they would be set to “FALSE” or “NO”.

So you'd want the WITHOUT ones.
Received on Thu Feb 13 2020 - 06:22:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC