[llvm-dev] Compile error while building LLDB

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] Compile error while building LLDB

Muhui Jiang via llvm-dev
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
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Compile error while building LLDB

Muhui Jiang via llvm-dev
+ Jonas who hit the same bug recently.

On Wed, May 16, 2018 at 8:01 AM, Eric Gorr via llvm-dev
<[hidden email]> 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
> [hidden email]
> 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
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Compile error while building LLDB

Muhui Jiang via llvm-dev
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 <[hidden email]> wrote:
+ Jonas who hit the same bug recently.

On Wed, May 16, 2018 at 8:01 AM, Eric Gorr via llvm-dev
<[hidden email]> 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
> [hidden email]
> 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
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev