Thanks very much a UHD old header file caused this problem i remove them
now it works.

On Tue, Jun 20, 2023 at 10:22 AM Marcus Müller <marcus.muel...@ettus.com>
wrote:

> Dear sp,
>
> the GNU Radio mailing list couldn't solve it because we asked for line
> numbers and
> verbatim error messages[1], but you never told us ;) Please don't put the
> GNU Radio
> mailing list into bad light, just because we don't have clairvoyance!
>
> This error very much looks like your build is mixing an older UHD
> uhd::usrp::dboard_iface,
> which uses boost::chrono, with your modern UHD 4.2 one, which uses
> std::chrono.
>
> Please make sure the build cannot find older UHD installations. Have you
> uninstalled your
> system's UHD before trying to install UHD 4.2?
>
> Best regards,
> Marcus
>
> [1]
> https://lists.gnu.org/archive/html/discuss-gnuradio/2023-06/msg00015.html
>
> On 20.06.23 06:46, sp wrote:
> > when I want to build Gnuradio 3.8.5 with UHD4.2.0 I faced a strange
> error I send it to
> > the Gnuradio mailing list they can not solve it.
> > Does anyone have any idea that solves my problem? thanks in advance
> >
> > [ 51%] Building CXX object
> >
> gr-uhd/swig/CMakeFiles/uhd_swig.dir/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx.o
> > [ 51%] Building CXX object
> > gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/stream_to_streams_impl.cc.o
> >
> /home/sp/Documents/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:
>
> > In function ‘PyObject* _wrap_dboard_iface_sleep(PyObject*, PyObject*,
> PyObject*)’:
> >
> /home/sp/Documents/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:32748:21:
>
> > error: cannot convert ‘const nanoseconds’ {aka ‘const
> std::chrono::duration<long int,
> > std::ratio<1, 1000000000> >’} to ‘const nanoseconds&’ {aka ‘const
> > boost::chrono::duration<long int, boost::ratio<1, 1000000000> >&’}
> > 32748 |       (arg1)->sleep((std::chrono::nanoseconds const &)*arg2);
> >       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >       |                     |
> >       |                     const nanoseconds {aka const
> std::chrono::duration<long int,
> > std::ratio<1, 1000000000> >}
> > In file included from /usr/local/include/uhd/usrp/multi_usrp.hpp:38,
> >                  from
> >
> /home/sp/Documents/gnuradio/gr-uhd/lib/../include/gnuradio/uhd/usrp_block.h:28,
> >                  from
> >
> /home/sp/Documents/gnuradio/gr-uhd/lib/../include/gnuradio/uhd/usrp_source.h:26,
> >                  from
> >
> /home/sp/Documents/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:3415:
> > /usr/local/include/uhd/usrp/dboard_iface.hpp:283:58: note: initializing
> argument 1 of
> > ‘virtual void uhd::usrp::dboard_iface::sleep(const nanoseconds&)’
> >   283 |     virtual void sleep(const boost::chrono::nanoseconds& time);
> >       |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
> >
> /home/sp/Documents/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:
>
> > In function ‘PyObject* _wrap_dboard_iface_sptr_sleep(PyObject*,
> PyObject*, PyObject*)’:
> >
> /home/sp/Documents/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:36150:22:
>
> > error: cannot convert ‘const nanoseconds’ {aka ‘const
> std::chrono::duration<long int,
> > std::ratio<1, 1000000000> >’} to ‘const nanoseconds&’ {aka ‘const
> > boost::chrono::duration<long int, boost::ratio<1, 1000000000> >&’}
> > 36150 |       (*arg1)->sleep((std::chrono::nanoseconds const &)*arg2);
> >       |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >       |                      |
> >       |                      const nanoseconds {aka const
> std::chrono::duration<long
> > int, std::ratio<1, 1000000000> >}
> > In file included from /usr/local/include/uhd/usrp/multi_usrp.hpp:38,
> >                  from
> >
> /home/sp/Documents/gnuradio/gr-uhd/lib/../include/gnuradio/uhd/usrp_block.h:28,
> >                  from
> >
> /home/sp/Documents/gnuradio/gr-uhd/lib/../include/gnuradio/uhd/usrp_source.h:26,
> >                  from
> >
> /home/sp/Documents/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:3415:
> > /usr/local/include/uhd/usrp/dboard_iface.hpp:283:58: note: initializing
> argument 1 of
> > ‘virtual void uhd::usrp::dboard_iface::sleep(const nanoseconds&)’
> >   283 |     virtual void sleep(const boost::chrono::nanoseconds& time);
> >       |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
> > [ 52%] Building CXX object
> >
> gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/stream_to_tagged_stream_impl.cc.o
> > make[2]: *** [gr-uhd/swig/CMakeFiles/uhd_swig.dir/build.make:63:
> >
> gr-uhd/swig/CMakeFiles/uhd_swig.dir/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx.o]
>
> > Error 1
> > make[1]: *** [CMakeFiles/Makefile2:11109:
> gr-uhd/swig/CMakeFiles/uhd_swig.dir/all] Error 2
> > make[1]: *** Waiting for unfinished jobs....
> >
> > _______________________________________________
> > USRP-users mailing list -- usrp-users@lists.ettus.com
> > To unsubscribe send an email to usrp-users-le...@lists.ettus.com
> _______________________________________________
> USRP-users mailing list -- usrp-users@lists.ettus.com
> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to