Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 787311

Summary: mail-filter/spamprobe-1.4d-r1 - /.../stl_tree.h: error: static assertion failed: comparison object must be invocable as const (maybe gcc-11 related)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
mail-filter:spamprobe-1.4d-r1:20210501-055537.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-01 09:00:01 UTC
FrequencyDBImpl_cache.cc:91:14:   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 LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare&, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const&, LRUCache<std::__cxx11::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNode* const&>’ evaluates to false
make[2]: *** [Makefile:254: FrequencyDBImpl_cache.o] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20210423-202814

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] 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 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3 *
  [2]   php7.4
  [3]   php8.0

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat May  1 05:35:31 UTC 2021

emerge -qpvO mail-filter/spamprobe
[ebuild  N    ] mail-filter/spamprobe-1.4d-r1  USE="berkdb jpeg -gif -png"
Comment 1 Toralf Förster gentoo-dev 2021-05-01 09:00:02 UTC
Created attachment 704877 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-01 09:00:04 UTC
Created attachment 704880 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-01 09:00:06 UTC
Created attachment 704883 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-01 09:00:07 UTC
Created attachment 704886 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-01 09:00:08 UTC
Created attachment 704889 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-01 09:00:09 UTC
Created attachment 704892 [details]
mail-filter:spamprobe-1.4d-r1:20210501-055537.log
Comment 7 Toralf Förster gentoo-dev 2021-05-01 09:00:10 UTC
Created attachment 704895 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2021-06-13 17:58:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b7de1af8fc3b52a49b2f1601b2abd0bca30673

commit 59b7de1af8fc3b52a49b2f1601b2abd0bca30673
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-13 17:08:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-13 17:13:53 +0000

    mail-filter/spamprobe: update EAPI 6 -> 7, fix gcc 11 build
    
    Closes: https://bugs.gentoo.org/787311
    Signed-off-by: Sam James <sam@gentoo.org>

 .../spamprobe/files/spamprobe-1.4d-gcc11-const-comp.patch   | 13 +++++++++++++
 mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild              |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)