# Problems building GNURadio

**URL:** <https://www.ruby-forum.com/t/problems-building-gnuradio/231497>\
**Category:** GNU Radio\
**Created:** [August 12, 2014, 2:52am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio/231497 "2014-08-12T02:52:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 12, 2014, 2:52am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio/231497/1 "2014-08-12T02:52:49Z")

</div>

Hi:  
I am having problems building gnuradio on armV7 that I cannot figure  
out. I am using pybombs.  
Here is a snapshot of the errors during the build:

Built target pygen\_gr\_vocoder\_examples\_6232c  
[23%] Built target fcd\_swig\_swig\_doc  
[24%] Built target pygen\_gr\_fcd\_python\_fcd\_2e9af  
[24%] Built target wavelet\_swig\_swig\_doc  
[24%] Built target pygen\_gr\_wavelet\_python\_wavelet\_75fe3  
[24%] Built target pygen\_gr\_wxgui\_grc\_ca707  
[24%] Built target pygen\_gr\_wxgui\_python\_wxgui\_173e9  
[24%] Built target pygen\_gr\_wxgui\_python\_wxgui\_c3702  
[25%] Built target pygen\_gr\_wxgui\_python\_wxgui\_3f66f  
[25%] Built target wxgui\_swig\_swig\_doc  
Linking CXX executable test\_all  
Linking CXX executable volk-config-info  
…/lib/libvolk.so.0.0.0: undefined reference to  
`volk_16i_max_star_horizontal_16i_neonasm' ../lib/libvolk.so.0.0.0: undefined reference to`volk\_32fc\_x2\_multiply\_32fc\_neonasm’  
…/lib/libvolk.so.0.0.0: undefined reference to  
`volk_32fc_32f_dot_prod_32fc_a_neonasm' ../lib/libvolk.so.0.0.0: undefined reference to`volk\_32f\_x2\_dot\_prod\_32f\_neonasm’  
…/lib/libvolk.so.0.0.0: undefined reference to  
`volk_32f_x2_dot_prod_32f_neonasm_opts' ../lib/libvolk.so.0.0.0: undefined reference to`volk\_32fc\_32f\_dot\_prod\_32fc\_a\_neonpipeline’  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [volk/apps/volk-config-info] Error 1  
make[1]: \*\*\* [volk/apps/CMakeFiles/volk-config-info.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…  
libvolk.so.0.0.0: undefined reference to  
`volk_32fc_x2_multiply_32fc_neonasm' libvolk.so.0.0.0: undefined reference to`volk\_16i\_max\_star\_horizontal\_16i\_neonasm’  
libvolk.so.0.0.0: undefined reference to  
`volk_32fc_32f_dot_prod_32fc_a_neonasm' libvolk.so.0.0.0: undefined reference to`volk\_32f\_x2\_dot\_prod\_32f\_neonasm\_opts’  
libvolk.so.0.0.0: undefined reference to  
`volk_32fc_32f_dot_prod_32fc_a_neonpipeline' libvolk.so.0.0.0: undefined reference to`volk\_32f\_x2\_dot\_prod\_32f\_neonasm’  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [volk/lib/test\_all] Error 1  
make[1]: \*\*\* [volk/lib/CMakeFiles/test\_all.dir/all] Error 2  
make: \*\*\* [all] Error 2  
ERROR:root:PyBOMBS Make step failed for package (gnuradio) please see  
bash output above for a reason (hint: look for the word Error)  
aruntu@aruntu:~/pybombs$

Can anyone point me in the right direction?

Thanks,  
Freddie

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 12, 2014, 3:41am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio/231497/2 "2014-08-12T03:41:03Z")

</div>

On Mon, Aug 11, 2014 at 7:51 PM, Ed [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [24%] Built target pygen\_gr\_wxgui\_python\_wxgui\_173e9  
> ../lib/libvolk.so.0.0.0: undefined reference to  
> `volk\_32fc\_32f\_dot\_prod\_32fc\_a\_neonpipeline’  
> collect2: error: ld returned 1 exit status
> 
> * * *
> 
> Discuss-gnuradio mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

I’m not sure of the problem, except that I would expect this to happen  
if you did the following steps:

1. built GNU Radio from source roughly 3 weeks ago or later
2. updated to a new revision
3. run make without running cmake

Do you see any files in the gnuradio  
$buildir/volk/lib/CMakeFiles/volk.dir/\_\_/kernels/volk/asm/neon/ ?  
You can try using pybombs clean gnuradio, and then try building again.

Nathan

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 12, 2014, 3:37pm UTC](https://www.ruby-forum.com/t/problems-building-gnuradio/231497/3 "2014-08-12T15:37:38Z")

</div>

On Mon, Aug 11, 2014 at 9:39 PM, West, Nathan  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > [24%] Built target pygen\_gr\_wavelet\_python\_wavelet\_75fe3  
> > `volk_32fc_x2_multiply_32fc_neonasm' make[1]: *** [volk/apps/CMakeFiles/volk-config-info.dir/all] Error 2 `volk\_32fc\_32f\_dot\_prod\_32fc\_a\_neonpipeline’  
> > Can anyone point me in the right direction?
> 
> Do you see any files in the gnuradio  
> $buildir/volk/lib/CMakeFiles/volk.dir/\_\_/kernels/volk/asm/neon/ ?  
> You can try using pybombs clean gnuradio, and then try building again.
> 
> Nathan

Native compiles don’t pick up the proper C and ASM flags. Here’s what I  
had  
to set to build natively on a Tegra:

cmake [other options] -DCMAKE\_C\_FLAGS=“-march=armv7-a -mthumb-interwork  
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9”  
-DCMAKE\_ASM-ATT\_FLAGS=“-march=armv7-a -mthumb-interwork -mfloat-abi=hard  
-mfpu=neon”

I might have gone overboard with them, like it’s probably not necessary  
to  
tell the native C compiler what its arch is, but I mostly carried this  
over  
from our OE cross compiler work and it built and ran fine this way.

Tom
