[llvm-bugs] [Bug 44217] New: Can't compile LLVM with GCC master

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 4 03:21:17 PST 2019


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

            Bug ID: 44217
           Summary: Can't compile LLVM with GCC master
           Product: tools
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: opt
          Assignee: unassignedbugs at nondot.org
          Reporter: mliska at suse.cz
                CC: llvm-bugs at lists.llvm.org

I can't llvm9 release due to:

[  182s] FAILED:
lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o 
[  182s] /usr/bin/c++  -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Ilib/Demangle -I../lib/Demangle -I/usr/include/libxml2 -Iinclude -I../include
-O2 -Wall -D_FORTIFY_SOURCE=0 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type
-fcommon  -g0 -fPIC -fvisibility-inlines-hidden -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-class-memaccess -Wno-noexcept-type
-Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections
-fdata-sections -O3 -DNDEBUG    -fno-exceptions -fno-rtti -MD -MT
lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o -MF
lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o.d -o
lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o -c
../lib/Demangle/MicrosoftDemangle.cpp
[  182s] In file included from ../include/llvm/Demangle/MicrosoftDemangle.h:13,
[  182s]                  from ../lib/Demangle/MicrosoftDemangle.cpp:16:
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:33:6: error: use of
enum 'Qualifiers' without previous declaration
[  182s]    33 | enum Qualifiers : uint8_t {
[  182s]       |      ^~~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:33:17: error:
expected unqualified-id before ':' token
[  182s]    33 | enum Qualifiers : uint8_t {
[  182s]       |                 ^
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:44:6: warning:
elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[  182s]    44 | enum class StorageClass : uint8_t {
[  182s]       | ~~~~ ^~~~~
[  182s]       |      -----
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:44:12: error: use of
enum 'StorageClass' without previous declaration
[  182s]    44 | enum class StorageClass : uint8_t {
[  182s]       |            ^~~~~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:44:25: error:
expected unqualified-id before ':' token
[  182s]    44 | enum class StorageClass : uint8_t {
[  182s]       |                         ^
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:57:6: warning:
elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[  182s]    57 | enum class CallingConv : uint8_t {
[  182s]       | ~~~~ ^~~~~
[  182s]       |      -----
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:57:12: error: use of
enum 'CallingConv' without previous declaration
[  182s]    57 | enum class CallingConv : uint8_t {
[  182s]       |            ^~~~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:57:24: error:
expected unqualified-id before ':' token
[  182s]    57 | enum class CallingConv : uint8_t {
[  182s]       |                        ^
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:70:6: warning:
elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[  182s]    70 | enum class ReferenceKind : uint8_t { None, LValueRef,
RValueRef };
[  182s]       | ~~~~ ^~~~~
[  182s]       |      -----
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:70:12: error: use of
enum 'ReferenceKind' without previous declaration
[  182s]    70 | enum class ReferenceKind : uint8_t { None, LValueRef,
RValueRef };
[  182s]       |            ^~~~~~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:70:26: error:
expected unqualified-id before ':' token
[  182s]    70 | enum class ReferenceKind : uint8_t { None, LValueRef,
RValueRef };
[  182s]       |                          ^
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:110:6: warning:
elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[  182s]   110 | enum class IntrinsicFunctionKind : uint8_t {
[  182s]       | ~~~~ ^~~~~
[  182s]       |      -----
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:110:12: error: use
of enum 'IntrinsicFunctionKind' without previous declaration
[  182s]   110 | enum class IntrinsicFunctionKind : uint8_t {
[  182s]       |            ^~~~~~~~~~~~~~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:110:34: error:
expected unqualified-id before ':' token
[  182s]   110 | enum class IntrinsicFunctionKind : uint8_t {
[  182s]       |                                  ^
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:201:6: error: use of
enum 'FuncClass' without previous declaration
[  182s]   201 | enum FuncClass : uint16_t {
[  182s]       |      ^~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:201:16: error:
expected unqualified-id before ':' token
[  182s]   201 | enum FuncClass : uint16_t {
[  182s]       |                ^
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:259:8: error:
'string' in namespace 'std' does not name a type
[  182s]   259 |   std::string toString(OutputFlags Flags = OF_Default) const;
[  182s]       |        ^~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:19:1: note:
'std::string' is defined in header '<string>'; did you forget to '#include
<string>'?
[  182s]    18 | #include <array>
[  182s]   +++ |+#include <string>
[  182s]    19 | 
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:306:3: error:
'Qualifiers' does not name a type
[  182s]   306 |   Qualifiers Quals = Q_None;
[  182s]       |   ^~~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:331:3: error:
'CallingConv' does not name a type
[  182s]   331 |   CallingConv CallConvention = CallingConv::None;
[  182s]       |   ^~~~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:334:3: error:
'FuncClass' does not name a type
[  182s]   334 |   FuncClass FunctionClass = FC_Global;
[  182s]       |   ^~~~~~~~~
[  182s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:365:3: error:
'uint64_t' does not name a type; did you mean 'u_int64_t'?
[  182s]   365 |   uint64_t OffsetInVTable = 0;
[  182s]       |   ^~~~~~~~
[  182s]       |   u_int64_t
[  183s] ../include/llvm/Demangle/MicrosoftDemangleNodes.h:388:65: error:
expected ')' before 'Operator'
[  183s]   388 |   explicit
IntrinsicFunctionIdentifierNode(IntrinsicFunctionKind Operator)
...

-- 
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/20191204/94790e17/attachment-0001.html>


More information about the llvm-bugs mailing list