Re: r111 build error

From: Gary Jennejohn <gljennjohn_at_gmail.com>
Date: Wed, 12 Dec 2018 10:06:02 +0100
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.

> ===> 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  
> 
> ld: error: undefined symbol: clang::Stmt::getLocStart() const
> >>> referenced by DeadStoresChecker.cpp:265 (/usr/src/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp:265)
> >>>               DeadStoresChecker.o:((anonymous namespace)::DeadStoreObs::observeStmt(clang::Stmt const*, clang::CFGBlock const*, clang::LiveVariables::LivenessValues const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::CodeSegAttr::clone(clang::ASTContext&) const
> >>> referenced by SemaDecl.cpp:0 (/usr/src/contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp:0)
> >>>               SemaDecl.o:(clang::Sema::getImplicitCodeSegOrSectionAttrForFunction(clang::FunctionDecl const*, bool)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::ArtificialAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:150 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:150)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::CPUDispatchAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:243 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:243)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::CodeSegAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:303 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:303)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::LifetimeBoundAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:502 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:502)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::RISCVInterruptAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:881 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:881)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::TrivialABIAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:1040 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:1040)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::OMPReferencedVarAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:707 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:707)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::AnyX86NoCfCheckAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:138 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:138)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::MinVectorWidthAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:575 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:575)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::NoStackProtectorAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:671 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:671)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> ld: error: undefined symbol: clang::CPUSpecificAttr::clone(clang::ASTContext&) const
> >>> referenced by AttrTemplateInstantiate.inc:247 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Sema/AttrTemplateInstantiate.inc:247)
> >>>               SemaTemplateInstantiateDecl.o:(clang::sema::instantiateTemplateAttribute(clang::Attr const*, clang::ASTContext&, clang::Sema&, clang::MultiLevelTemplateArgumentList const&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::HeaderSearch::lookupModule(llvm::StringRef, bool)
> >>> referenced by GeneratePCH.cpp:51 (/usr/src/contrib/llvm/tools/clang/lib/Serialization/GeneratePCH.cpp:51)
> >>>               GeneratePCH.o:(clang::PCHGenerator::HandleTranslationUnit(clang::ASTContext&)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::Stmt::getLocStart() const
> >>> referenced by SelectorLocationsKind.cpp:52 (/usr/src/contrib/llvm/tools/clang/lib/AST/SelectorLocationsKind.cpp:52)
> >>>               SelectorLocationsKind.o:(clang::hasStandardSelectorLocs(clang::Selector, llvm::ArrayRef<clang::SourceLocation>, llvm::ArrayRef<clang::Expr*>, clang::SourceLocation)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::Stmt::getLocStart() const
> >>> referenced by SelectorLocationsKind.cpp:52 (/usr/src/contrib/llvm/tools/clang/lib/AST/SelectorLocationsKind.cpp:52)
> >>>               SelectorLocationsKind.o:(clang::hasStandardSelectorLocs(clang::Selector, llvm::ArrayRef<clang::SourceLocation>, llvm::ArrayRef<clang::Expr*>, clang::SourceLocation)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::Stmt::getLocStart() const
> >>> referenced by SelectorLocationsKind.cpp:52 (/usr/src/contrib/llvm/tools/clang/lib/AST/SelectorLocationsKind.cpp:52)
> >>>               SelectorLocationsKind.o:(clang::getStandardSelectorLoc(unsigned int, clang::Selector, bool, llvm::ArrayRef<clang::Expr*>, clang::SourceLocation)) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: undefined symbol: clang::operator<<(llvm::raw_ostream&, clang::VersionTuple const&)
> >>> referenced by AttrImpl.inc:1216 (/usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/AST/AttrImpl.inc:1216)
> >>>               AttrImpl.o:(clang::AvailabilityAttr::printPretty(llvm::raw_ostream&, clang::PrintingPolicy const&) const) in archive /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/libclang.a  
> 
> ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
> c++: error: linker command failed with exit code 1 (use -v to see invocation)
> *** [clang.full] Error code 1
> 
> 
> 
> -- 
> Best regards,
>  Lev                          mailto:lev_at_FreeBSD.org
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"


-- 
Gary Jennejohn
Received on Wed Dec 12 2018 - 08:06:13 UTC

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