Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787614 - dev-cpp/tree-2.81 - /.../stl_tree.h: error: static assertion failed: comparison object must be invocable as const (maybe gcc-11 related)
Summary: dev-cpp/tree-2.81 - /.../stl_tree.h: error: static assertion failed: comparis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-02 08:53 UTC by Toralf Förster
Modified: 2021-05-07 16:57 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.08 KB, text/plain)
2021-05-02 08:53 UTC, Toralf Förster
Details
dev-cpp:tree-2.81:20210501-233933.log (dev-cpp:tree-2.81:20210501-233933.log,6.52 KB, text/plain)
2021-05-02 08:53 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,190.99 KB, text/plain)
2021-05-02 08:53 UTC, Toralf Förster
Details
environment (environment,53.02 KB, text/plain)
2021-05-02 08:53 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.07 KB, application/x-bzip)
2021-05-02 08:53 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-02 08:53:03 UTC
test_tree.cc:292:11:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
  770 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const tree<std::__cxx11::basic_string<char> >::compare_nodes<std::less<std::__cxx11::basic_string<char> > >&, tree_node_<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >* const&, tree_node_<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >* const&>’ evaluates to false
make: *** [<builtin>: test_tree] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20210427-181545

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0
  [2]   rust-1.51.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat May  1 23:20:24 UTC 2021

emerge -qpvO dev-cpp/tree
[ebuild  N    ] dev-cpp/tree-2.81  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2021-05-02 08:53:04 UTC
Created attachment 705177 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-02 08:53:05 UTC
Created attachment 705180 [details]
dev-cpp:tree-2.81:20210501-233933.log
Comment 3 Toralf Förster gentoo-dev 2021-05-02 08:53:06 UTC
Created attachment 705183 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-02 08:53:08 UTC
Created attachment 705186 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-02 08:53:09 UTC
Created attachment 705189 [details]
etc.portage.tar.bz2
Comment 6 Larry the Git Cow gentoo-dev 2021-05-07 16:57:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91acb761038d680de8ecd65a78ccc105a0493f7b

commit 91acb761038d680de8ecd65a78ccc105a0493f7b
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-05-07 16:57:21 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-05-07 16:57:21 +0000

    dev-cpp/tree: Fix building against GCC 11
    
    Closes: https://bugs.gentoo.org/787614
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-cpp/tree/files/tree-2.81-gcc11.patch | 33 ++++++++++++++++++++++++++++++++
 dev-cpp/tree/tree-2.81.ebuild            |  8 +++++---
 2 files changed, 38 insertions(+), 3 deletions(-)