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

Bug 948204

Summary: dev-games/simgear-2020.3.19 - [ffmpeg] vector.hpp: error: redeclaration of typedef int boost::container::vector_insert_ordered_cursor<BiDirPosConstIt, BiDirValueIt>::iter
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Maciej Mrozowski <reavertm>
Status: RESOLVED FIXED    
Severity: normal CC: arve.barsnes, atoth, games, vamp898-gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/acxz/flightgear-arch/issues/19
https://git.skewed.de/count0/graph-tool/-/issues/799
https://github.com/boostorg/container/issues/292
https://github.com/boostorg/move/issues/59
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 946461    
Attachments: emerge-info.txt
dev-games:simgear-2020.3.19:20250116-201314.log.xz
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2025-01-16 20:55:51 UTC
  235 |    typedef typename iterator_traits<BiDirValueIt>::reference      reference;
      |                     ^~~~~~~~~~~~~~~
/usr/include/boost/container/vector.hpp:235:21: error: expected ; at end of member declaration
  235 |    typedef typename iterator_traits<BiDirValueIt>::reference      reference;
      |                     ^~~~~~~~~~~~~~~
      |                                    ;
/usr/include/boost/container/vector.hpp:235:21: error: redeclaration of typedef int boost::container::vector_insert_ordered_cursor<BiDirPosConstIt, BiDirValueIt>::iterator_traits
/usr/include/boost/container/vector.hpp:234:21: note: previous declaration typedef int boost::container::vector_insert_ordered_cursor<BiDirPosConstIt, BiDirValueIt>::iterator_traits
  234 |    typedef typename iterator_traits<BiDirPosConstIt>::value_type  size_type;

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened_systemd-20250112-003502

  UNMASKED:
    Requested by sam
  >=media-video/ffmpeg-7.0

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 19.1.6
llvm-config: 19.1.6
Python 3.12.8
go version go1.23.4 linux/amd64
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-bin-1.77.1
  [3]   rust-bin-1.81.0
  [4]   rust-bin-1.84.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_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 d082ab626edbd4d03f0e7420a973d68b49ea23a0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jan 16 19:03:32 2025 +0000

    2025-01-16 19:03:31 UTC

emerge -qpvO =dev-games/simgear-2020.3.19
[ebuild  N    ] dev-games/simgear-2020.3.19  USE="(dns) openmp -debug -gdal -subversion -test" CPU_FLAGS_X86="sse2"
Comment 1 Toralf Förster gentoo-dev 2025-01-16 20:55:52 UTC
Created attachment 916764 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-01-16 20:55:53 UTC
Created attachment 916765 [details]
dev-games:simgear-2020.3.19:20250116-201314.log.xz
Comment 3 Toralf Förster gentoo-dev 2025-01-16 20:55:54 UTC
Created attachment 916766 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2025-01-16 20:55:55 UTC
Created attachment 916767 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-01-16 20:55:56 UTC
Created attachment 916768 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-01-16 20:55:57 UTC
Created attachment 916769 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-01-16 20:55:59 UTC
Created attachment 916770 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-01-16 20:56:01 UTC
Created attachment 916771 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-01-16 20:56:03 UTC
Created attachment 916772 [details]
temp.tar.xz
Comment 10 Attila Tóth 2025-02-05 11:19:57 UTC
simgear-2020.3.20_rc1 is also showing the symptom.
-std=gnu++17?
How to properly include boost? Even the current has the same inclusion scheme...
Comment 11 Vamp898 2025-02-15 11:03:53 UTC
FYI the exact same issue appears when building FlightGear on Archlinux from AUR (I have a second machine running Arch and just checked).

So this is not an Gentoo exclusive issue, this seems to be an upstream issue.
Comment 12 Attila Tóth 2025-02-16 21:41:33 UTC
(In reply to Vamp898 from comment #11)
> FYI the exact same issue appears when building FlightGear on Archlinux from
> AUR (I have a second machine running Arch and just checked).
> 
> So this is not an Gentoo exclusive issue, this seems to be an upstream issue.

That gives a hope it will take less time to find a solution.
Comment 13 Attila Tóth 2025-02-18 22:40:56 UTC
https://github.com/acxz/flightgear-arch/issues/19
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-27 07:18:30 UTC
googling ‘BOOST_MOVE_STD_NS_BEG’ led me to https://git.skewed.de/count0/graph-tool/-/issues/799 -> https://git.skewed.de/count0/graph-tool/-/commit/5fa4b6d77b00ceb301573abf9811493e85b8873a. They had a bundled boost workaround or something though.

There's also https://github.com/boostorg/container/issues/292 and https://github.com/boostorg/move/issues/59 which mentions simgear.
Comment 15 Vamp898 2025-02-28 11:59:51 UTC
2024.01.01 have been released, maybe that one already fixes the issue.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-28 12:01:14 UTC
(In reply to Vamp898 from comment #15)
> 2024.01.01 have been released, maybe that one already fixes the issue.

It appears to be a bug in Boost itself AFAICT.
Comment 17 Vamp898 2025-02-28 12:02:43 UTC
It appears so, yes. I just assumed they might have implemented an workaround for it. But maybe not^^
Comment 18 Arve Barsnes 2025-03-04 10:27:11 UTC
After applying the patch at https://github.com/boostorg/move/commit/e9ff3ca0952e680871145f454925614d950cef4d to boost-1.87.0, both simgear and flightgear compile for me.
Comment 19 Attila Tóth 2025-03-04 11:06:38 UTC
(In reply to Arve Barsnes from comment #18)
> After applying the patch at
> https://github.com/boostorg/move/commit/
> e9ff3ca0952e680871145f454925614d950cef4d to boost-1.87.0, both simgear and
> flightgear compile for me.

I confirm, that it fixes the problem on my system as well. It is surprising how other projects are not involved.
Comment 20 Larry the Git Cow gentoo-dev 2025-03-07 13:49:10 UTC
The bug has been closed via the following commit(s):

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

commit 00b9fdc8c51fed27b6b4762af0f7e9dece80fbab
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-07 13:48:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-07 13:48:19 +0000

    dev-libs/boost: fix boost::move regression
    
    Closes: https://bugs.gentoo.org/948204
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/boost/boost-1.87.0-r1.ebuild        | 345 +++++++++++++++++++++++++++
 dev-libs/boost/files/boost-1.87.0-move.patch |  74 ++++++
 2 files changed, 419 insertions(+)