<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - undefined reference to dumpToStream with LLVM_ENABLE_MODULES"
   href="https://bugs.llvm.org/show_bug.cgi?id=46620">46620</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>undefined reference to dumpToStream with LLVM_ENABLE_MODULES
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Modules
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>trass3r@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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'

<a href="https://github.com/Trass3r/llvm-project/runs/842487895">https://github.com/Trass3r/llvm-project/runs/842487895</a>
works without modules:
<a href="https://github.com/Trass3r/llvm-project/runs/845192334">https://github.com/Trass3r/llvm-project/runs/845192334</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>