Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865211 - dev-cpp/abseil-cpp: fails to compile with gcc-13 (error: found ':' in nested-name-specifier, expected '::')
Summary: dev-cpp/abseil-cpp: fails to compile with gcc-13 (error: found ':' in nested-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2022-08-15 09:05 UTC by WANG Xuerui
Modified: 2023-02-18 18:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WANG Xuerui gentoo-dev 2022-08-15 09:05:48 UTC
> FAILED: absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/float_conversion.cc.o
> /usr/bin/x86_64-pc-linux-gnu-g++ -Dstr_format_internal_EXPORTS -I/tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0  -march=native -mtune=znver2 -O3 -fgraphite-identity-floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=128 -fuse-linker-plugin -pipe -ggdb -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-z,pack-relative-relocs -fPIC -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -std=gnu++17 -MD -MT absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/float_conversion.cc.o -MF absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/float_conversion.cc.o.d -o absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/float_conversion.cc.o -c /tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0/absl/strings/internal/str_format/float_conversion.cc
> In file included from /tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0/absl/strings/internal/str_format/float_conversion.h:18,
>                  from /tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0/absl/strings/internal/str_format/float_conversion.cc:15:
> /tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0/absl/strings/internal/str_format/extension.h:34:6: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword
>    34 | enum class FormatConversionChar : uint8_t;
>       | ~~~~ ^~~~~
>       |      -----
> /tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0/absl/strings/internal/str_format/extension.h:34:33: error: found ':' in nested-name-specifier, expected '::'
>    34 | enum class FormatConversionChar : uint8_t;
>       |                                 ^
>       |                                 ::
> /tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0/absl/strings/internal/str_format/extension.h:34:12: error: 'FormatConversionChar' has not been declared
>    34 | enum class FormatConversionChar : uint8_t;
>       |            ^~~~~~~~~~~~~~~~~~~~

A fix is already tested, you can find it in the linked PR.
Comment 1 Larry the Git Cow gentoo-dev 2022-08-23 07:30:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=227b524fe01fd6329b8dd8ee7bbd9bef97d106a7

commit 227b524fe01fd6329b8dd8ee7bbd9bef97d106a7
Author:     WANG Xuerui <xen0n@gentoo.org>
AuthorDate: 2022-08-11 16:11:27 +0000
Commit:     WANG Xuerui <xen0n@gentoo.org>
CommitDate: 2022-08-23 07:28:35 +0000

    dev-cpp/abseil-cpp: 20211102.0-r2: fix build on gcc-13
    
    Fixes: https://bugs.gentoo.org/865211
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>

 dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild |  1 +
 .../files/abseil-cpp-20211102.0-r2-gcc-13.patch    | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)