Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Mobile
User Name
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site:


  Search this Thread
Old 08-22-2013, 03:56 PM   #1
Registered: Apr 2006
Posts: 78

Rep: Reputation: 15
GnuRadio compilation issues on Arm devices.

After many hours trying to install gunradio-3.7.0 that for reasons I do not understand would not install gruel, needed by gr-ais (see, I tried gnuradio-3.6.3. Finally compiled and installed (including gruel) successfully this morning. I encountered an error provided below and a solution that worked for me. Hopefully it will work for you too.

Will I be able to use a DVB - RTL dongle to receive ais transmissions from surrounding ships with my Xoom. Probably not, because the program will most likely not be able to use the video chip. But, I'm giving it a try anyway. Never know, and maybe I'll be able to find a work around for the video issue (if it exists) and make it work yet.

When I encountered a cmake error attempting to compile gnuradio in a linux chroot environment on my Motorola Xoom, my response was to search the net for a solution.

So doing, I discovered there were others with Raspberry pi and other arm devices having the same problem. Yet, nobody seemed to know the solution. Tenacity paid off as I eventually discovered what I believe to be the problem.

I originally suspected my CXX_FLAGS setting may be incorrect, but they were not the cause.

The correct settings for my Xoom are:

CMAKE_CXX_FLAGS:STRING=-mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -march=armv7-a

Yours will vary depending upon your device hardware configuration. Incorrect CXX_FLAGS settings will slam dunk your compilation!

Initially, the compilation failed with the following output:

3/build/gruel/src/include -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -o CMakeFiles/gnuradio-core.dir/filter/dotprod_fff_armv7_a.c.o -c /home/android/Downloads4/gnuradio-3.6.3/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.c
/tmp/ccohvLcU.s: Assembler messages:
/tmp/ccohvLcU.s:31: Error: selected FPU does not support instruction -- `vmov.f32 q8,#0.0'
/tmp/ccohvLcU.s:32: Error: selected FPU does not support instruction -- `vmov.f32 q9,#0.0'
/tmp/ccohvLcU.s:37: Error: selected FPU does not support instruction -- `vmla.f32 q8,q0,q2'
/tmp/ccohvLcU.s:38: Error: selected FPU does not support instruction -- `vmla.f32 q9,q1,q3'
/tmp/ccohvLcU.s:40: Error: selected FPU does not support instruction -- `vadd.f32 q8,q8,q9'
/tmp/ccohvLcU.s:41: Error: selected processor does not support Thumb mode `vpadd.f32 d0,d16,d17'
make[2]: *** [gnuradio-core/src/lib/CMakeFiles/gnuradio-core.dir/filter/dotprod_fff_armv7_a.c.o] Error 1
make[2]: Leaving directory `/home/android/Downloads4/gnuradio-3.6.3/build
make[1]: *** [gnuradio-core/src/lib/CMakeFiles/gnuradio-core.dir/all] Error 2
make[1]: Leaving directory `/home/android/Downloads4/gnuradio-3.6.3/build'
make: *** [all] Error 2

This error occurs because for some reason gnuradio cmake identifies my Xoom, with a Nvidia Tegra 2 cpu as possessing Neon capability. It does not.

For me, the solution is to run cmake, then after the process is complete open ../gnuradio-3.6.3/build/CmakeCache.txt with a text editor.

Scan way down the file until you find:

//Test have_mfpu_neon

Delete the "1" and save the file.

Run make. It will appear that cmake is being run again and might change your edit, but it doesn't.

Hopefully this will help some of you to resolve this issue.

Last edited by svarmido; 08-23-2013 at 09:27 AM.


android, cmake, compile error, instruction, raspberry pi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xscale or arm compilation kuppan-j Linux - General 1 04-02-2013 04:52 AM
OpenGL cross compilation for ARM les sciences Linux - Software 1 10-23-2012 09:47 AM
ARM patches for kernel compilation nsL Linux - Kernel 1 02-22-2011 05:39 PM
Arm cross compilation shariefbe Linux - Software 1 12-18-2009 09:45 AM
native compilation on ARM ?? ra2008 Linux - Embedded & Single-board computer 5 07-27-2008 07:38 AM > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration