# Build on ubuntu 14.04

**URL:** <https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983>\
**Category:** GNU Radio\
**Created:** [May 25, 2014, 11:30am UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983 "2014-05-25T11:30:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [May 25, 2014, 11:30am UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983/1 "2014-05-25T11:30:58Z")

</div>

Dear list,

I try to compile the new GR 3.7.4-git.

But it breaks with pybombs as well as with the script build-grc.sh  
The job is done inside of a virtualbox-environment. host: win8.1, guest  
ubuntu 14.04 + updates

Mem 1600 MB

## cut of the script build-grc.sh log -----------------8\<-------------------------------- – CPU missing cvtpi32\_ps, Overruled arch avx – Check size of void\*[8] – Check size of void\*[8] - done – CPU width is 64 bits, Overruled arch 32 – Available architectures: generic;64;3dnow;abm;popcount;mmx;sse;sse2;orc;norc;sse3;ssse3;sse4\_a;sse4\_1;sse4\_2 – Available machines: generic\_orc;sse2\_64\_mmx\_orc;sse3\_64\_orc;ssse3\_64\_orc;sse4\_a\_64\_orc;sse4\_1\_64\_orc;sse4\_2\_64\_orc – BUILTTYPERELWITHDEBINFO – Base cflags = -O2 -g -DNDEBUG – BUILD INFO ::: generic\_orc ::: GNU ::: -O2 -g -DNDEBUG – BUILD INFO ::: sse2\_64\_mmx\_orc ::: GNU ::: -O2 -g -DNDEBUG -m64 -mmmx -msse -msse2 – BUILD INFO ::: sse3\_64\_orc ::: GNU ::: -O2 -g -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 – BUILD INFO ::: ssse3\_64\_orc ::: GNU ::: -O2 -g -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 – BUILD INFO ::: sse4\_a\_64\_orc ::: GNU ::: -O2 -g -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -msse4a -mpopcnt – BUILD INFO ::: sse4\_1\_64\_orc ::: GNU ::: -O2 -g -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 – BUILD INFO ::: sse4\_2\_64\_orc ::: GNU ::: -O2 -g -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt – Compiler Version: cc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 Copyright © 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. – Loading build date Thu, 22 May 2014 18:56:46 into constants… – Loading version 0.1 into constants… – Using install prefix: /usr/local – ENABLE\_GR\_LOG set to ON. – HAVE\_LOG4CPP set to False. – LOG4CPP\_LIBRARIES set to . -----------------8\<-------------------------------- and some lines down during config of gnuradio -----------------8\<-------------------------------- – Boost version: 1.54.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – Enabling use of known bad versions of Boost.

## – Python checking for wx \>= 2.8 – Python checking for wx \>= 2.8 - found

## – Python checking for numpy – Python checking for numpy - found

## – Configuring gr-wxgui support… – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency ENABLE\_PYTHON = ON – Dependency NUMPY\_FOUND = TRUE – Dependency WX\_FOUND = TRUE – Enabling gr-wxgui support. – Override with -DENABLE\_GR\_WXGUI=ON/OFF

## – ###################################################### – # Gnuradio enabled components – ###################################################### – \* python-support – \* testing-support – \* volk – \* doxygen – \* gnuradio-runtime – \* gr-blocks – \* gnuradio-companion – \* gr-fec – \* gr-fft – \* gr-filter – \* gr-analog – \* gr-digital – \* gr-atsc – \* gr-audio – \* gr-channels – \* gr-noaa – \* gr-pager – \* gr-qtgui – \* gr-trellis – \* gr-uhd – \* gr-utils – \* gr-video-sdl – \* gr-vocoder – \* gr-fcd – \* gr-wavelet – \* gr-wxgui

## – ###################################################### – # Gnuradio disabled components – ###################################################### – \* sphinx – \* gr-ctrlport – \* gr-comedi

– Using install prefix: /usr/local  
– Building for version: 3.7.3 / 3.7.3  
– Configuring done  
– Generating done  
– Build files have been written to:  
/home/hartje/Dokumente/devel/gr/gnuradio/build  
…Building  
[1%] Generating volk\_machine\_sse4\_2\_64\_orc.c  
…  
-----------------8\<--------------------------------  
and at the end  
-----------------8\<--------------------------------  
[37%] Generating doxygen xml for blocks\_swig2\_doc docs  
Warning: Tag `SYMBOL\_CACHE\_SIZE’ at line 289 of file  
/home/hartje/Dokumente/devel/gr/gnuradio/build/gr-blocks/swig/blocks\_swig2\_doc\_swig\_docs/Doxyfile  
has become obsolete.  
To avoid this warning please remove this line from your configuration  
file or upgrade it using “doxygen -u”  
Warning: doxygen no longer ships with the FreeSans font.  
You may want to clear or change DOT\_FONTNAME.  
Otherwise you run the risk that the wrong font is being used for dot  
generated graphs.  
[37%] Generating python docstrings for blocks\_swig2\_doc  
[37%] Built target blocks\_swig2\_swig\_doc  
Scanning dependencies of target \_blocks\_swig2\_swig\_tag  
[37%] Building CXX object  
gr-blocks/swig/CMakeFiles/\_blocks\_swig2\_swig\_tag.dir/\_blocks\_swig2\_swig\_tag.cpp.o  
Linking CXX executable \_blocks\_swig2\_swig\_tag  
[37%] Built target \_blocks\_swig2\_swig\_tag  
[37%] Generating blocks\_swig2.tag  
[37%] Swig source  
Scanning dependencies of target \_blocks\_swig2  
[37%] Building CXX object  
gr-blocks/swig/CMakeFiles/\_blocks\_swig2.dir/blocks\_swig2PYTHON\_wrap.cxx.o  
c++: internal compiler error: Gettet (program cc1plus)  
Please submit a full bug report,  
with preprocessed source if appropriate.  
See \<file:///usr/share/doc/gcc-4.8/README.Bugs\> for instructions.  
make[2]: \*\*\*  
[gr-blocks/swig/CMakeFiles/\_blocks\_swig2.dir/blocks\_swig2PYTHON\_wrap.cxx.o]  
Fehler 4  
make[1]: \*\*\* [gr-blocks/swig/CMakeFiles/\_blocks\_swig2.dir/all] Fehler 2  
make: \*\*\* [all] Fehler 2  
make failed  
Exiting Gnu Radio build/install

-----------------8\<--------------------------------

the error is similar, wenn I try to use the script  
build-grc.sh gnuradio\_buld

I like to ask for some help how to get further – I am not sure if the  
mentioned error report is the only way or some other people had similar  
observations

many thanks for (the expected) help

## – mit freundlichen Gren M. Hartje

Prof. Dr.-Ing. Michael H.  
Labor Hochspannungstechnik / Labor elektrische Messtechnik  
Neustadtswall 30;  
D-28199 Bremen  
Tel +49 421 5905-3444 FAX +49 421 5905-3476

---

<div class="post-metadata">

**Author:** ![teddio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@teddio](https://www.ruby-forum.com/u/teddio)\
**Post date:** [May 25, 2014, 12:17pm UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983/2 "2014-05-25T12:17:50Z")

</div>

Hi Michael,

build-grc.sh is not known to me; I think you’re referring to  
build-gnuradio? (grc is short for GNU Radio Companion, the graphical  
Flowgraph Designer included in GNU Radio).

There have been problems with builds on Ubuntu 14.04.

However, your output indicates no error; so I’m not quite sure how to  
help you. Maybe put the complete log somewhere on pastebin or  
[gist.github.com](http://gist.github.com)?  
By the way, pybombs is the recommended way to go for modern systems.

If you really just want a running Linux VM with GNU Radio installed, try  
the LiveDVD images:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioLiveDVD](http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioLiveDVD)

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![teddio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@teddio](https://www.ruby-forum.com/u/teddio)\
**Post date:** [May 25, 2014, 1:49pm UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983/3 "2014-05-25T13:49:30Z")

</div>

I don’t know if this is the same problem I have seen building on ARM  
with low memory and no swap.

The build was failing silently with just the cc1plus error.  
Gnuradio needs at least 4GB of swap.

Apologies if neither of the above applies.  
73 … Sid.

On 25/05/14 10:29, Michael H. wrote:

> cut of the script build-grc.sh log  
> – Base cflags = -O2 -g -DNDEBUG  
> -msse -msse2 -msse3 -mssse3 -msse4.1  
> – HAVE\_LOG4CPP set to False.  
> – thread  
> – Enabling use of known bad versions of Boost.

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![teddio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@teddio](https://www.ruby-forum.com/u/teddio)\
**Post date:** [May 26, 2014, 10:10am UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983/4 "2014-05-26T10:10:12Z")

</div>

Hi Michael and Sid,

how many compiler threads are you spawning? When you use 1 (i.e. make  
-j1), is this still a problem?

M

---

<div class="post-metadata">

**Author:** ![teddio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@teddio](https://www.ruby-forum.com/u/teddio)\
**Post date:** [May 25, 2014, 1:50pm UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983/5 "2014-05-25T13:50:44Z")

</div>

And what is the size of the VM disk limited to and how much RAM have you  
allowed it? The step you are showing as exiting in (SWIG) requires lots  
of  
resources in building gnuradio. I hate SWIG, but have no idea what in  
the  
world we would do without it.

---

<div class="post-metadata">

**Author:** ![teddio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@teddio](https://www.ruby-forum.com/u/teddio)\
**Post date:** [May 26, 2014, 11:38am UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983/6 "2014-05-26T11:38:16Z")

</div>

On ARM it was with 4 threads initially then re-running with 1 thread  
gave the same error.

That 3.0.6x distro kernel was built without swap so I had to build and  
install a new kernel with swap.  
The first go with 2GB swap also failed and I had to make another 2GB  
swap file and add it with swapon.

The base memory is 1GB and with a 4GB swapfile enabled in /etc/fstab I  
have had no more problems building gnuradio 3.6.5 and a while back  
3.7.3git.  
73 … Sid.

On 26/05/14 09:08, Martin B. wrote:

> > I try to compile the new GR 3.7.4-git.  
> > – Check size of void\*[8]  
> > – BUILD INFO ::: generic\_orc ::: GNU ::: -O2 -g -DNDEBUG  
> > – BUILD INFO ::: sse4\_2\_64\_orc ::: GNU ::: -O2 -g -DNDEBUG -m64 -mmmx  
> > – ENABLE\_GR\_LOG set to ON.  
> > – system  
> > – thread  
> > – Enabling use of known bad versions of Boost.
> 
> * * *
> 
> 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)

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![teddio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@teddio](https://www.ruby-forum.com/u/teddio)\
**Post date:** [May 26, 2014, 11:43am UTC](https://www.ruby-forum.com/t/build-on-ubuntu-14-04/229983/7 "2014-05-26T11:43:12Z")

</div>

Cython?
