discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Problems building GNURadio


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Problems building GNURadio
Date: Tue, 12 Aug 2014 09:35:58 -0400

On Mon, Aug 11, 2014 at 9:39 PM, West, Nathan <address@hidden> wrote:
On Mon, Aug 11, 2014 at 7:51 PM, Ed <address@hidden> wrote:
> 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)
> address@hidden:~/pybombs$
>
> Can anyone point me in the right direction?
>
> Thanks,
> Freddie

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


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" <source dir>

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]