# Gnuradio 3.6.2 fails to build on OSX 10.6.8

**URL:** <https://www.ruby-forum.com/t/gnuradio-3-6-2-fails-to-build-on-osx-10-6-8/222804>\
**Category:** GNU Radio\
**Created:** [September 11, 2012, 1:09pm UTC](https://www.ruby-forum.com/t/gnuradio-3-6-2-fails-to-build-on-osx-10-6-8/222804 "2012-09-11T13:09:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 11, 2012, 1:09pm UTC](https://www.ruby-forum.com/t/gnuradio-3-6-2-fails-to-build-on-osx-10-6-8/222804/1 "2012-09-11T13:09:07Z")

</div>

Hi,

I’m trying to build the latest (3.6.2) gnuradio sources on OSX 10.6.8,  
but it fails:

cd /tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig && /usr/bin/c++  
-D\_gnuradio\_core\_general\_EXPORTS -g -O2 -fPIC -I/opt/local/include  
-I/tmp/gnuradio-3.6.2/gruel/src/include  
-I/tmp/gnuradio-3.6.2/build/gruel/src/include  
-I/tmp/gnuradio-3.6.2/gruel/src/swig  
-I/tmp/gnuradio-3.6.2/build/gruel/src/swig  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/swig  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/runtime  
-I/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/general  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/general  
-I/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/gengen  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/gengen  
-I/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/filter  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/filter  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/missing  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/reed-solomon  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/viterbi  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/io  
-I/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig  
-I/tmp/gnuradio-3.6.2/gnuradio-core/src/lib/hier  
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers  
-fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -o  
CMakeFiles/\_gnuradio\_core\_general.dir/gnuradio\_core\_generalPYTHON\_wrap.cxx.o  
-c  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_is\_uint64(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:107460:  
error: pmt\_is\_uint64 is not a member of pmt  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_from\_uint64(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:107496:  
error: pmt\_from\_uint64 is not a member of pmt  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_to\_uint64(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:107540:  
error: pmt\_to\_uint64 is not a member of pmt  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_print(PyObject\*, PyObject\*, PyObject\*):  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:116966:  
error: pmt\_print is not a member of pmt  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_serialize\_str(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:117127:  
error: pmt\_serialize\_str is not a member of pmt  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_deserialize\_str(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:117165:  
error: pmt\_deserialize\_str is not a member of pmt  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function void SWIG\_InitializeModule(void\*):  
/tmp/gnuradio-3.6.2/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:130173:  
warning: statement has no effect  
/opt/local/include/boost/system/error\_code.hpp: At global scope:  
/opt/local/include/boost/system/error\_code.hpp:214: warning:  
boost::system::posix\_category defined but not used  
/opt/local/include/boost/system/error\_code.hpp:215: warning:  
boost::system::errno\_ecat defined but not used  
/opt/local/include/boost/system/error\_code.hpp:216: warning:  
boost::system::native\_ecat defined but not used  
make[2]: \*\*\*  
[gnuradio-core/src/lib/swig/CMakeFiles/\_gnuradio\_core\_general.dir/gnuradio\_core\_generalPYTHON\_wrap.cxx.o]  
Error 1  
make[1]: \*\*\*  
[gnuradio-core/src/lib/swig/CMakeFiles/\_gnuradio\_core\_general.dir/all]  
Error 2  
make: \*\*\* [all] Error 2

gcc i686-apple-darwin10-g+±4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666)  
(dot 3),  
boost 1.50,  
swig 2.0.8,  
python 2.7.3

Any ideas what’s going wrong?

Cheers, Sebastian

---

<div class="post-metadata">

**Author:** ![Sebastian\_Hanigk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@Sebastian\_Hanigk](https://www.ruby-forum.com/u/Sebastian_Hanigk)\
**Post date:** [September 11, 2012, 2:18pm UTC](https://www.ruby-forum.com/t/gnuradio-3-6-2-fails-to-build-on-osx-10-6-8/222804/2 "2012-09-11T14:18:40Z")

</div>

Hi Sebastian - Are all of the dependencies installed using MacPorts?  
Which version of XCode are you using? Have you tried building from the  
GIT master to see if that version works? Those are starting points;  
once I know more, we can narrow down possible issues. - MLD

---

<div class="post-metadata">

**Author:** ![Sebastian\_Hanigk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@Sebastian\_Hanigk](https://www.ruby-forum.com/u/Sebastian_Hanigk)\
**Post date:** [September 11, 2012, 3:09pm UTC](https://www.ruby-forum.com/t/gnuradio-3-6-2-fails-to-build-on-osx-10-6-8/222804/3 "2012-09-11T15:09:01Z")

</div>

Am 11.09.2012 um 14:17 schrieb Michael D.:

Hi Michael,

> Hi Sebastian - Are all of the dependencies installed using MacPorts?

yes, apart from the Qt libraries and their Python bindings which are not  
installed at all.

> Which version of XCode are you using?

3.2.6, it’s the last available version for the 10.6 OSX release.

> Have you tried building from the GIT master to see if that version works? Those  
> are starting points; once I know more, we can narrow down possible issues. - MLD

Checked out from the git repository, no change:

cd /tmp/gnuradio/build/gnuradio-core/src/lib/swig && /usr/bin/c++  
-D\_gnuradio\_core\_general\_EXPORTS -g -O2 -fPIC -I/opt/local/include  
-I/tmp/gnuradio/gruel/src/include  
-I/tmp/gnuradio/build/gruel/src/include -I/tmp/gnuradio/gruel/src/swig  
-I/tmp/gnuradio/build/gruel/src/swig  
-I/tmp/gnuradio/gnuradio-core/src/lib/swig  
-I/tmp/gnuradio/gnuradio-core/src/lib/runtime  
-I/tmp/gnuradio/build/gnuradio-core/src/lib/general  
-I/tmp/gnuradio/gnuradio-core/src/lib/general  
-I/tmp/gnuradio/build/gnuradio-core/src/lib/gengen  
-I/tmp/gnuradio/gnuradio-core/src/lib/gengen  
-I/tmp/gnuradio/build/gnuradio-core/src/lib/filter  
-I/tmp/gnuradio/gnuradio-core/src/lib/filter  
-I/tmp/gnuradio/gnuradio-core/src/lib/missing  
-I/tmp/gnuradio/gnuradio-core/src/lib/reed-solomon  
-I/tmp/gnuradio/gnuradio-core/src/lib/viterbi  
-I/tmp/gnuradio/gnuradio-core/src/lib/io  
-I/tmp/gnuradio/build/gnuradio-core/src/lib/swig  
-I/tmp/gnuradio/gnuradio-core/src/lib/hier  
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers  
-fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -o  
CMakeFiles/\_gnuradio\_core\_general.dir/gnuradio\_core\_generalPYTHON\_wrap.cxx.o  
-c  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_is\_uint64(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:107460:  
error: pmt\_is\_uint64 is not a member of pmt  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_from\_uint64(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:107496:  
error: pmt\_from\_uint64 is not a member of pmt  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_to\_uint64(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:107540:  
error: pmt\_to\_uint64 is not a member of pmt  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_print(PyObject\*, PyObject\*, PyObject\*):  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:116966:  
error: pmt\_print is not a member of pmt  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_serialize\_str(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:117127:  
error: pmt\_serialize\_str is not a member of pmt  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function PyObject\* \_wrap\_pmt\_deserialize\_str(PyObject\*, PyObject\*,  
PyObject\*):  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:117165:  
error: pmt\_deserialize\_str is not a member of pmt  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:  
In function void SWIG\_InitializeModule(void\*):  
/tmp/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio\_core\_generalPYTHON\_wrap.cxx:130173:  
warning: statement has no effect  
/opt/local/include/boost/system/error\_code.hpp: At global scope:  
/opt/local/include/boost/system/error\_code.hpp:214: warning:  
boost::system::posix\_category defined but not used  
/opt/local/include/boost/system/error\_code.hpp:215: warning:  
boost::system::errno\_ecat defined but not used  
/opt/local/include/boost/system/error\_code.hpp:216: warning:  
boost::system::native\_ecat defined but not used  
make[2]: \*\*\*  
[gnuradio-core/src/lib/swig/CMakeFiles/\_gnuradio\_core\_general.dir/gnuradio\_core\_generalPYTHON\_wrap.cxx.o]  
Error 1  
make[1]: \*\*\*  
[gnuradio-core/src/lib/swig/CMakeFiles/\_gnuradio\_core\_general.dir/all]  
Error 2  
make: \*\*\* [all] Error 2

cmake command for configuration is “cmake  
-DCMAKE\_INSTALL\_PREFIX=/Users/i31aseha/Applications/gnuradio  
-DCMAKE\_BUILD\_TYPE=Debug  
-DPYTHON\_INCLUDE\_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers  
-DPYTHON\_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python  
../”

Cheers, Sebastian

---

<div class="post-metadata">

**Author:** ![Sebastian\_Hanigk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@Sebastian\_Hanigk](https://www.ruby-forum.com/u/Sebastian_Hanigk)\
**Post date:** [September 12, 2012, 9:04am UTC](https://www.ruby-forum.com/t/gnuradio-3-6-2-fails-to-build-on-osx-10-6-8/222804/4 "2012-09-12T09:04:45Z")

</div>

Am 11.09.2012 um 15:31 schrieb Michael D.:

Hi Michael,

> 1. “sudo port deactivate gnuradio-gruel usrp” ; then delete the GR build  
> directory and redo from the start. I think the issue is that GRUEL is already  
> installed and “-I/opt/local/include” is the first path searched for those headers,  
> so they are being found instead of the build directory ones. Some day I will get  
> the gnuradio-\* ports upgraded in MacPorts; I’ve got plenty of tickets in that  
> regard

that lingering 3.3.0 gnuradio-gruel installation (probably missed it  
when uninstalling the macport gnuradio ports) must have been the  
culprit; deactivated it and 3.6.2 as well as the git checkout built  
without trouble.

Thanks for the quick help!

Sebastian
