Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955526 - media-sound/ncmpcpp-0.10.1-r1 - [meson] any_iterator_interface.hpp: error: template argument 2 is invalid [-Wtemplate-body]
Summary: media-sound/ncmpcpp-0.10.1-r1 - [meson] any_iterator_interface.hpp: error: te...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Adrian Schollmeyer
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 955532
  Show dependency tree
 
Reported: 2025-05-06 16:48 UTC by Toralf Förster
Modified: 2025-05-07 10:50 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.67 KB, text/plain)
2025-05-06 16:48 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,63.95 KB, application/x-xz)
2025-05-06 16:48 UTC, Toralf Förster
Details
environment (environment,53.50 KB, text/plain)
2025-05-06 16:48 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.73 KB, application/x-xz)
2025-05-06 16:48 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.87 KB, application/x-xz)
2025-05-06 16:48 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,17.59 KB, application/x-xz)
2025-05-06 16:48 UTC, Toralf Förster
Details
media-sound:ncmpcpp-0.10.1-r1:20250506-162531.log (media-sound:ncmpcpp-0.10.1-r1:20250506-162531.log,52.83 KB, text/plain)
2025-05-06 16:48 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,69.61 KB, application/x-xz)
2025-05-06 16:48 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,16.28 KB, application/x-xz)
2025-05-06 16:48 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-05-06 16:48:08 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -ftree-vectorize -ffast-math -std=c++20 -Wall -Wextra -Wshadow -Wimplicit-fallthrough -c -o global.o global.cpp
In file included from /usr/include/boost/range/detail/any_iterator.hpp:22,
                 from ./curses/menu.h:25,
                 from screens/screen.h:24,
                 from global.h:28,
                 from global.cpp:21:
/usr/include/boost/range/detail/any_iterator_interface.hpp:34:13: error: template argument 2 is invalid [-Wtemplate-body]
   34 |             >::type type;
      |             ^

  -------------------------------------------------------------------
  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened_systemd-20250502-001502

  KEYWORDED/UNMASKED

  [meson] Please re-assign to ztrawhcse@ if it works with regular meson.
  <dev-build/meson-9999

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.4
llvm-config: 20.1.4
Python 3.13.3
go version go1.24.2 linux/amd64
  [1]   php8.4 *
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.86.0
  [2]   rust-1.86.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.27_p6 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.15_p6 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.7_p6 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.452_p09 [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 f8681f30b14240e0771f475c415afa1958278673
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue May 6 15:09:22 2025 +0000

    2025-05-06 15:09:21 UTC

The tinderbox task was: dev-libs/libixion

emerge -qpvO =media-sound/ncmpcpp-0.10.1-r1
Comment 1 Toralf Förster gentoo-dev 2025-05-06 16:48:09 UTC
Created attachment 927890 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-05-06 16:48:10 UTC
Created attachment 927891 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2025-05-06 16:48:11 UTC
Created attachment 927892 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-05-06 16:48:12 UTC
Created attachment 927893 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-05-06 16:48:13 UTC
Created attachment 927894 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-05-06 16:48:14 UTC
Created attachment 927895 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-05-06 16:48:15 UTC
Created attachment 927896 [details]
media-sound:ncmpcpp-0.10.1-r1:20250506-162531.log
Comment 8 Toralf Förster gentoo-dev 2025-05-06 16:48:17 UTC
Created attachment 927897 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-05-06 16:48:17 UTC
Created attachment 927898 [details]
temp.tar.xz
Comment 10 Filip Kobierski 2025-05-06 17:39:53 UTC
Probably caused by 1.88 boost but I need to research it further.
Comment 12 Filip Kobierski 2025-05-06 17:54:47 UTC
I am not sure if it will: the problem here is 
```
In file included from /usr/include/boost/range/detail/any_iterator.hpp:22,
                 from ./curses/menu.h:25,
                 from screens/screen.h:24,
                 from global.h:28,
                 from global.cpp:21:
/usr/include/boost/range/detail/any_iterator_interface.hpp:34:13: error: template argument 2 is invalid [-Wtemplate-body]
   34 |             >::type type;
      |             ^
/usr/include/boost/range/detail/any_iterator_interface.hpp:34:14: error: expected identifier before ‘::’ token [-Wtemplate-body]
   34 |             >::type type;
      |              ^~
/usr/include/boost/range/detail/any_iterator_interface.hpp:34:14: error: typedef name may not be a nested-name-specifier [-Wtemplate-body]
/usr/include/boost/range/detail/any_iterator_interface.hpp:34:16: error: expected ‘;’ at end of member declaration [-Wtemplate-body]
   34 |             >::type type;
      |                ^~~~
      |                    ;
/usr/include/boost/range/detail/any_iterator_interface.hpp:34:21: error: declaration does not declare anything [-Wtemplate-body]
   34 |             >::type type;
      |                     ^~~~
```
and the patch is for "no template named 'add_const'".

If I wanted to check I'd have to build against boost 1.88 built with this patch, right?
If so, ss this a boost or ncmpcpp issue?
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-06 18:00:38 UTC
(In reply to Filip Kobierski from comment #12)
> I am not sure if it will: the problem here is 
> ```
> In file included from /usr/include/boost/range/detail/any_iterator.hpp:22,
>                  from ./curses/menu.h:25,
>                  from screens/screen.h:24,
>                  from global.h:28,
>                  from global.cpp:21:
> /usr/include/boost/range/detail/any_iterator_interface.hpp:34:13: error:
> template argument 2 is invalid [-Wtemplate-body]
>    34 |             >::type type;
>       |             ^
> /usr/include/boost/range/detail/any_iterator_interface.hpp:34:14: error:
> expected identifier before ‘::’ token [-Wtemplate-body]
>    34 |             >::type type;
>       |              ^~
> /usr/include/boost/range/detail/any_iterator_interface.hpp:34:14: error:
> typedef name may not be a nested-name-specifier [-Wtemplate-body]
> /usr/include/boost/range/detail/any_iterator_interface.hpp:34:16: error:
> expected ‘;’ at end of member declaration [-Wtemplate-body]
>    34 |             >::type type;
>       |                ^~~~
>       |                    ;
> /usr/include/boost/range/detail/any_iterator_interface.hpp:34:21: error:
> declaration does not declare anything [-Wtemplate-body]
>    34 |             >::type type;
>       |                     ^~~~
> ```
> and the patch is for "no template named 'add_const'".
> 

Look at the actual line(s) around that in any_iterator_interface.hpp.

> If I wanted to check I'd have to build against boost 1.88 built with this
> patch, right?

Boost.

> If so, ss this a boost or ncmpcpp issue?

If it works, then it'sa Boost issue.
Comment 14 Holger Hoffstätte 2025-05-07 10:47:50 UTC
With the fix in the linked PR I can successfully build ncmpcpp-0.10.1-r1.
Comment 15 Larry the Git Cow gentoo-dev 2025-05-07 10:50:33 UTC
The bug has been closed via the following commit(s):

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

commit fad944f5c745adb8b2f682ce6701263f489e68a3
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2025-05-07 10:28:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-07 10:50:15 +0000

    dev-libs/boost: add include for add_const to range library
    
    Closes: https://bugs.gentoo.org/955526
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Part-of: https://github.com/gentoo/gentoo/pull/41966
    Closes: https://github.com/gentoo/gentoo/pull/41966
    Signed-off-by: Sam James <sam@gentoo.org>

 ...{boost-1.88.0.ebuild => boost-1.88.0-r1.ebuild} |  1 +
 .../files/boost-1.88.0-range-any_iterator.patch    | 27 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)