Failed to install gnuradio with PyBOMBS

Dear Sir,

Recently I failed to install GNU Radio using PyBOMBS.
Error message:

/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:750:95:
error: ‘volk_32fc_s32fc_multiply_32fc’ was not declared in this scope
/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:756:72:
error: cannot convert ‘gr_complex* {aka std::complex}’ to ‘const
int
’ in argument passing
/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:780:71:
error: ‘volk_32fc_x2_multiply_conjugate_32fc’ was not declared in this
scope
/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:785:62:
error: cannot convert ‘gr_complex* {aka std::complex}’ to ‘const
int
’ in argument passing
make[2]: ***
[gr-dtv/lib/CMakeFiles/gnuradio-dtv.dir/dvbt2/dvbt2_paprtr_cc_impl.cc.o]
Error 1
make[1]: *** [gr-dtv/lib/CMakeFiles/gnuradio-dtv.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
Linking CXX executable fcd_nfm_rx
[ 91%] Built target fcd_nfm_rx
Linking CXX shared module _qtgui_swig.so
[ 91%] Built target _qtgui_swig
Linking CXX shared module _digital_swig.so
[ 91%] Built target _digital_swig
make: *** [all] Error 2
Build failed. See output above for error messages.

The complete installation log is at
https://github.com/activecat/gnuradio/blob/master/installation_log_001.txt

I am using Debian 7.8 64bit.
Further details of system info is at
https://github.com/activecat/gnuradio/blob/master/system_info.txt

Please advise me how to solve this installation error.
Thank you very much.

I know what’s causing this error. It’s a function of using the GCC 4.7
compiler. It works with GCC 4.8 or later because the define “complex” in
<complex.h> is undefined in .

I’ll have a fix for this soon.

Ron

I believe Michael D. will have a comprehensive fix for issues like
this soon.

I’m not sure my forthcoming pull request directly addresses these
specific issues, but it does a bunch of others for C++11 compliance in
std::complex – whether or not you’re using C++11; it’s backward
compatible with C++0x and earlier, and should be forward compatible as
well. Before we address these specific issues, let’s get my patches in
place – they remove all of the GCC extensions to std::complex, so they
might have an impact on these issues. I should be able to do the PR
tomorrow; still testing on various systems tonight. - MLD

Ok; my PR will remove that header, so hopefully it’ll take care of the
issue. - MLD

In your previous pull request, you deleted the line:

#include <complex.h>

in gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc

This would directly fix the build issues reported by Activecat and
Marcus L…

Ron

On 04/01/2015 09:24 PM, Johnathan C. wrote:

I believe Michael D. will have a comprehensive fix for issues
like this soon.
Ah, this probably explains my failure earlier today for apparently the
same reason.

Dear Sir,

I have comment out the “#include <complex.h>”, but still has error, as
below:

[ 80%] Building CXX object

gr-dtv/lib/CMakeFiles/gnuradio-dtv.dir/dvbt2/dvbt2_paprtr_cc_impl.cc.o
[ 86%] Built target gnuradio-qtgui
[ 86%] Built target fcd_nfm_rx
[ 87%] Built target test_atsci
[ 87%] Built target _atsc_swig
[ 87%] Built target _qtgui_swig
[ 88%] Built target gnuradio-channels
[ 88%] Built target _channels_swig
[ 92%] Built target gnuradio-digital
[ 92%] Built target _digital_swig
[ 98%] Built target gnuradio-trellis
[ 98%] Built target _trellis_swig

/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:
In member function ‘virtual int gr::dtv::dvbt2_paprtr_cc_impl::work(int,
gr_vector_const_void_star&, gr_vector_void_star&)’:

/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:770:102:
error: ‘_Complex_I’ was not declared in this scope

/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:771:37:
error: ‘cexp’ was not declared in this scope

/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:772:48:
error: ‘creal’ was not declared in this scope

/home/sgku/download/gnuradio/pybombs/src/gnuradio/gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc:773:49:
error: ‘cimag’ was not declared in this scope
make[2]: ***
[gr-dtv/lib/CMakeFiles/gnuradio-dtv.dir/dvbt2/dvbt2_paprtr_cc_impl.cc.o]
Error 1
make[1]: *** [gr-dtv/lib/CMakeFiles/gnuradio-dtv.dir/all] Error 2
make: *** [all] Error 2
Build failed. See output above for error messages.

The complete log is at
https://github.com/activecat/gnuradio/blob/master/installation_log_003.txt
Please advise, thanks.

The actual fix is a little more complicated. You can download a patched
file from here:

http://www.w6rz.net/dvbt2_paprtr_cc_impl.cc

w6rz.net is my personal website.

Ron

Dear Sir,

Thanks, this solve the problems.
The GNU Radio has been installed successfully using PyBOMBS.

Thank you very much.