Volk "make test" Failure on OSX on Next Branch, sometimes

OSX 10.8 latest, Xcode latest, GNU Radio next branch latest, using
llvm-gcc-4.2 for the compiler. From the build directory, if I execute
“ctest -V -R volk”, it succeeds about 3/4 of the time; it fails about
1/4 of the time with the attached text (always the same text).
Hopefully someone who knows Volk can make sense of it; I’m happy to try
out fixes. - MLD

{{{
1: RUN_VOLK_TESTS: volk_32fc_x2_dot_prod_32fc
1: generic completed in 0.002865s
1: u_sse3 completed in 0.002075s
1: a_generic completed in 0.002993s
1: a_sse_64 completed in 0.001976s
1: a_sse3 completed in 0.002035s
1: a_sse4_1 completed in 0.002776s
1: offset 0 in1: 888.937 in2: 8.75659e+08
1: volk_32fc_x2_dot_prod_32fc: fail on arch a_sse4_1
1: Best aligned arch: a_sse_64
1: Best unaligned arch: u_sse3
1:
/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/gnuradio-3.8.0_20130629/volk/lib/testqa.cc:36:
error in “volk_32fc_x2_dot_prod_32fc_test”: check
run_volk_tests(volk_32fc_x2_dot_prod_32fc_get_func_desc(), (void
(*)())volk_32fc_x2_dot_prod_32fc_manual,
std::string(“volk_32fc_x2_dot_prod_32fc”), 1e-4, 0, 2046000, 1, 0,
“NULL”) == 0 failed [true != 0]
1: RUN_VOLK_TESTS: volk_32fc_32f_dot_prod_32fc
1: generic completed in 0.000255s
1: a_sse completed in 0.000108s
1: Best aligned arch: a_sse
1: Best unaligned arch: generic
}}}

OSX 10.8 latest, Xcode latest, GNU Radio next branch latest, using
llvm-gcc-4.2 for the compiler. From the build directory, “make test”
fails, beyond the Volk sometimes I mentioned in the prior email, in the
following 3 test. I’m happy to help debug these, if anyone has ideas of
where to start or a patch to try out. - MLD

  1. qa_udp_source_sink

{{{
64: Test command: /bin/sh
“/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/build/gr-blocks/python/blocks/qa_udp_source_sink_test.sh”
64: Test timeout computed to be: 9.99988e+06
64:
/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/build/gr-blocks/python/blocks/qa_udp_source_sink_test.sh:
line 7: 16659 Segmentation fault: 11 /opt/local/bin/python2.7 -B
/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/gnuradio-3.8.0_20130629/gr-blocks/python/blocks/qa_udp_source_sink.py
1/1 Test #64: qa_udp_source_sink …***Failed 2.63 sec
}}}

  1. qa_agc

{{{
97: Test command: /bin/sh
“/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/build/gr-analog/python/analog/qa_agc_test.sh”
97: Test timeout computed to be: 9.99988e+06
97: …F…
97:

97: FAIL: test_006 (main.test_agc)
97: Test the complex AGC loop (attack and decay rate inputs)
97:

97: Traceback (most recent call last):
97: File
“/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/gnuradio-3.8.0_20130629/gr-analog/python/analog/qa_agc.py”,
line 485, in test_006
97: self.assertFloatTuplesAlmostEqual(result, M*[ref,], 4)
97: File
“/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/gnuradio-3.8.0_20130629/gnuradio-runtime/python/gnuradio/gr_unittest.py”,
line 90, in assertFloatTuplesAlmostEqual
97: self.assertAlmostEqual (a[i], b[i], places, msg)
97: AssertionError: 0.9980064034532232 != 1 within 4 places
97:
97:

97: Ran 12 tests in 0.021s
97:
97: FAILED (failures=1)
97: Using Volk machine: sse4_1_64_orc
1/1 Test #97: qa_agc …***Failed 0.45 sec
}}}

  1. qa_codec2_vocoder

{{{
166: Test command: /bin/sh
“/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/build/gr-vocoder/python/vocoder/qa_codec2_vocoder_test.sh”
166: Test timeout computed to be: 9.99988e+06
166: F
166:

166: FAIL: test001_module_load (main.test_codec2_vocoder)
166:

166: Traceback (most recent call last):
166: File
“/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gnuradio/gnuradio-next/work/gnuradio-3.8.0_20130629/gr-vocoder/python/vocoder/qa_codec2_vocoder.py”,
line 54, in test001_module_load
166: self.assertEqual(expected_data, actual_result)
166: AssertionError: Tuples differ: (0, 0, 0, 3, 2, 0, 1, 5, 6, 7,… !=
(0L, 0L, 1L, 2L, 0L, -4L, -8L,…
166:
166: First differing element 2:
166: 0
166: 1
166:
166: Diff is 2956 characters long. Set self.maxDiff to None to see it.
166:
166:

166: Ran 1 test in 0.174s
166:
166: FAILED (failures=1)
1/1 Test #166: qa_codec2_vocoder …***Failed 0.71 sec
}}}