Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708730 - =sys-devel/llvm-8.0.1 fails to build on gcc-10
Summary: =sys-devel/llvm-8.0.1 fails to build on gcc-10
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-02-08 14:59 UTC by Sergei Trofimovich (RETIRED)
Modified: 2020-09-25 07:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
llvm-8.0.1-gcc-10.patch (llvm-8.0.1-gcc-10.patch,849 bytes, patch)
2020-02-08 15:00 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-08 14:59:55 UTC
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 {
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-08 15:00:21 UTC
Created attachment 612792 [details, diff]
llvm-8.0.1-gcc-10.patch