analogdevicesinc / gr-iio

IIO blocks for GNU Radio
GNU General Public License v3.0
95 stars 62 forks source link

Compiling for GNU Radio 3.8 #94

Closed 7ith1um closed 3 years ago

7ith1um commented 3 years ago

Hello,

Can you please help me with the compilation for GNU Radio 3.8. I have this error below. Thank you for your help

-- The CXX compiler identification is GNU 10.2.0
-- The C compiler identification is GNU 10.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found LOG4CPP: /usr/lib/liblog4cpp.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 
-- Checking for module 'gmp'
--   Found gmp, version 6.2.1
-- Found GMP: /usr/lib/libgmpxx.so  
-- Checking for module 'mpir >= 3.0'
--   Package 'mpir', required by 'virtual:world', not found
-- Found MPIR: /usr/lib/libmpirxx.so  
-- Found MPLIB: /usr/lib/libgmpxx.so  
-- Found Boost: /usr/lib64/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.75.0") found components: date_time program_options filesystem system regex thread unit_test_framework 
-- Found Volk: Volk::volk  
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.9.1") 
-- Found PythonLibs: /usr/lib/libpython3.9.so (found suitable exact version "3.9.1") 
-- Checking for module 'fftw3f >= 3.0'
--   Found fftw3f , version 3.3.9
-- Found FFTW3f: /lib/libfftw3f.so  
-- Found Git: /usr/bin/git  
-- Extracting version information from git describe...
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components: doxygen missing components: dot
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
-- Found BISON: /usr/bin/bison (found suitable version "3.7.2", minimum required is "3.0.2") 
-- 
-- Checking for module SWIG
-- Found SWIG version 4.0.2.
-- Found SWIG: /usr/bin/swig  
-- Found PythonLibs: /usr/lib/libpython3.9.so (found version "3.9.1") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/build
[  2%] [BISON][parser] Building parser with bison 3.7.2
[  5%] [FLEX][lexer] Building scanner with flex 2.6.4
Scanning dependencies of target gnuradio-iio
[  7%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o
[ 10%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/device_sink_impl.cc.o
[ 13%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/fmcomms2_source_impl.cc.o
[ 15%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/fmcomms2_sink_impl.cc.o
[ 18%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/fmcomms5_source_impl.cc.o
[ 21%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/fmcomms5_sink_impl.cc.o
[ 23%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/pluto_source_impl.cc.o
[ 26%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/pluto_sink_impl.cc.o
[ 28%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/attr_sink_impl.cc.o
/home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc: 在构造函数‘gr::iio::attr_sink_impl::attr_sink_impl(const string&, const string&, const string&, int, bool, bool)’中:
/home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc:92:92: 错误:‘_1’在此作用域中尚未声明
   92 |       set_msg_handler(pmt::mp("attr"), boost::bind(&attr_sink_impl::write_attribute, this, _1));
      |                                                                                            ^~
/home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc:92:92: 附注:建议的替代:
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 /usr/include/gnuradio/basic_block.h:33,
                 from /usr/include/gnuradio/block.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/../include/iio/attr_sink.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.h:26,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc:27:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: 附注:  ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
In file included from /usr/include/boost/smart_ptr/detail/shared_count.hpp:37,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:17,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /usr/include/gnuradio/types.h:28,
                 from /usr/include/gnuradio/runtime_types.h:27,
                 from /usr/include/gnuradio/io_signature.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc:26:
/usr/include/c++/10.2.0/functional:221:34: 附注:  ‘std::placeholders::_1’
  221 |     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 /usr/include/gnuradio/basic_block.h:33,
                 from /usr/include/gnuradio/block.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/../include/iio/attr_sink.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.h:26,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc:27:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: 附注:  ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
In file included from /usr/include/boost/bind/bind.hpp:2335,
                 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 /usr/include/gnuradio/thread/thread.h:31,
                 from /usr/include/gnuradio/basic_block.h:31,
                 from /usr/include/gnuradio/block.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/../include/iio/attr_sink.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.h:26,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc:27:
/usr/include/boost/bind/placeholders.hpp:58:38: 附注:  ‘boost::placeholders::_1’
   58 | 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 /usr/include/gnuradio/basic_block.h:33,
                 from /usr/include/gnuradio/block.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/../include/iio/attr_sink.h:27,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.h:26,
                 from /home/lithium/.cache/yay/gnuradio-iio-patched-3.8/src/gnuradio-iio/lib/attr_sink_impl.cc:27:
/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: 附注:  ‘mpl_::_1’
   29 | typedef arg<1> _1;
      |                ^~
make[2]: *** [lib/CMakeFiles/gnuradio-iio.dir/build.make:197:lib/CMakeFiles/gnuradio-iio.dir/attr_sink_impl.cc.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:238:lib/CMakeFiles/gnuradio-iio.dir/all] 错误 2
make: *** [Makefile:149:all] 错误 2