<div dir="ltr">I was just trying to build lldb-6.0 from source (and had previously successfully build llvm-6.0, clang-6.0, and lld-6.0 from source), but received a compile error while using both just cmake and cmake+ninja<div><div><br></div><div>Does this look familiar to anyone?</div><div><br></div><div><br></div><div><br></div><div><div>In file included from llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89:</div><div>In file included from llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17:</div><div>In file included from llvm/DebugInfo/PDB/IPDBSession.h:13:</div><div>In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13:</div><div>In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14:</div><div>In file included from llvm/DebugInfo/PDB/PDBTypes.h:13:</div><div>In file included from llvm/DebugInfo/CodeView/CodeView.h:509:</div><div>llvm/DebugInfo/CodeView/CodeViewRegisters.def:78:13: error: expected identifier</div><div>CV_REGISTER(CR0, 80)</div><div>            ^</div><div>/usr/include/sys/termios.h:184:14: note: expanded from macro 'CR0'</div><div>#define         CR0     0x00000000</div><div>                        ^</div><div>In file included from llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89:</div><div>In file included from llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17:</div><div>In file included from llvm/DebugInfo/PDB/IPDBSession.h:13:</div><div>In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13:</div><div>In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14:</div><div>In file included from llvm/DebugInfo/PDB/PDBTypes.h:13:</div><div>In file included from llvm/DebugInfo/CodeView/CodeView.h:509:</div><div>llvm/DebugInfo/CodeView/CodeViewRegisters.def:79:13: error: expected identifier</div><div>CV_REGISTER(CR1, 81)</div><div>            ^</div><div>/usr/include/sys/termios.h:185:14: note: expanded from macro 'CR1'</div><div>#define         CR1     0x00001000</div><div>                        ^</div><div>In file included from llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89:</div><div>In file included from llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17:</div><div>In file included from llvm/DebugInfo/PDB/IPDBSession.h:13:</div><div>In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13:</div><div>In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14:</div><div>In file included from llvm/DebugInfo/PDB/PDBTypes.h:13:</div><div>In file included from llvm/DebugInfo/CodeView/CodeView.h:509:</div><div>llvm/DebugInfo/CodeView/CodeViewRegisters.def:80:13: error: expected identifier</div><div>CV_REGISTER(CR2, 82)</div><div>            ^</div><div>/usr/include/sys/termios.h:186:14: note: expanded from macro 'CR2'</div><div>#define         CR2     0x00002000</div><div>                        ^</div><div>In file included from llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89:</div><div>In file included from llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17:</div><div>In file included from llvm/DebugInfo/PDB/IPDBSession.h:13:</div><div>In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13:</div><div>In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14:</div><div>In file included from llvm/DebugInfo/PDB/PDBTypes.h:13:</div><div>In file included from llvm/DebugInfo/CodeView/CodeView.h:509:</div><div>llvm/DebugInfo/CodeView/CodeViewRegisters.def:81:13: error: expected identifier</div><div>CV_REGISTER(CR3, 83)</div><div>            ^</div><div>/usr/include/sys/termios.h:187:14: note: expanded from macro 'CR3'</div><div>#define         CR3     0x00003000</div><div>                        ^</div><div>4 errors generated.</div><div>make[2]: *** [source/API/CMakeFiles/liblldb.dir/SystemInitializerFull.cpp.o] Error 1</div><div>make[1]: *** [source/API/CMakeFiles/liblldb.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><br></div></div></div>