Closed joshuashire closed 5 years ago
Fixed. I had tried to install the package prior to updating gcc version. After updating gcc, one has to remove the old package remnants before trying to install again.
I ran
pybombs inv gr-osmosdr none
And then
pybombs install gr-osmosdr
And the build succeeded.
I am trying to install gr-osmosdr on CentOS7. I have updated to GCC 8 and set as current version. Is there some configuration I need to change in PyBombs or something?
CentOS Linux release 7.6.1810 (Core)
========================================
gcc --version gcc (GCC) 8.2.1 20180905 (Red Hat 8.2.1-3)
=======================================
pybombs install gr-osmosdr PyBOMBS.ConfigManager - INFO - Prefix Python version is: 2.7.5 PyBOMBS - INFO - PyBOMBS Version 2.3.3 PyBOMBS.install_manager - INFO - Phase 1: Creating install tree and installing binary packages: Install tree: | - gr-osmosdr PyBOMBS.install_manager - INFO - Phase 2: Recursively installing source packages to prefix: PyBOMBS.install_manager - INFO - Installing package: gr-osmosdr PyBOMBS.Packager.source - WARNING - Build dir already exists: /opt/gnuradio/prefix/default/src/gr-osmosdr/build Building: (100%) [==================================================================================================================================================================] [ 2%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o In file included from /opt/gnuradio/prefix/default/src/gr-osmosdr/lib/bladerf/bladerf_source_c.h:26:0, from /opt/gnuradio/prefix/default/src/gr-osmosdr/lib/source_impl.cc:72: /opt/gnuradio/prefix/default/src/gr-osmosdr/lib/bladerf/bladerf_common.h:291:50: error: ‘>>’ should be ‘> >’ within a nested template argument list static std::list<boost::weak_ptr> _devs; /< dev cache /
^
In file included from /opt/gnuradio/prefix/default/src/gr-osmosdr/lib/source_impl.cc:72:0:
/opt/gnuradio/prefix/default/src/gr-osmosdr/lib/bladerf/bladerf_source_c.h:141:32: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
const float SCALING_FACTOR = 2048.0f;
^
make[2]: [lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:63: lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o] Error 1
make[1]: [CMakeFiles/Makefile2:141: lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: [Makefile:141: all] Error 2
PyBOMBS.Packager.source - ERROR - Build failed. See output above for error messages.
PyBOMBS.Packager.source - ERROR - Problem occurred while building package gr-osmosdr:
Build failed.
PyBOMBS.install_manager - ERROR - Error installing package gr-osmosdr. Aborting.