Raspberry PI 2 build failure

Hello,

I have been attempting to build gnu radio on a Raspberry PI 2 running
Debian Wheezy. I believe I have properly built and installed the latest
releases of the gnu radio dependencies. However the gnu radio build
fails with the following:

ron@squireoaksfarm-radio ~/src/gnuradio/build $ make -j4
[ 0%] Built target doxygen_target
[ 0%] Built target pygen_python_volk_modtool_e4ffc
[ 1%] Built target pygen_python_volk_modtool_2f770
[ 1%] Built target pmt_generated
[ 1%] Built target gr_fec_rstest
[ 4%] Built target blocks_generated_includes
[ 4%] Built target filter_generated_includes
[ 5%] Built target pygen_gr_filter_examples_d9ea4
[ 5%] Built target digital_generated_includes
[ 5%] Built target analog_generated_includes
[ 7%] Built target volk_obj
[ 7%] Built target atsc_viterbi_gen
[ 7%] Built target atsci_viterbi_gen
[ 7%] Built target gr_trellis_xml
[ 7%] Built target generate_codebook
[ 8%] Built target trellis_generated_includes
[ 8%] Built target volk
[ 9%] Built target gnuradio-pmt
[ 9%] Linking CXX executable test_all
[ 10%] Linking CXX executable volk_profile
[ 10%] Linking CXX executable volk-config-info
[ 16%] Built target gnuradio-runtime
libvolk.so.1.0: undefined reference to
volk_16i_max_star_horizontal_16i_neonasm' libvolk.so.1.0: undefined reference tovolk_32fc_x2_multiply_32fc_neonasm’
libvolk.so.1.0: undefined reference to
volk_32fc_32f_dot_prod_32fc_a_neonasm' libvolk.so.1.0: undefined reference tovolk_32f_x2_dot_prod_32f_neonasm’
libvolk.so.1.0: undefined reference to
volk_32f_x2_dot_prod_32f_neonasm_opts' libvolk.so.1.0: undefined reference tovolk_32fc_32f_dot_prod_32fc_a_neonpipeline’
collect2: ld returned 1 exit status
volk/lib/CMakeFiles/test_all.dir/build.make:121: recipe for target
‘volk/lib/test_all’ failed
make[2]: *** [volk/lib/test_all] Error 1
CMakeFiles/Makefile2:178: recipe for target
‘volk/lib/CMakeFiles/test_all.dir/all’ failed
make[1]: *** [volk/lib/CMakeFiles/test_all.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
…/lib/libvolk.so.1.0: undefined reference to
volk_32fc_x2_multiply_32fc_neonasm' ../lib/libvolk.so.1.0: undefined reference tovolk_16i_max_star_horizontal_16i_neonasm’
…/lib/libvolk.so.1.0: undefined reference to
volk_32fc_32f_dot_prod_32fc_a_neonasm' ../lib/libvolk.so.1.0: undefined reference tovolk_32f_x2_dot_prod_32f_neonasm_opts’
…/lib/libvolk.so.1.0: undefined reference to
volk_32fc_32f_dot_prod_32fc_a_neonpipeline' ../lib/libvolk.so.1.0: undefined reference tovolk_32f_x2_dot_prod_32f_neonasm’
collect2: ld returned 1 exit status
volk/apps/CMakeFiles/volk-config-info.dir/build.make:99: recipe for
target ‘volk/apps/volk-config-info’ failed
make[2]: *** [volk/apps/volk-config-info] Error 1
CMakeFiles/Makefile2:309: recipe for target
‘volk/apps/CMakeFiles/volk-config-info.dir/all’ failed
make[1]: *** [volk/apps/CMakeFiles/volk-config-info.dir/all] Error 2
[ 17%] Built target test-gnuradio-runtime
…/lib/libvolk.so.1.0: undefined reference to
volk_32fc_x2_multiply_32fc_neonasm' ../lib/libvolk.so.1.0: undefined reference tovolk_16i_max_star_horizontal_16i_neonasm’
…/lib/libvolk.so.1.0: undefined reference to
volk_32fc_32f_dot_prod_32fc_a_neonasm' ../lib/libvolk.so.1.0: undefined reference tovolk_32f_x2_dot_prod_32f_neonasm_opts’
…/lib/libvolk.so.1.0: undefined reference to
volk_32fc_32f_dot_prod_32fc_a_neonpipeline' ../lib/libvolk.so.1.0: undefined reference tovolk_32f_x2_dot_prod_32f_neonasm’
collect2: ld returned 1 exit status
volk/apps/CMakeFiles/volk_profile.dir/build.make:125: recipe for target
‘volk/apps/volk_profile’ failed
make[2]: *** [volk/apps/volk_profile] Error 1
CMakeFiles/Makefile2:346: recipe for target
‘volk/apps/CMakeFiles/volk_profile.dir/all’ failed
make[1]: *** [volk/apps/CMakeFiles/volk_profile.dir/all] Error 2
Makefile:160: recipe for target ‘all’ failed
make: *** [all] Error 2
ron@squireoaksfarm-radio ~/src/gnuradio/build $

It appears there is an issue with neon support.
Thanks,

– 73 Ron / W4MMP

Hi Murat,
Thanks very much for the information. I did attempt using Jessie a
while ago via the raspbian repositories but that did not work out so
well. I will give what you have suggested a try.

73
Ron / W4MMP

Hi Ron,

have a look at
https://gnuradio.org/redmine/projects/gnuradio/wiki/Embedded

You have to native compile:

cmake -DCMAKE_C_FLAGS=“-march=armv7 -mthumb-interwork -mfloat-abi=hard
-mfpu=neon -mtune=cortex-a7” -DCMAKE_ASM_FLAGS=“-march=armv7
-mthumb-interwork -mfloat-abi=hard -mfpu=neon”

After them start make.

Andy

Am 28.06.2015 um 19:02 schrieb Ron: