Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952826 - net-dns/dnsdist-1.9.8-r1 - spsc_queue.hpp: error: no match for call to (const std::function<void(XskPacket&)>) (std::remove_reference<XskPacket&>::type)
Summary: net-dns/dnsdist-1.9.8-r1 - spsc_queue.hpp: error: no match for call to (const...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: boost-1.87
  Show dependency tree
 
Reported: 2025-03-28 07:18 UTC by Toralf Förster
Modified: 2025-03-28 15:06 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.75 KB, text/plain)
2025-03-28 07:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,249.56 KB, text/plain)
2025-03-28 07:18 UTC, Toralf Förster
Details
environment (environment,101.84 KB, text/plain)
2025-03-28 07:18 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.22 KB, application/x-xz)
2025-03-28 07:18 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,27.84 KB, application/x-xz)
2025-03-28 07:18 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,21.51 KB, application/x-xz)
2025-03-28 07:18 UTC, Toralf Förster
Details
net-dns:dnsdist-1.9.8-r1:20250328-060546.log (net-dns:dnsdist-1.9.8-r1:20250328-060546.log,117.52 KB, text/plain)
2025-03-28 07:18 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,63.80 KB, application/x-xz)
2025-03-28 07:18 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,25.52 KB, application/x-xz)
2025-03-28 07:18 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 2025-03-28 07:18:19 UTC
/usr/include/boost/lockfree/spsc_queue.hpp:902:38:   required from boost::lockfree::spsc_queue<T, Options>::size_type boost::lockfree::spsc_queue<T, Options>::consume_all(Functor&&) [with Functor = const std::function<void(XskPacket&)>&; T = XskPacket; Options = {boost::lockfree::capacity<4096>}; size_type = long unsigned int]
  902 |         return base_type::consume_all( f );
      |                ~~~~~~~~~~~~~~~~~~~~~~^~~~~
xsk.cc:1194:37:   required from here
 1194 |   d_incomingPacketsQueue.consume_all(callback);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/boost/lockfree/spsc_queue.hpp:359:20: error: no match for call to (const std::function<void(XskPacket&)>) (std::remove_reference<XskPacket&>::type)
  359 |             functor( std::move( *first ) );
      |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_systemd-20250323-150506

  KEYWORDED/UNMASKED

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.1
llvm-config: 20.1.1
Python 3.12.9
go version go1.24.1 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.26_p4 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 11881d90563c5f94fc45072c7e1c6f2bd747799d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Mar 28 05:20:21 2025 +0000

    2025-03-28 05:20:21 UTC

emerge -qpvO =net-dns/dnsdist-1.9.8-r1
[ebuild  N    ] net-dns/dnsdist-1.9.8-r1  USE="cdb regex ssl systemd xdp -bpf -dnscrypt -dnstap -doh -doh3 -ipcipher -lmdb -quic -snmp -test -web" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit"
Comment 1 Toralf Förster gentoo-dev 2025-03-28 07:18:19 UTC
Created attachment 923150 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-28 07:18:21 UTC
Created attachment 923151 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2025-03-28 07:18:22 UTC
Created attachment 923152 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-03-28 07:18:23 UTC
Created attachment 923153 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-03-28 07:18:24 UTC
Created attachment 923154 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-28 07:18:25 UTC
Created attachment 923155 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-28 07:18:26 UTC
Created attachment 923156 [details]
net-dns:dnsdist-1.9.8-r1:20250328-060546.log
Comment 8 Toralf Förster gentoo-dev 2025-03-28 07:18:27 UTC
Created attachment 923157 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-03-28 07:18:29 UTC
Created attachment 923158 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-28 07:24:32 UTC
Not sure if gcc-15 but adding just in case.
Comment 11 Holger Hoffstätte 2025-03-28 09:30:56 UTC
Caused by USE=xdp .. which of course I don't use at the moment :-(

https://github.com/hhoffstaette/pdns/commit/05543aed8ccff2270a65d3f9b75e6e9d894b8b45
Comment 12 Holger Hoffstätte 2025-03-28 10:08:46 UTC
Strange: this does not seem to reproduce with either gcc-14 or clang-20.
Comment 13 Holger Hoffstätte 2025-03-28 11:39:30 UTC
(In reply to Holger Hoffstätte from comment #12)
> Strange: this does not seem to reproduce with either gcc-14 or clang-20.

PEBKAC: it reproduces just fine with clang-20, I just needed to also enable xdp.
Preparing PR..
Comment 14 Larry the Git Cow gentoo-dev 2025-03-28 15:06:17 UTC
The bug has been closed via the following commit(s):

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

commit c9bcc34ea9b8c2a5d2b9c0e5261ec8de6b3c3edf
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2025-03-28 11:52:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-28 15:04:05 +0000

    net-dns/dnsdist: fix compatibility with boost::lockfree >=1.87.0
    
    Revbump since the new patch changes the generated code.
    
    Closes: https://bugs.gentoo.org/952826
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/41343
    Signed-off-by: Sam James <sam@gentoo.org>

 ...ist-1.9.8-r1.ebuild => dnsdist-1.9.8-r2.ebuild} |  5 +-
 ...9.8-fix-compat-with-boost-lockfree-1.87.0.patch | 90 ++++++++++++++++++++++
 2 files changed, 94 insertions(+), 1 deletion(-)