[llvm-bugs] [Bug 28384] New: Cannot build DebugInfo/{CodeView, PDB} in -DLLVM_ENABLE_MODULES mode

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 1 07:54:12 PDT 2016


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

            Bug ID: 28384
           Summary: Cannot build DebugInfo/{CodeView,PDB} in
                    -DLLVM_ENABLE_MODULES mode
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: vsk at apple.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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.

-- 
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/20160701/be00ceec/attachment.html>


More information about the llvm-bugs mailing list