Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in uhd_signal_source.cc.o #762

Open
arch-dawson opened this issue Mar 22, 2024 · 4 comments
Open

Build error in uhd_signal_source.cc.o #762

arch-dawson opened this issue Mar 22, 2024 · 4 comments

Comments

@arch-dawson
Copy link

When building, I am encountering this error. I am running arch linux and followed the instructions in the readme.

[ 81%] Building CXX object src/algorithms/signal_source/adapters/CMakeFiles/signal_source_adapters.dir/uhd_signal_source.cc.o
In file included from /usr/local/include/uhd/device.hpp:11,
                 from /usr/local/include/uhd/usrp/multi_usrp.hpp:28,
                 from /usr/include/gnuradio/uhd/usrp_block.h:17,
                 from /usr/include/gnuradio/uhd/usrp_source.h:14,
                 from /home/dawson/tmp/gnss-sdr-git/src/algorithms/signal_source/adapters/uhd_signal_source.h:24,
                 from /home/dawson/tmp/gnss-sdr-git/src/algorithms/signal_source/adapters/uhd_signal_source.cc:17:
/usr/local/include/uhd/property_tree.hpp:75:13: error: template-id not allowed for destructor
   75 |     virtual ~property<T>(void) = 0;
      |             ^
/usr/local/include/uhd/property_tree.hpp:186:1: error: no declaration matches ‘uhd::property<T>::~property()’
  186 | property<T>::~property(void)
      | ^~~~~~~~~~~
/usr/local/include/uhd/property_tree.hpp:186:1: note: no functions named ‘uhd::property<T>::~property()’
/usr/local/include/uhd/property_tree.hpp:68:7: note: ‘class uhd::property<T>’ defined here
   68 | class property : uhd::noncopyable
      |       ^~~~~~~~
In file included from /usr/local/include/uhd/property_tree.hpp:263:
/usr/local/include/uhd/property_tree.ipp:24:50: error: expected ‘)’ before ‘mode’
   24 |     property_impl<T>(property_tree::coerce_mode_t mode) : _coerce_mode(mode)
      |                     ~                            ^~~~~
      |                                                  )
/usr/local/include/uhd/property_tree.ipp:31:5: error: template-id not allowed for destructor
   31 |     ~property_impl<T>(void)
      |     ^
make[2]: *** [src/algorithms/signal_source/adapters/CMakeFiles/signal_source_adapters.dir/build.make:300: src/algorithms/signal_source/adapters/CMakeFiles/signal_source_adapters.dir/uhd_signal_source.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1960: src/algorithms/signal_source/adapters/CMakeFiles/signal_source_adapters.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
@arch-dawson arch-dawson changed the title Build error in Build error in uhd_signal_source.cc.o Mar 22, 2024
@jwmelto
Copy link
Contributor

jwmelto commented Mar 22, 2024

This looks like a UHD issue, not an GNSS-SDR issue. Our code is just including theirs.

@Clouds42
Copy link

Same error, dont know why. I have built and installed the uhd but the error still. Ubuntu 22.04

@Clouds42
Copy link

Clouds42 commented Mar 24, 2024

Well i have found a solution to the error from #725 , just append -DENABLE_UHD=OFF after cmake .. (which is cmake .. -DENABLE_UHD=OFF) and build without error.
I dont have a uhd device so without usrp support just fine for me.

@jwmelto
Copy link
Contributor

jwmelto commented Mar 25, 2024

To clarify, as of C++20, the UHD code is invalid. See https://stackoverflow.com/a/65898493/9220132.

I would look for a newer UHD implementation, or downgrade to C++17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants