Jonas Devlieghere via llvm-dev
2018-May-16 18:54 UTC
[llvm-dev] Compile error while building LLDB
I'm still trying to figure this out. On one of my machines it went away after a clean install even though my configuration is exactly the same. I'll let you know once I know more. On Wed, May 16, 2018 at 5:28 PM Davide Italiano <davide at freebsd.org> wrote:> + Jonas who hit the same bug recently. > > On Wed, May 16, 2018 at 8:01 AM, Eric Gorr via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > 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 > > > > Does this look familiar to anyone? > > > > > > > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:78:13: error: expected > > identifier > > CV_REGISTER(CR0, 80) > > ^ > > /usr/include/sys/termios.h:184:14: note: expanded from macro 'CR0' > > #define CR0 0x00000000 > > ^ > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:79:13: error: expected > > identifier > > CV_REGISTER(CR1, 81) > > ^ > > /usr/include/sys/termios.h:185:14: note: expanded from macro 'CR1' > > #define CR1 0x00001000 > > ^ > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:80:13: error: expected > > identifier > > CV_REGISTER(CR2, 82) > > ^ > > /usr/include/sys/termios.h:186:14: note: expanded from macro 'CR2' > > #define CR2 0x00002000 > > ^ > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:81:13: error: expected > > identifier > > CV_REGISTER(CR3, 83) > > ^ > > /usr/include/sys/termios.h:187:14: note: expanded from macro 'CR3' > > #define CR3 0x00003000 > > ^ > > 4 errors generated. > > make[2]: *** > [source/API/CMakeFiles/liblldb.dir/SystemInitializerFull.cpp.o] > > Error 1 > > make[1]: *** [source/API/CMakeFiles/liblldb.dir/all] Error 2 > > make: *** [all] Error 2 > > > > > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > > > > -- > Davide > > "There are no solved problems; there are only problems that are more > or less solved" -- Henri Poincare >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180516/12336f2e/attachment-0001.html>
Zachary Turner via llvm-dev
2018-May-26 02:56 UTC
[llvm-dev] Compile error while building LLDB
Sounds like we have an issue in the CodeView headers related to a duplicate symbol. While this doesn't entirely surprise me after seeing the error, I'm also not sure why this problem is only just happening now. Ultimately what's happening is we have this enumeration: enum class RegisterId : uint16_t { ... CR3, ... }; But your termios.h file also has a #define for CR3. I guess one possible fix would be to rename these to something like CVRegCR3. On Wed, May 16, 2018 at 11:54 AM Jonas Devlieghere via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I'm still trying to figure this out. On one of my machines it went away > after a clean install even though my configuration is exactly the same. > I'll let you know once I know more. > > On Wed, May 16, 2018 at 5:28 PM Davide Italiano <davide at freebsd.org> > wrote: > >> + Jonas who hit the same bug recently. >> >> On Wed, May 16, 2018 at 8:01 AM, Eric Gorr via llvm-dev >> <llvm-dev at lists.llvm.org> wrote: >> > 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 >> > >> > Does this look familiar to anyone? >> > >> > >> > >> > In file included from >> > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: >> > In file included from >> > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: >> > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: >> > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: >> > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: >> > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: >> > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: >> > llvm/DebugInfo/CodeView/CodeViewRegisters.def:78:13: error: expected >> > identifier >> > CV_REGISTER(CR0, 80) >> > ^ >> > /usr/include/sys/termios.h:184:14: note: expanded from macro 'CR0' >> > #define CR0 0x00000000 >> > ^ >> > In file included from >> > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: >> > In file included from >> > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: >> > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: >> > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: >> > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: >> > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: >> > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: >> > llvm/DebugInfo/CodeView/CodeViewRegisters.def:79:13: error: expected >> > identifier >> > CV_REGISTER(CR1, 81) >> > ^ >> > /usr/include/sys/termios.h:185:14: note: expanded from macro 'CR1' >> > #define CR1 0x00001000 >> > ^ >> > In file included from >> > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: >> > In file included from >> > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: >> > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: >> > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: >> > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: >> > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: >> > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: >> > llvm/DebugInfo/CodeView/CodeViewRegisters.def:80:13: error: expected >> > identifier >> > CV_REGISTER(CR2, 82) >> > ^ >> > /usr/include/sys/termios.h:186:14: note: expanded from macro 'CR2' >> > #define CR2 0x00002000 >> > ^ >> > In file included from >> > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: >> > In file included from >> > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: >> > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: >> > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: >> > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: >> > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: >> > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: >> > llvm/DebugInfo/CodeView/CodeViewRegisters.def:81:13: error: expected >> > identifier >> > CV_REGISTER(CR3, 83) >> > ^ >> > /usr/include/sys/termios.h:187:14: note: expanded from macro 'CR3' >> > #define CR3 0x00003000 >> > ^ >> > 4 errors generated. >> > make[2]: *** >> [source/API/CMakeFiles/liblldb.dir/SystemInitializerFull.cpp.o] >> > Error 1 >> > make[1]: *** [source/API/CMakeFiles/liblldb.dir/all] Error 2 >> > make: *** [all] Error 2 >> > >> > >> > _______________________________________________ >> > LLVM Developers mailing list >> > llvm-dev at lists.llvm.org >> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > >> >> >> >> -- >> Davide >> >> "There are no solved problems; there are only problems that are more >> or less solved" -- Henri Poincare >> > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180525/66f946c7/attachment.html>
Jonas Devlieghere via llvm-dev
2018-May-29 14:15 UTC
[llvm-dev] Compile error while building LLDB
> On May 26, 2018, at 3:56 AM, Zachary Turner via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Sounds like we have an issue in the CodeView headers related to a duplicate symbol. While this doesn't entirely surprise me after seeing the error, I'm also not sure why this problem is only just happening now. Ultimately what's happening is we have this enumeration: > > enum class RegisterId : uint16_t { > ... > CR3, > ... > }; > > But your termios.h file also has a #define for CR3. > > I guess one possible fix would be to rename these to something like CVRegCR3.Since I haven’t made any progress on this yet I’ve put up a CR with your suggestion: https://reviews.llvm.org/D47478> > On Wed, May 16, 2018 at 11:54 AM Jonas Devlieghere via llvm-dev <llvm-dev at lists.llvm.org> wrote: > I'm still trying to figure this out. On one of my machines it went away after a clean install even though my configuration is exactly the same. I'll let you know once I know more. > > On Wed, May 16, 2018 at 5:28 PM Davide Italiano <davide at freebsd.org> wrote: > + Jonas who hit the same bug recently. > > On Wed, May 16, 2018 at 8:01 AM, Eric Gorr via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > 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 > > > > Does this look familiar to anyone? > > > > > > > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:78:13: error: expected > > identifier > > CV_REGISTER(CR0, 80) > > ^ > > /usr/include/sys/termios.h:184:14: note: expanded from macro 'CR0' > > #define CR0 0x00000000 > > ^ > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:79:13: error: expected > > identifier > > CV_REGISTER(CR1, 81) > > ^ > > /usr/include/sys/termios.h:185:14: note: expanded from macro 'CR1' > > #define CR1 0x00001000 > > ^ > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:80:13: error: expected > > identifier > > CV_REGISTER(CR2, 82) > > ^ > > /usr/include/sys/termios.h:186:14: note: expanded from macro 'CR2' > > #define CR2 0x00002000 > > ^ > > In file included from > > llvm/lldb-6.0.0.src/source/API/SystemInitializerFull.cpp:89: > > In file included from > > llvm/lldb-6.0.0.src/source/./Plugins/SymbolFile/PDB/SymbolFilePDB.h:17: > > In file included from llvm/DebugInfo/PDB/IPDBSession.h:13: > > In file included from llvm/DebugInfo/PDB/PDBSymbol.h:13: > > In file included from llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h:14: > > In file included from llvm/DebugInfo/PDB/PDBTypes.h:13: > > In file included from llvm/DebugInfo/CodeView/CodeView.h:509: > > llvm/DebugInfo/CodeView/CodeViewRegisters.def:81:13: error: expected > > identifier > > CV_REGISTER(CR3, 83) > > ^ > > /usr/include/sys/termios.h:187:14: note: expanded from macro 'CR3' > > #define CR3 0x00003000 > > ^ > > 4 errors generated. > > make[2]: *** [source/API/CMakeFiles/liblldb.dir/SystemInitializerFull.cpp.o] > > Error 1 > > make[1]: *** [source/API/CMakeFiles/liblldb.dir/all] Error 2 > > make: *** [all] Error 2 > > > > > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > > > > -- > Davide > > "There are no solved problems; there are only problems that are more > or less solved" -- Henri Poincare > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev