[llvm-bugs] [Bug 34140] New: libclang fails to build using gcc 7.1

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 9 23:15:39 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34140

            Bug ID: 34140
           Summary: libclang fails to build using gcc 7.1
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: klimek at google.com, llvm-bugs at lists.llvm.org
            Blocks: 33849

cd
"/build/llvm-toolchain-5.0-5.0~svn310538/build-llvm/tools/clang/tools/libclang"
&& /usr/bin/cmake -E cmake_link_script CMakeFiles/libclang.dir/link.txt
--verbose=1
/usr/bin/g++-7 -fPIC -std=c++0x -gsplit-dwarf -Wl,-fuse-ld=gold -fPIC
-fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual
-fno-strict-aliasing -O2 -g -DNDEBUG 
-Wl,-rpath-link,/build/llvm-toolchain-5.0-5.0~svn310538/build-llvm/./lib 
-Wl,-O3 -Wl,--gc-sections 
-Wl,--version-script,/build/llvm-toolchain-5.0-5.0~svn310538/build-llvm/tools/clang/tools/libclang/libclang.exports
-Wl,-z,relro -Wl,-z,defs -shared -Wl,-soname,libclang-5.0.so.1 -o
../../../../lib/libclang-5.0.so.1 CMakeFiles/libclang.dir/ARCMigrate.cpp.o
CMakeFiles/libclang.dir/BuildSystem.cpp.o CMakeFiles/libclang.dir/CIndex.cpp.o
CMakeFiles/libclang.dir/CIndexCXX.cpp.o
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o
CMakeFiles/libclang.dir/CIndexDiagnostic.cpp.o
CMakeFiles/libclang.dir/CIndexHigh.cpp.o
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o
CMakeFiles/libclang.dir/CIndexUSRs.cpp.o CMakeFiles/libclang.dir/CIndexer.cpp.o
CMakeFiles/libclang.dir/CXComment.cpp.o CMakeFiles/libclang.dir/CXCursor.cpp.o
CMakeFiles/libclang.dir/CXIndexDataConsumer.cpp.o
CMakeFiles/libclang.dir/CXCompilationDatabase.cpp.o
CMakeFiles/libclang.dir/CXLoadedDiagnostic.cpp.o
CMakeFiles/libclang.dir/CXSourceLocation.cpp.o
CMakeFiles/libclang.dir/CXStoredDiagnostic.cpp.o
CMakeFiles/libclang.dir/CXString.cpp.o CMakeFiles/libclang.dir/CXType.cpp.o
CMakeFiles/libclang.dir/Indexing.cpp.o -Wl,-rpath,"\$ORIGIN/../lib"
../../../../lib/libclangAST.a ../../../../lib/libclangBasic.a
../../../../lib/libclangFrontend.a ../../../../lib/libclangIndex.a
../../../../lib/libclangLex.a ../../../../lib/libclangSema.a
../../../../lib/libclangTooling.a ../../../../lib/libclangARCMigrate.a
../../../../lib/libclangTidyPlugin.a
../../../../lib/libclangIncludeFixerPlugin.a -ldl
../../../../lib/libclangTidyAndroidModule.a
../../../../lib/libclangTidyBoostModule.a
../../../../lib/libclangTidyCERTModule.a
../../../../lib/libclangTidyCppCoreGuidelinesModule.a
../../../../lib/libclangTidyGoogleModule.a
../../../../lib/libclangTidyLLVMModule.a
../../../../lib/libclangTidyMiscModule.a
../../../../lib/libclangTidyModernizeModule.a
../../../../lib/libclangTidyMPIModule.a
../../../../lib/libclangTidyPerformanceModule.a
../../../../lib/libclangTidyReadabilityModule.a
../../../../lib/libclangTidyUtils.a ../../../../lib/libclangTidy.a
../../../../lib/libclangStaticAnalyzerFrontend.a
../../../../lib/libclangStaticAnalyzerCheckers.a
../../../../lib/libclangStaticAnalyzerCore.a
../../../../lib/libclangIncludeFixer.a ../../../../lib/libfindAllSymbols.a
../../../../lib/libclangTooling.a ../../../../lib/libclangFrontend.a
../../../../lib/libclangParse.a ../../../../lib/libclangSerialization.a
../../../../lib/libclangSema.a ../../../../lib/libclangEdit.a
../../../../lib/libclangAnalysis.a ../../../../lib/libclangDriver.a
../../../../lib/libclangFormat.a ../../../../lib/libclangToolingCore.a
../../../../lib/libclangRewrite.a ../../../../lib/libclangASTMatchers.a
../../../../lib/libclangAST.a ../../../../lib/libclangLex.a
../../../../lib/libclangBasic.a ../../../../lib/libLLVM-5.0.so.1 -lpthread 
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0x126c): error: undefined
reference to
'clang::ObjCInterfaceDecl::isKnownExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0x3390): error: undefined
reference to 'clang::ObjCMethodDecl::isClassMethod() const'
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0x470c): error: undefined
reference to
'clang::ObjCInterfaceDecl::isVisibleCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0x475c): error: undefined
reference to 'clang::ObjCMethodDecl::isInstanceMethod() const'
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0x7b14): error: undefined
reference to
'clang::ObjCInterfaceDecl::isVisibleExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0x8df4): error: undefined
reference to 'clang::ObjCPropertyDecl::isInstanceProperty() const'
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0xb56c): error: undefined
reference to
'clang::ObjCInterfaceDecl::isKnownCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndex.cpp.o(.debug_addr+0xc528): error: undefined
reference to 'clang::ObjCPropertyDecl::isClassProperty() const'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x1a8): error:
undefined reference to 'clang::ObjCMethodDecl::isClassMethod() const'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x934): error:
undefined reference to 'clang::ObjCMethodDecl::isInstanceMethod() const'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x938): error:
undefined reference to
'clang::ObjCInterfaceDecl::isKnownExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x11cc): error:
undefined reference to
'clang::ObjCInterfaceDecl::isVisibleCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x19c8): error:
undefined reference to 'clang::ObjCPropertyDecl::isInstanceProperty() const'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x2044): error:
undefined reference to
'clang::ObjCInterfaceDecl::isKnownCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x2504): error:
undefined reference to
'clang::ObjCInterfaceDecl::isVisibleExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o(.debug_addr+0x25e8): error:
undefined reference to 'clang::ObjCPropertyDecl::isClassProperty() const'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0x4c4): error: undefined
reference to
'clang::ObjCInterfaceDecl::isKnownCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0x544): error: undefined
reference to 'clang::ObjCMethodDecl::isInstanceMethod() const'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0x7c8): error: undefined
reference to
'clang::ObjCInterfaceDecl::isVisibleCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0xbbc): error: undefined
reference to
'clang::ObjCInterfaceDecl::isVisibleExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0xecc): error: undefined
reference to
'clang::ObjCInterfaceDecl::isKnownExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0xfb4): error: undefined
reference to 'clang::ObjCPropertyDecl::isClassProperty() const'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0x11f4): error: undefined
reference to 'clang::ObjCPropertyDecl::isInstanceProperty() const'
CMakeFiles/libclang.dir/CIndexHigh.cpp.o(.debug_addr+0x14d4): error: undefined
reference to 'clang::ObjCMethodDecl::isClassMethod() const'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x1ac): error:
undefined reference to
'clang::ObjCInterfaceDecl::isKnownExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x1dc): error:
undefined reference to
'clang::ObjCInterfaceDecl::isVisibleCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x1e0): error:
undefined reference to
'clang::ObjCInterfaceDecl::isVisibleExtension(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x1f8): error:
undefined reference to 'clang::ObjCPropertyDecl::isInstanceProperty() const'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x228): error:
undefined reference to 'clang::ObjCMethodDecl::isClassMethod() const'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x244): error:
undefined reference to 'clang::ObjCPropertyDecl::isClassProperty() const'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x250): error:
undefined reference to
'clang::ObjCInterfaceDecl::isKnownCategory(clang::ObjCCategoryDecl*)'
CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o(.debug_addr+0x288): error:
undefined reference to 'clang::ObjCMethodDecl::isInstanceMethod() const'
../../../../lib/libclangTidyCERTModule.a(StaticObjectExceptionCheck.cpp.o)(.debug_addr+0x9718):
error: undefined reference to
'clang::tidy::matchers::isReferenceToConst_getInstance()'
../../../../lib/libclangTidyCERTModule.a(ThrownExceptionTypeCheck.cpp.o)(.debug_addr+0x2240):
error: undefined reference to
'clang::tidy::matchers::isReferenceToConst_getInstance()'
../../../../lib/libclangTidyCppCoreGuidelinesModule.a(NoMallocCheck.cpp.o)(.debug_addr+0x12a8):
error: undefined reference to
'clang::tidy::matchers::isReferenceToConst_getInstance()'
../../../../lib/libclangTidyCppCoreGuidelinesModule.a(ProTypeMemberInitCheck.cpp.o)(.debug_addr+0x6434):
error: undefined reference to
'clang::tidy::matchers::isReferenceToConst_getInstance()'
collect2: error: ld returned 1 exit status

On a clean Debian unstable install with


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=33849
[Bug 33849] [meta] 5.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170810/811507c5/attachment-0001.html>


More information about the llvm-bugs mailing list