[llvm-bugs] [Bug 46620] New: undefined reference to dumpToStream with LLVM_ENABLE_MODULES

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 7 07:09:52 PDT 2020


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

            Bug ID: 46620
           Summary: undefined reference to dumpToStream with
                    LLVM_ENABLE_MODULES
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: trass3r at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Ubuntu 20.04
$ CC=clang CXX=clang++ cmake
-DLLVM_ENABLE_PROJECTS="clang;compiler-rt;lld;clang-tools-extra"
-DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_DUMP=ON -DLLVM_INCLUDE_EXAMPLES=OFF
-DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_TESTS=OFF
-DCLANG_INCLUDE_TESTS=OFF -DCLANG_INCLUDE_DOCS=OFF -DCLANG_ENABLE_ARCMT=OFF
-DLLVM_ENABLE_MODULES=ON -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON
-DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_PREFIX=/opt/clang -DCMAKE_CXX_FLAGS=-march=native -ftime-trace
-Og -DLLVM_BINUTILS_INCDIR=/usr/include -DLLVM_USE_SPLIT_DWARF=ON
-DLLVM_ENABLE_LLD=ON -DBUILD_SHARED_LIBS=ON -GNinja ../llvm

tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/ASTConsumers.cpp.o:
in function `clang::ento::CheckerInfo::dump() const':
clang/include/clang/StaticAnalyzer/Core/CheckerRegistryData.h:138: undefined
reference to `clang::ento::CheckerInfo::dumpToStream(llvm::raw_ostream&) const'
tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/ASTConsumers.cpp.o:
in function `clang::ento::CmdLineOption::dump() const':
clang/include/clang/StaticAnalyzer/Core/CheckerRegistryData.h:79: undefined
reference to `clang::ento::CmdLineOption::dumpToStream(llvm::raw_ostream&)
const'
tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/ASTConsumers.cpp.o:
in function `clang::ento::PackageInfo::dump() const':
clang/include/clang/StaticAnalyzer/Core/CheckerRegistryData.h:158: undefined
reference to `clang::ento::PackageInfo::dumpToStream(llvm::raw_ostream&) const'

https://github.com/Trass3r/llvm-project/runs/842487895
works without modules:
https://github.com/Trass3r/llvm-project/runs/845192334

-- 
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/20200707/8477577d/attachment.html>


More information about the llvm-bugs mailing list