Gnuradio 3.6.2 fails to build on OSX 10.6.8

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

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

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

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