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

GNURadio fails on missing thrift dependency #13

Closed
1am opened this issue Apr 7, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@1am
Copy link

commented Apr 7, 2016

Hi

I've been trying to install gnuradio on Ubuntu via PyBOMBS but it fails on some thrift dependency with the following error:

Linking CXX executable gr_runtime_test
libgnuradio-runtime-3.7.10git.so.0.0.0: undefined reference to `apache::thrift::async::TConcurrentClientSyncInfo::getPending(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, apache::thrift::protocol::TMessageType&, int&)'
libgnuradio-runtime-3.7.10git.so.0.0.0: undefined reference to `apache::thrift::async::TConcurrentClientSyncInfo::updatePending(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, apache::thrift::protocol::TMessageType, int)'
collect2: error: ld returned 1 exit status
gnuradio-runtime/lib/CMakeFiles/gr_runtime_test.dir/build.make:98: recipe for target 'gnuradio-runtime/lib/gr_runtime_test' failed
make[2]: *** [gnuradio-runtime/lib/gr_runtime_test] Error 1
CMakeFiles/Makefile2:597: recipe for target 'gnuradio-runtime/lib/CMakeFiles/gr_runtime_test.dir/all' failed
make[1]: *** [gnuradio-runtime/lib/CMakeFiles/gr_runtime_test.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2
PyBombs.monitor_process() - DEBUG - Thread signaled termination or returned
PyBombs.monitor_process() - DEBUG - Return value: 2
PyBombs.Packager.source - ERROR - Build failed. See output above for error messages.
PyBombs.Packager.source - ERROR - Problem occurred while building package gnuradio:
Build failed.
PyBombs.install - ERROR - Error installing package gnuradio. Aborting.

The thing is that running pybombs -p default -vvv install gnuradio pulls apache-thrift as a dependency so I'm not sure what am I missing?

@ckuethe

This comment has been minimized.

Copy link
Collaborator

commented Apr 8, 2016

"libgnuradio-runtime-3.7.10git.so.0.0.0: undefined reference to `apache::thrift::async::TConcurrentClientSyncInfo::getPending(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, apache::thrift::protocol::TMessageType&, int&)'"

Smells like a missing -lthrift, though I'm not sure why. Can you try get the actual gcc command that failed?

@1am

This comment has been minimized.

Copy link
Author

commented Apr 10, 2016

I've tried again today on a fresh Ubuntu Mate 15.10 x64 and it worked fine. Probably something was messed up with my previous Ubuntu installation. Good thing that I could get rid of it and start from a fresh distro.

@1am 1am closed this Apr 10, 2016

@courtarro

This comment has been minimized.

Copy link

commented May 15, 2017

I was experiencing this issue on a machine that was upgraded from Ubuntu 14.04 (trusty) to 16.04 (xenial) and whose GR installation had gotten quite stale.

Workaround:

  1. Update Apache Thrift manually

     pybombs update apache-thrift
    
  2. Reload my prefix

     source ~/prefix/setup_env.py
    
  3. Then continue building gnuradio

     cd ~/prefix/src/gnuradio/build
     make -j4
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.