Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849359 - sys-devel/gcc-10.3.1_p20211126: fails to compile with gcc-12.1*
Summary: sys-devel/gcc-10.3.1_p20211126: fails to compile with gcc-12.1*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-02 17:44 UTC by Matthias Maier
Modified: 2022-06-26 03:43 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,7.42 KB, text/plain)
2022-06-02 17:44 UTC, Matthias Maier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Maier gentoo-dev 2022-06-02 17:44:26 UTC
Created attachment 782348 [details]
emerge --info

This looks like a missing include:

In file included from /tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/gcc-10-20211126/libcc1/../gcc/hash-table.h:248,
                 from /tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/gcc-10-20211126/libcc1/../gcc/coretypes.h:459,
                 from /tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/gcc-10-20211126/libcc1/../gcc/gcc-plugin.h:29,
                 from /tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/gcc-10-20211126/libcc1/libcp1plugin.cc:35:
/tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/gcc-10-20211126/libcc1/../gcc/vec.h: In member function ‘void vec<T>::reverse()’:
/tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/gcc-10-20211126/libcc1/../gcc/vec.h:2086:10: error: ‘swap’ is not a member of ‘std’
 2086 |     std::swap (ptr[i], ptr[l - i - 1]);
      |          ^~~~
make[2]: *** [Makefile:600: libcp1plugin.lo] Error 1
make[2]: Leaving directory '/tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/build/libcc1'
make[2]: Entering directory '/tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/build/libcc1'
Comment 1 Larry the Git Cow gentoo-dev 2022-06-26 03:43:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=349099563cad4211b788e57bc640942bf37e7da3

commit 349099563cad4211b788e57bc640942bf37e7da3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-26 02:28:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-26 03:43:11 +0000

    toolchain.eclass: workaround build failure for GCC 10 with GCC 12
    
    Closes: https://bugs.gentoo.org/849359
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 6 ++++++
 1 file changed, 6 insertions(+)