Build fails as: """ /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -m32 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Demangle -I/tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src/lib/Demangle -Iinclude -I/tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src/include -DNDEBUG -march=corei7-avx -mtune=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=8192 -O2 -pipe -fdiagnostics-show-option -fPIC -fvisibility-inlines-hidden -Werror=date-time -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 -fPIC -MD -MT lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o -MF lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o.d -o lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o -c /tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src/lib/Demangle/MicrosoftDemangleNodes.cpp In file included from /tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src/lib/Demangle/MicrosoftDemangleNodes.cpp:14: /tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src/include/llvm/Demangle/MicrosoftDemangleNodes.h:14:6: error: use of enum 'Qualifiers' without previous declaration 14 | enum Qualifiers : uint8_t { | ^~~~~~~~~~ /tmp/portage/sys-devel/llvm-8.0.1/work/llvm-8.0.1.src/include/llvm/Demangle/MicrosoftDemangleNodes.h:14:17: error: expected unqualified-id before ':' token 14 | enum Qualifiers : uint8_t { | ^ """ The fix is already upstream: https://github.com/llvm/llvm-project/commit/b288d90b39f4b905c02092a9bfcfd6d78f99b191.patch and is very simple: --- a/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h +++ b/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h @@ -16,6 +16,8 @@ #include "llvm/Demangle/DemangleConfig.h" #include "llvm/Demangle/StringView.h" #include <array> +#include <cstdint> +#include <string> namespace llvm { namespace itanium_demangle {
Created attachment 612792 [details, diff] llvm-8.0.1-gcc-10.patch