GNU Radio on OS X 10.8.1: 'make test' does fail on many tests

Hi all

I’m trying to use GNU Radio (3.6.2) on OS X 10.8.1. It does
build with some warnings and ‘make test’ does create many errors.
It
seems that python crashes while performing ‘make test’ as I do receive
Mac OS X crash reports

I’m not sure if python is setup correctly as
‘cmake …/’ does find the PyhtonLibs at /usr/lib/libpython2.7.dylib
(macports does install everything below /opt).
Running python from
console does work ok. Also I’m able to execute help(‘modules’) in the
python console to verify all the dependencies.

I’ve red all the OSX
Installation Guides available, but in my case they are not suitable for
the new cmake type.
I did install all the dependencies through macports
and then I followed the installation instructions “Installing manually
from source”.

What do you suggest? Shall I try an installation via
homebrew-gnuradio or is there a chance to fix this issue?
I hope it is
not to specific to OS X 10.8.1… But all the software like clang was
installed through macports, which seems to be compiled from source.

I
did receive my first radio (Elecraft KX3) some days ago and am looking
forward to operate this SDR using GNU Radio.

Below are some details
about my setup. Let me know if I shall provide other information.

Best
wishes
Luca HB9FFE

MacBookPro:build$ uname -a
Darwin
MacBookPro.local 12.1.0 Darwin Kernel Version 12.1.0: Tue Aug 14
13:29:55 PDT 2012; root:xnu-2050.9.2~1/RELEASE_X86_64
x86_64
MacBookPro:build$ arch
i386
MacBookPro:build$ clang -v
clang
version 3.1 (branches/release_31)
Target:
x86_64-apple-darwin12.1.0
Thread model: posix

MacBookPro:gnuradio$
cmake --version
cmake version 2.8.9

MacBookPro:gnuradio$ python

Python 2.7.3 (default, Sep 16 2012, 00:02:58)
[GCC 4.2.1 Compatible
Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin
Type “help”,
“copyright”, “credits” or “license” for more information.

quit()
MacBookPro:build$ more ~/.bash_profile

export
PATH=/opt/local/bin:/opt/local/sbin:$PATH
export
MANPATH=/opt/local/share/man:${MANPATH}
export
INFOPATH=/opt/local/share/info:${INFOPATH}
export
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:${PKG_CONFIG_PATH}
export
CC=clang
export CXX=clang++
export F77=gfortran-mp-4.5
export
LDFLAGS="-L/opt/local/lib ${LDFLAGS}"
export PYTHON_VERSION=python -V 2>&1 | sed -e '[email protected]@ @2' | awk '{ print $2 }'
export PYTHON_ROOT=which python | sed -e '[email protected]/bin/[email protected]@g'
export
PYTHONPATH=${PYTHON_ROOT}/lib/python${PYTHON_VERSION}/site-packages
if
[ ${PYTHON_ROOT} != “/usr/include” ]; then
export
PYTHONPATH=${PYTHONPATH}:/usr/local/lib/python${PYTHON_VERSION}/site-packages

fi MacBookPro:build$ cmake …/

– The CXX compiler identification is
Clang 3.1.0
– The C compiler identification is Clang 3.1.0
– Check
for working CXX compiler: /opt/local/bin/clang++
– Check for working
CXX compiler: /opt/local/bin/clang++ – works
– Detecting CXX compiler
ABI info
– Detecting CXX compiler ABI info - done
– Check for
working C compiler: /opt/local/bin/clang
– Check for working C
compiler: /opt/local/bin/clang – works
– Detecting C compiler ABI
info
– Detecting C compiler ABI info - done
– Build type not
specified: defaulting to release.
– Found Git: /usr/bin/git

Extracting version information from git describe…
– Found
PythonLibs: /usr/lib/libpython2.7.dylib (found version “2.7.2”)

Found SWIG: /opt/local/bin/swig (found version “2.0.8”)
– Minimum SWIG
version required is 1.3.31


######################################################
– # Gnuradio
enabled components

######################################################
– *
python-support
– * testing-support
– * volk
– * doxygen
– *
gruel
– * gnuradio-core
– * gnuradio-companion
– * gr-fft
– *
gr-filter
– * gr-atsc
– * gr-audio
– * gr-digital
– * gr-noaa

– * gr-pager
– * gr-qtgui
– * gr-trellis
– * gr-utils
– *
gr-video-sdl
– * gr-vocoder
– * gr-fcd
– * gr-wavelet
– *
gr-wxgui

– ######################################################

– # Gnuradio disabled components

######################################################
– * sphinx

  • gr-comedi
    – * gr-uhd
    – * gr-shd –
    – Using install prefix:
    /usr/local
    – Building for version: v3.6.2-3-gc85bd69a / 3.6.3git

    Configuring done
    – Generating done
    MacBookPro:build$ make test

4% tests passed, 137 tests failed out of 143

Total Test time (real)
= 65.74 sec

The following tests FAILED:
3 - qa_pmt (Failed)
6 -
qa_add_and_friends (Failed)
7 - qa_add_v_and_friends (Failed)
8 -
qa_agc (Failed)
9 - qa_argmax (Failed)
10 - qa_bin_statistics
(Failed)
11 - qa_boolean_operators (Failed)
12 - qa_complex_to_xxx
(Failed)
13 - qa_conjugate (Failed)
14 - qa_copy (Failed)
15 -
qa_dc_blocker (Failed)
16 - qa_delay (Failed)
17 - qa_diff_encoder
(Failed)
18 - qa_diff_phasor_cc (Failed)
19 - qa_ecc_ccsds_27
(Failed)
20 - qa_endian_swap (Failed)
21 - qa_feval (Failed)
22 -
qa_fft (Failed)
23 - qa_fft_filter (Failed)
24 - qa_filter_delay_fc
(Failed)
25 - qa_float_to_char (Failed)
26 - qa_float_to_int
(Failed)
27 - qa_float_to_short (Failed)
28 - qa_float_to_uchar
(Failed)
29 - qa_fractional_interpolator (Failed)
30 -
qa_frequency_modulator (Failed)
31 - qa_fsk_stuff (Failed)
32 -
qa_glfsr_source (Failed)
33 - qa_goertzel (Failed)
34 - qa_head
(Failed)
35 - qa_hier_block2 (Failed)
36 - qa_hilbert (Failed)
37

  • qa_iir (Failed)
    38 - qa_int_to_float (Failed)
    39 - qa_integrate
    (Failed)
    40 - qa_interleave (Failed)
    41 - qa_interp_fir_filter
    (Failed)
    42 - qa_keep_m_in_n (Failed)
    43 - qa_kludge_copy (Failed)

44 - qa_kludged_imports (Failed)
45 - qa_max (Failed)
46 -
qa_message (Failed)
47 - qa_multiply_conjugate (Failed)
48 - qa_mute
(Failed)
49 - qa_nlog10 (Failed)
50 - qa_noise (Failed)
51 -
qa_pack_k_bits (Failed)
52 - qa_packed_to_unpacked (Failed)
53 -
qa_pipe_fittings (Failed)
54 - qa_pll_carriertracking (Failed)
55 -
qa_pll_freqdet (Failed)
56 - qa_pll_refout (Failed)
57 -
qa_pn_correlator_cc (Failed)
58 - qa_probe_signal (Failed)
59 -
qa_rational_resampler (Failed)
60 - qa_regenerate (Failed)
61 -
qa_repeat (Failed)
62 - qa_scrambler (Failed)
63 - qa_short_to_char
(Failed)
64 - qa_short_to_float (Failed)
65 - qa_sig_source (Failed)

66 - qa_single_pole_iir (Failed)
67 - qa_single_pole_iir_cc (Failed)

68 - qa_skiphead (Failed)
69 - qa_stream_mux (Failed)
70 -
qa_tag_debug (Failed)
71 - qa_udp_sink_source (Failed)
72 -
qa_unpack_k_bits (Failed)
73 - qa_vector_insert (Failed)
74 -
qa_vector_map (Failed)
75 - qa_vector_sink_source (Failed)
76 -
qa_wavefile (Failed)
77 - qa_fft (Failed)
78 - qa_goertzel (Failed)

80 - qa_adaptive_fir_filter (Failed)
81 - qa_channel_model (Failed)

82 - qa_dc_blocker (Failed)
83 - qa_fft_filter (Failed)
84 -
qa_filter_delay_fc (Failed)
85 - qa_fir_filter (Failed)
86 -
qa_firdes (Failed)
87 - qa_fractional_interpolator (Failed)
88 -
qa_freq_xlating_fir_filter (Failed)
89 - qa_hilbert (Failed)
90 -
qa_iir_filter (Failed)
91 - qa_interp_fir_filter (Failed)
92 -
qa_pfb_arb_resampler (Failed)
93 - qa_pfb_channelizer (Failed)
94 -
qa_pfb_decimator (Failed)
95 - qa_pfb_interpolator (Failed)
96 -
qa_pfb_synthesizer (Failed)
97 - qa_pm_remez (Failed)
98 -
qa_rational_resampler (Failed)
99 - qa_single_pole_iir (Failed)
101

  • qa_atsc (Failed)
    102 - qa_binary_slicer_fb (Failed)
    103 -
    qa_bytes_to_syms (Failed)
    104 - qa_chunks_to_symbols (Failed)
    105 -
    qa_clock_recovery_mm (Failed)
    106 - qa_cma_equalizer (Failed)
    107 -
    qa_constellation (Failed)
    108 - qa_constellation_decoder_cb (Failed)

109 - qa_constellation_receiver (Failed)
110 -
qa_correlate_access_code (Failed)
111 - qa_costas_loop_cc (Failed)

112 - qa_cpm (Failed)
113 - qa_crc32 (Failed)
114 - qa_diff_encoder
(Failed)
115 - qa_diff_phasor_cc (Failed)
116 - qa_digital (Failed)

117 - qa_fll_band_edge (Failed)
118 - qa_framer_sink (Failed)
119

  • qa_glfsr_source (Failed)
    120 - qa_lms_equalizer (Failed)
    121 -
    qa_map (Failed)
    122 - qa_mpsk_receiver (Failed)
    123 -
    qa_mpsk_snr_est (Failed)
    124 - qa_ofdm_insert_preamble (Failed)
    125
  • qa_pfb_clock_sync (Failed)
    126 - qa_pn_correlator_cc (Failed)
    127
  • qa_probe_density (Failed)
    128 - qa_scrambler (Failed)
    129 -
    qa_simple_framer (Failed)
    130 - qa_pager (Failed)
    131 - qa_qtgui
    (Failed)
    132 - qa_trellis (Failed)
    133 - qa_video_sdl (Failed)
    134
  • qa_alaw_vocoder (Failed)
    135 - qa_codec2_vocoder (Failed)
    136 -
    qa_cvsd_vocoder (Failed)
    137 - qa_g721_vocoder (Failed)
    138 -
    qa_g723_24_vocoder (Failed)
    139 - qa_g723_40_vocoder (Failed)
    140 -
    qa_gsm_full_rate (Failed)
    141 - qa_ulaw_vocoder (Failed)
    142 -
    qa_fcd (Failed)
    143 - qa_classify (Failed)
    Errors while running CTest

make: *** [test] Error 8

Hi Gian - You are probable encountering the PYTHON issue many of us OSX
users have had as well. If you do “grep PYTHON CMakeCache.txt” in the
top-level build directory, you should see included the following
variables, set to something:

PYTHON_EXECUTABLE:FILEPATH=
PYTHON_INCLUDE_DIR:PATH=
PYTHON_LIBRARY:FILEPATH=

These 3 variables need to refer to the same Python install. For
example, I’m using Python 2.7 from MacPorts set specifically, and so I
get back:

PYTHON_EXECUTABLE:FILEPATH=/opt/local/bin/python
PYTHON_INCLUDE_DIR:PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
PYTHON_LIBRARY:FILEPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib

If yours do not match up, then you can change that behavior by setting
them on the cmake command line; for example, what I use is (watching
wrap):

cmake … -DPYTHON_EXECUTABLE=/opt/local/bin/python
-DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib

If this doesn’t help, then email me off-list and I’ll help you debug the
issue. - MLD

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs