Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671724 - =dev-libs/boost-1.67.0 lacks header inclusion: /.../spsc_queue.hpp:140:43: error: next is not a member of boost (fails to build media-sound/mpd-0.21.3)
Summary: =dev-libs/boost-1.67.0 lacks header inclusion: /.../spsc_queue.hpp:140:43: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: boost-1.71
  Show dependency tree
 
Reported: 2018-11-22 22:11 UTC by Toralf Förster
Modified: 2018-11-25 11:10 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.61 KB, text/plain)
2018-11-22 22:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,196.56 KB, text/plain)
2018-11-22 22:11 UTC, Toralf Förster
Details
environment (environment,149.29 KB, text/plain)
2018-11-22 22:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.58 KB, application/x-bzip)
2018-11-22 22:11 UTC, Toralf Förster
Details
media-sound:mpd-0.21.3:20181122-220611.log (media-sound:mpd-0.21.3:20181122-220611.log,215.62 KB, text/plain)
2018-11-22 22:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,43.18 KB, application/x-bzip)
2018-11-22 22:11 UTC, Toralf Förster
Details
0001-dev-libs-boost-backport-spsc_queue.hpp-include-fix.patch (0001-dev-libs-boost-backport-spsc_queue.hpp-include-fix.patch,2.34 KB, patch)
2018-11-24 15:19 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-11-22 22:11:38 UTC
In file included from ../mpd-0.21.3/src/output/plugins/AlsaOutputPlugin.cxx:45:
/usr/include/boost/lockfree/spsc_queue.hpp: In member function ‘ConstIterator boost::lockfree::detail::ringbuffer_base<T>::push(ConstIterator, ConstIterator, T*, boost::lockfree::detail::ringbuffer_base<T>::size_t)’:
/usr/include/boost/lockfree/spsc_queue.hpp:140:43: error: ‘next’ is not a member of ‘boost’
         const ConstIterator last = boost::next(begin, input_count);
                                           ^~~~
/usr/include/boost/lockfree/spsc_queue.hpp:140:43: note: suggested alternatives:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_abi32+64-test_20181118-111254

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems)
  [3]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.30.1 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO media-sound/mpd
[ebuild  N    ] media-sound/mpd-0.21.3  USE="alsa bzip2 cdio cue curl dbus eventfd ffmpeg fifo flac icu id3tag inotify ipv6 mad network openal systemd tcpd udisks unicode vorbis zlib -adplug -ao -audiofile -chromaprint -debug -expat -faad -fluidsynth -gme -jack -lame -libav -libmpdclient -libsamplerate -libsoxr -mikmod -mms -modplug -mpg123 -musepack -nfs -opus -oss -pipe -pulseaudio -qobuz -recorder -samba (-selinux) -sid -signalfd -sndfile -soundcloud -sqlite -test -tidal -twolame -upnp -wavpack -webdav -wildmidi -zeroconf -zip"
Comment 1 Toralf Förster gentoo-dev 2018-11-22 22:11:41 UTC
Created attachment 555994 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-22 22:11:44 UTC
Created attachment 555996 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-11-22 22:11:47 UTC
Created attachment 555998 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-11-22 22:11:49 UTC
Created attachment 556000 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-11-22 22:11:52 UTC
Created attachment 556002 [details]
media-sound:mpd-0.21.3:20181122-220611.log
Comment 6 Toralf Förster gentoo-dev 2018-11-22 22:11:55 UTC
Created attachment 556004 [details]
temp.tbz2
Comment 7 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-11-23 13:01:57 UTC
gentoo boost packaging should be fixed, not a package
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-23 15:12:37 UTC
(In reply to Mikle Kolyada from comment #7)
> gentoo boost packaging should be fixed, not a package

Is there existing bug tracking it?
Comment 9 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-11-23 15:31:01 UTC
(In reply to Sergei Trofimovich from comment #8)
> (In reply to Mikle Kolyada from comment #7)
> > gentoo boost packaging should be fixed, not a package
> 
> Is there existing bug tracking it?

there is old boost bug at trac:

https://svn.boost.org/trac10/ticket/13497#no1

Also discussed by mpd upstream:

https://github.com/MusicPlayerDaemon/MPD/issues/265

And freebsd people backborted the patch to 1.67:

https://github.com/freebsd/freebsd-ports/commit/588ff6b22ae757fbe8cead26cf8d9a2bb5e5e28f

which was taken from here:

https://github.com/boostorg/lockfree/commit/12726cda009a

The original trac ticket pointed the lockfree master too, so the patch has to be applied, rather than patching every single package with the same signs
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-23 15:36:42 UTC
(In reply to Mikle Kolyada from comment #9)
> (In reply to Sergei Trofimovich from comment #8)
> > (In reply to Mikle Kolyada from comment #7)
> > > gentoo boost packaging should be fixed, not a package
> > 
> > Is there existing bug tracking it?
> 
> there is old boost bug at trac:
> 
> https://svn.boost.org/trac10/ticket/13497#no1
> 
> Also discussed by mpd upstream:
> 
> https://github.com/MusicPlayerDaemon/MPD/issues/265
> 
> And freebsd people backborted the patch to 1.67:
> 
> https://github.com/freebsd/freebsd-ports/commit/
> 588ff6b22ae757fbe8cead26cf8d9a2bb5e5e28f
> 
> which was taken from here:
> 
> https://github.com/boostorg/lockfree/commit/12726cda009a
> 
> The original trac ticket pointed the lockfree master too, so the patch has
> to be applied, rather than patching every single package with the same signs

I don't see a gentoo bug that tracks the work to fix it. Why not reuse this bug and reassign it to boost maintainer?
Comment 11 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-11-23 15:44:24 UTC
Well, do not ask me, but toralf about why he opened the same bug second time rather than poke boost maintainers about it when he was aware of the patch, btw bug 671422 is the same.
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-23 15:57:25 UTC
(In reply to Mikle Kolyada from comment #11)
> Well, do not ask me, but toralf about why he opened the same bug second time
> rather than poke boost maintainers about it when he was aware of the patch

Where is the previous bug?

> btw bug 671422 is the same.

No, I think bug 671422 is different and a genuine missing header inclusion as boost::next is used directly in the code not related to lockfree containers.
Even it failure can be worked around by the same patch.
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-24 11:23:13 UTC
(In reply to Sergei Trofimovich from comment #12)
> (In reply to Mikle Kolyada from comment #11)
> > Well, do not ask me, but toralf about why he opened the same bug second time
> > rather than poke boost maintainers about it when he was aware of the patch
> 
> Where is the previous bug?

Assuming there is none and reassigning to boost maintainers. Feel free to dupe against existing one.
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-24 15:19:38 UTC
Created attachment 556124 [details, diff]
0001-dev-libs-boost-backport-spsc_queue.hpp-include-fix.patch

0001-dev-libs-boost-backport-spsc_queue.hpp-include-fix.patch fixes mpd build failure for me.
Comment 15 Larry the Git Cow gentoo-dev 2018-11-24 19:27:06 UTC
The bug has been referenced in the following commit(s):

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

commit 9c1c90cf0f8507cd5f9da6c9db68deb90d429b2d
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-11-24 15:17:48 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2018-11-24 19:26:27 +0000

    dev-libs/boost: backport spsc_queue.hpp include fix
    
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/671724
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...{boost-1.67.0.ebuild => boost-1.67.0-r1.ebuild} |  3 ++-
 .../boost/files/boost-1.67.0-lockfree-next.patch   | 24 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)