# Failed to install gnuradio with PyBOMBS

**URL:** <https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382>\
**Category:** GNU Radio\
**Created:** [April 2, 2015, 2:00am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382 "2015-04-02T02:00:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 2, 2015, 2:00am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/1 "2015-04-02T02:00:02Z")

</div>

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](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](https://github.com/activecat/gnuradio/blob/master/system_info.txt)

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

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 2:46am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/2 "2015-04-02T02:46:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 3:26am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/3 "2015-04-02T03:26:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 3:36am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/4 "2015-04-02T03:36:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 3:59am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/5 "2015-04-02T03:59:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 3:51am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/6 "2015-04-02T03:51:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 4:24am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/7 "2015-04-02T04:24:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 4:13am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/8 "2015-04-02T04:13:57Z")

</div>

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](https://github.com/activecat/gnuradio/blob/master/installation_log_003.txt)  
Please advise, thanks.

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 4:32am UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/9 "2015-04-02T04:32:41Z")

</div>

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](http://www.w6rz.net/dvbt2_paprtr_cc_impl.cc)

[w6rz.net](http://w6rz.net) is my personal website.

Ron

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [April 2, 2015, 2:06pm UTC](https://www.ruby-forum.com/t/failed-to-install-gnuradio-with-pybombs/241382/10 "2015-04-02T14:06:09Z")

</div>

Dear Sir,

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

Thank you very much.
