<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Cannot build DebugInfo/{CodeView,PDB} in -DLLVM_ENABLE_MODULES mode"
   href="https://llvm.org/bugs/show_bug.cgi?id=28384">28384</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot build DebugInfo/{CodeView,PDB} in -DLLVM_ENABLE_MODULES mode
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </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>DebugInfo
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vsk@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I tried to build the `check-clang` target in ToT llvm+clang with
-DLLVM_ENABLE_MODULES turned on, but saw two errors:

[8/372] Building CXX object
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/MappedBlockStream.cpp.o
FAILED: /Users/vk/scripts/ccache-c++   -DGTEST_HAS_RTTI=0 -D_DEBUG
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Ilib/DebugInfo/PDB -I../lib/DebugInfo/PDB -Iinclude -I../include -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=date-time -std=c++11 -fmodules -fmodules-cache-path=module.cache
-fcxx-modules -gmodules -fcolor-diagnostics -g -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
   -fno-exceptions -fno-rtti -MMD -MT
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/MappedBlockStream.cpp.o
-MF
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/MappedBlockStream.cpp.o.d
-o
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/MappedBlockStream.cpp.o
-c ../lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp
../lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp:38:20: error: definition of
'StreamInterface' must be imported from module
'LLVM_DebugInfo_PDB.Raw.DbiStream' before it is required
MappedBlockStream::MappedBlockStream(std::unique_ptr<IPDBStreamData> Data,
                   ^
../include/llvm/DebugInfo/CodeView/StreamInterface.h:27:7: note: previous
definition is here
class StreamInterface {
      ^
1 error generated.
[8/372] Building CXX object
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/ModStream.cpp.o
FAILED: /Users/vk/scripts/ccache-c++   -DGTEST_HAS_RTTI=0 -D_DEBUG
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Ilib/DebugInfo/PDB -I../lib/DebugInfo/PDB -Iinclude -I../include -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=date-time -std=c++11 -fmodules -fmodules-cache-path=module.cache
-fcxx-modules -gmodules -fcolor-diagnostics -g -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
   -fno-exceptions -fno-rtti -MMD -MT
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/ModStream.cpp.o -MF
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/ModStream.cpp.o.d -o
lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/ModStream.cpp.o -c
../lib/DebugInfo/PDB/Raw/ModStream.cpp
../lib/DebugInfo/PDB/Raw/ModStream.cpp:77:26: error: declaration of
'ModuleSubstreamArray' must be imported from module
'LLVM_DebugInfo_PDB.Raw.DbiStream' before it is required
iterator_range<codeview::ModuleSubstreamArray::Iterator>
                         ^
../include/llvm/DebugInfo/CodeView/ModuleSubstream.h:83:41: note: previous
declaration is here
typedef VarStreamArray<ModuleSubstream> ModuleSubstreamArray;
                                        ^
1 error generated.</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>