Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722100 - net-wireless/gnuradio-3.7.13.5-r3: gnuradio-runtime/lib/block.cc:63:78: error: ‘_1’ was not declared in this scope
Summary: net-wireless/gnuradio-3.7.13.5-r3: gnuradio-runtime/lib/block.cc:63:78: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Radio project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: boost-1.74
  Show dependency tree
 
Reported: 2020-05-10 11:27 UTC by Konstantin
Modified: 2020-08-01 17:53 UTC (History)
6 users (show)

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


Attachments
build.log from net-wireless/gnuradio-3.7.13.5-r3 (build.log,193.52 KB, text/x-log)
2020-05-10 11:30 UTC, Konstantin
Details
build.log (build.log,57.77 KB, text/x-log)
2020-06-12 14:03 UTC, Guillaume Lespinasse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2020-05-10 11:27:00 UTC
When try emerge gnuradio 3.7 series (tryed install net-wireless/gnuradio-3.7.13.5-r3 & net-wireless/gnuradio-3.7.14.0 from bug#718084)

/var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc: In constructor ‘gr::block::block(const string&, gr::io_signature::sptr, gr::io_signature::sptr)’:
/var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc:63:78: error: ‘_1’ was not declared in this scope
   63 |     set_msg_handler(d_system_port, boost::bind(&block::system_handler, this, _1));
      |                                                                              ^~
/var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc:63:78: note: suggested alternatives:
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/iterator/iterator_categories.hpp:16,
                 from /usr/include/boost/iterator/iterator_adaptor.hpp:14,
                 from /usr/include/boost/iterator/reverse_iterator.hpp:10,
                 from /usr/include/boost/range/reverse_iterator.hpp:21,
                 from /usr/include/boost/range/rend.hpp:19,
                 from /usr/include/boost/foreach.hpp:82,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/basic_block.h:34,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/block.h:27,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc:27:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: note:   ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
In file included from /usr/include/boost/smart_ptr/detail/shared_count.hpp:39,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:28,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/sptr_magic.h:26,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/basic_block.h:27,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/block.h:27,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc:27:
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/functional:211:34: note:   ‘std::placeholders::_1’
  211 |     extern const _Placeholder<1> _1;
      |                                  ^~
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/iterator/iterator_categories.hpp:16,
                 from /usr/include/boost/iterator/iterator_adaptor.hpp:14,
                 from /usr/include/boost/iterator/reverse_iterator.hpp:10,
                 from /usr/include/boost/range/reverse_iterator.hpp:21,
                 from /usr/include/boost/range/rend.hpp:19,
                 from /usr/include/boost/foreach.hpp:82,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/basic_block.h:34,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/block.h:27,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc:27:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: note:   ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
In file included from /usr/include/boost/bind/bind.hpp:2356,
                 from /usr/include/boost/thread/detail/thread.hpp:33,
                 from /usr/include/boost/thread/thread_only.hpp:22,
                 from /usr/include/boost/thread/thread.hpp:12,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/thread/thread.h:26,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/basic_block.h:31,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/block.h:27,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc:27:
/usr/include/boost/bind/placeholders.hpp:46:38: note:   ‘boost::placeholders::_1’
   46 | BOOST_STATIC_CONSTEXPR boost::arg<1> _1;
      |                                      ^~
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/placeholders.hpp:43,
                 from /usr/include/boost/iterator/iterator_categories.hpp:16,
                 from /usr/include/boost/iterator/iterator_adaptor.hpp:14,
                 from /usr/include/boost/iterator/reverse_iterator.hpp:10,
                 from /usr/include/boost/range/reverse_iterator.hpp:21,
                 from /usr/include/boost/range/rend.hpp:19,
                 from /usr/include/boost/foreach.hpp:82,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/basic_block.h:34,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/include/gnuradio/block.h:27,
                 from /var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5/gnuradio-runtime/lib/block.cc:27:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: note:   ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
make[2]: *** [gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/build.make:252: gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/block.cc.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5_build'
make[1]: *** [CMakeFiles/Makefile2:2967: gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-wireless/gnuradio-3.7.13.5-r3/work/gnuradio-3.7.13.5_build'
make: *** [Makefile:183: all] Error 2

After back to stable dev-libs/boost-1.72.0-r1 all gnuradio 3.7 series packages emerged successful


Reproducible: Always




Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.30-r8, 5.7.0-rc4 x86_64)
=================================================================
System uname: Linux-5.7.0-rc4-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-gentoo-2.6
KiB Mem:    16334260 total,   1882404 free
KiB Swap:   62974972 total,  57512700 free
Timestamp of repository gentoo: Sat, 09 May 2020 21:30:01 +0000
Head commit of repository gentoo: db970d55dfe49d657b1c230b3113fa06b6302e72
sh bash 5.0_p17
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo, 9.2.0-r2::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

matrix
    location: /var/lib/layman/matrix
    sync-type: laymansync
    sync-uri: https://gitlab.com/PureTryOut/matrix-overlay.git
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/qt.git
    masters: gentoo
    priority: 50

ring-overlay
    location: /var/lib/layman/ring-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/ring-overlay.git
    masters: gentoo
    priority: 50

throttled
    location: /var/lib/layman/throttled
    sync-type: laymansync
    sync-uri: git://github.com/erpalma/throttled-overlay.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -g0"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -g0"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ "
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru ru_RU"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X a52 aac acl acpi activities alsa amd64 amr avi avx avx2 berkdb bittorent bluetooth bluray branding bzip2 cairo cdda cddb cdr chardet chm cli crypt cups custom-optimization dbus declarative dhcp djvu dri dts dvd dvdr dvdread egl elogind emboss encode exif fbcon fbcondecor fbsplash ffmpeg flac fma fontconfig fortran g3dvl gdbm gif gphoto2 gpm gtk heif iconv icu id3tag ipod ipv6 jabber jack java jpeg jpeg2k kde kerberos kipi kwallet lame lastfm lcms ldap libass libcaca libmpeg2 libnotify libtirpc libv4l libv4l2 linguas_ru live lm_sensors lzma lzo mad matroska mikmod mjpeg mmx mng modplug mp3 mp3tunes mp4 mpeg mpg123 mplayer mtp multilib musepack ncurses network networkmanager nfs nfsv41 nls nplugin nptl ogg opengl openmp opus pam pango pcre pdf phonon plasma pmu png policykit postproc ppds projectm qml qt5 quicktime rar raster readline real rtlsdr rtmp rtsp samba sdl seccomp sensors sip sipim smp sndfile spell split-usr srtp sse sse2 sse3 sse4 sse4_2 ssl ssse3 startup-notification svg taglib tcpd theora threads tiff truetype twolame udev udisks unicode upower usb utf8 v4l v4l2 vaapi vdpau vlc vlm vorbis vpx vulkan wayland webkit widgets wifi wma wma-fixed wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xosd xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu pc efi-64 multiboot" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" L10N="ru ru_RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Konstantin 2020-05-10 11:30:15 UTC
Created attachment 637506 [details]
build.log  from net-wireless/gnuradio-3.7.13.5-r3
Comment 2 Hector Martin 2020-05-25 03:16:14 UTC
Same issue here.
Comment 3 Nils Freydank 2020-06-07 18:10:45 UTC
I can confirm this bug for gnuradio-3.8.1.0-r1 while upstream fixed in April, so -9999 didn't fail for this (I didn't completely build it, though).

Upstream commit is https://github.com/gnuradio/gnuradio/commit/7a9169fe8cca1cb378be0d0d403e03a338ffbfda which needs some
manual backporting to 3.8.1.0-r1.
Comment 4 Guillaume Lespinasse 2020-06-12 14:03:41 UTC
Created attachment 644514 [details]
build.log

I can confirm that this issue is still current with 3.8.1.0-r1
Comment 5 Russell Dwiggins 2020-06-17 19:42:40 UTC
There is a patch here:

https://patch-diff.githubusercontent.com/raw/gnuradio/gnuradio/pull/3566.patch

This gets us past the original error, but leads to another:
error: cannot convert const string {aka const std::__cxx11::basic_string} to pmt::pmt_t {aka boost::shared_ptr}


Discussion here:
https://www.mail-archive.com/discuss-gnuradio@gnu.org/msg70178.html
Comment 6 Russell Dwiggins 2020-06-17 21:22:53 UTC
(In reply to Russell Dwiggins from comment #5)
> There is a patch here:
> 
> https://patch-diff.githubusercontent.com/raw/gnuradio/gnuradio/pull/3566.
> patch
> 
> This gets us past the original error, but leads to another:
> error: cannot convert const string {aka const std::__cxx11::basic_string} to
> pmt::pmt_t {aka boost::shared_ptr}
> 
> 
> Discussion here:
> https://www.mail-archive.com/discuss-gnuradio@gnu.org/msg70178.html

This appears to be Bug 727286.
Comment 7 Malcolm Lashley 2020-07-12 12:53:22 UTC
Same issue - the backport patch from the buildroot fixed compilation for me:

# cd /etc/portage/patches/net-wireless/gnuradio 
# wget https://raw.githubusercontent.com/buildroot/buildroot/master/package/gnuradio/0002-boost_qualify_placeholders_with_their_full_namespace.patch
# mv 0002-boost_qualify_placeholders_with_their_full_namespace.patch gnuradio-3.8.1.0-r1.patch 
# emerge -av1 net-wireless/gnuradio
Comment 8 Larry the Git Cow gentoo-dev 2020-08-01 17:53:17 UTC
The bug has been closed via the following commit(s):

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

commit 8f794520eea47dcfc145bc24c524f0295bda9ddc
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-08-01 17:52:50 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-08-01 17:53:11 +0000

    net-wireless/gnuradio: fixed compilation and switched to virtual/jack
    
    Closes: https://bugs.gentoo.org/722100
    Closes: https://bugs.gentoo.org/684178
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 net-wireless/gnuradio/Manifest                    |   1 +
 net-wireless/gnuradio/gnuradio-3.7.13.5-r4.ebuild | 281 ++++++++++++++++++++++
 net-wireless/gnuradio/gnuradio-3.8.1.0-r2.ebuild  | 228 ++++++++++++++++++
 3 files changed, 510 insertions(+)