How to diagnose make test failures

Hi all, first time poster, not even a user yet since my build fails. I
am working with Fuduntu (a Fedora variant) on an Asus Eee PC 1000 with a
2gb ram upgrade.

I’m following
http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide to build
from source (my aim is to learn, so I’m not wanting to do binaries).

When I run make test I get the following failures:

22/192 Test #22: qa_fft_filter …***Failed 1.05 sec
85/192 Test #85: test_gr_filter …***Failed 0.27 sec
91/192 Test #91: qa_fft_filter …***Failed 1.11 sec
92/192 Test #92: qa_hilbert …***Failed 1.09 sec
93/192 Test #93: qa_filter_delay_fc …***Failed 1.10 sec
94/192 Test #94: qa_pfb_arb_resampler …***Failed 1.13 sec
95/192 Test #95: qa_rational_resampler …***Failed 1.23 sec
97/192 Test #97: qa_fir_filter …***Failed 1.23 sec
114/192 Test #114: qa_ctcss_squelch …***Failed 1.21 sec

My question is how should I go about diagnosing the problems?

Thank you,

Brian S.

Some additional information…

97/192 Test #97: qa_fir_filter …***Failed 1.23 sec
114/192 Test #114: qa_ctcss_squelch …***Failed 1.21 sec

My question is how should I go about diagnosing the problems?

Thank you,

Brian S.

I have since learned about running the individual tests verbosely, like
so:
ctest -V -R qa_fft_filter

I found that each of the tests listed above leads to a segmentation
fault, EXCEPT for the ca_ctcss_squelch test, which gives two assertion
errors:

Start 114: qa_ctcss_squelch

114: Test command: /bin/sh
“/home/brian/SDR/gnuradio/build/gr-analog/python/qa_ctcss_squelch_test.sh”
114: Test timeout computed to be: 9.99988e+06
114: .FF
114:

114: FAIL: test_ctcss_squelch_002 (main.test_ctcss_squelch)
114:

114: Traceback (most recent call last):
114: File
“/home/brian/SDR/gnuradio/gr-analog/python/qa_ctcss_squelch.py”, line
81, in test_ctcss_squelch_002
114: self.assertFloatTuplesAlmostEqual(expected_result, result_data,
4)
114: File
“/home/brian/SDR/gnuradio/gnuradio-core/src/python/gnuradio/gr_unittest.py”,
line 85, in assertFloatTuplesAlmostEqual
114: self.assertEqual (len(a), len(b))
114: AssertionError: 39 != 31
114:
114:

114: FAIL: test_ctcss_squelch_003 (main.test_ctcss_squelch)
114:

114: Traceback (most recent call last):
114: File
“/home/brian/SDR/gnuradio/gr-analog/python/qa_ctcss_squelch.py”, line
106, in test_ctcss_squelch_003
114: self.assertFloatTuplesAlmostEqual(expected_result, result_data,
4)
114: File
“/home/brian/SDR/gnuradio/gnuradio-core/src/python/gnuradio/gr_unittest.py”,
line 87, in assertFloatTuplesAlmostEqual
114: self.assertAlmostEqual (a[i], b[i], places, msg)
114: AssertionError: 0.8 != 0.0 within 4 places
114:
114:

114: Ran 3 tests in 0.012s
114:
114: FAILED (failures=2)
1/1 Test #114: qa_ctcss_squelch …***Failed 1.22 sec

Hopefully this additional information is helpful.

Thanks,
Brian

On 21/04/13 22:42, Stamper, Brian wrote:

94/192 Test #94: qa_pfb_arb_resampler …***Failed 1.13 sec
95/192 Test #95: qa_rational_resampler …***Failed 1.23 sec
97/192 Test #97: qa_fir_filter …***Failed 1.23 sec
114/192 Test #114: qa_ctcss_squelch …***Failed 1.21 sec

My question is how should I go about diagnosing the problems?

I am seeing similar errors with tests, but only when building on an i586
system, these (except for #1) don’t appear in x86_64.
The following tests FAILED:
1 - qa_volk_test_all (Failed) #1 Can’t find libvolk.so.0.0.0
52 - qa_fft_filter (Failed) #52 Segmentation fault
84 - test_gr_filter (Failed) #84 Segmentation fault
86 - qa_fractional_interpolator (Failed) #16 Pass #86 Segmentation
fault
87 - qa_pfb_decimator (Failed) #87 Segmentation fault
93 - qa_fft_filter (Failed) #93 Segmentation fault
96 - qa_adaptive_fir_filter (Failed) #96 Segmentation fault
97 - qa_channel_model (Failed) #97 Segmentation fault
98 - qa_freq_xlating_fir_filter (Failed) #98 Assertion Errors
99 - qa_pfb_synthesizer (Failed) #99 Segmentation fault
100 - qa_pfb_channelizer (Failed) #100 Segmentation fault
102 - qa_fir_filter (Failed) #102 Segmentation fault
103 - qa_pfb_interpolator (Failed) #103 Segmentation fault
104 - qa_pfb_arb_resampler (Failed) #104 Segmentation fault
156 - qa_qtgui (Failed) #156 Passes when not run from script
Errors while running CTest

Output of all failing tests with ctest -V -R is attached.

I too would like to know how to resolve these failures.

On 28/04/13 18:55, Tom R. wrote:

That’s very concerning about not finding libvolk.so. Make sure you
have, in the build directory, volk/lib/libvolk.so.0.0.0. If that’s not
there, volk didn’t build properly, which is necessary for the rest of
the QA tests that are failing.

Tom

Hi Tom,
The file is there - here is what I attached to the last post in the
thread about build failures with boost-1.52.

The build is done in chroot with base system and all buildrequires
installed

This is with boost-1.53 just to be clear :-

[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build$ ctest -V
-R qa_volk_test_all
UpdateCTestConfiguration from
:/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/DartConfiguration.tcl
UpdateCTestConfiguration from
:/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/DartConfiguration.tcl
Test project /home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph…
Checking test dependency graph end
test 1
Start 1: qa_volk_test_all

1: Test command:
/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib/test_all
1: Test timeout computed to be: 9.99988e+06
1: /home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib/test_all:
error while loading shared libraries: libvolk.so.0.0.0: cannot open
shared object file: No such file or directory
1/1 Test #1: qa_volk_test_all …***Failed 0.00 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 0.01 sec

The following tests FAILED:
1 - qa_volk_test_all (Failed)
Errors while running CTest
#-----------------------------------------------------------------

So to be sure I cd’d into the build dir and ls -l :-

[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build$ cd volk
[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk$ cd
lib
[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib$
ll
total 7092
drwxr-xr-x 4 baz baz 4096 Apr 15 10:56 CMakeFiles/
-rw-r–r-- 1 baz baz 353 Apr 15 10:56 CTestTestfile.cmake
-rw-r–r-- 1 baz baz 61580 Apr 15 10:56 Makefile
-rw-r–r-- 1 baz baz 1964 Apr 15 10:56 cmake_install.cmake
lrwxrwxrwx 1 baz baz 16 Apr 15 10:57 libvolk.so ->
libvolk.so.0.0.0*
-rwxr-xr-x 1 baz baz 4603262 Apr 15 10:57 libvolk.so.0.0.0* <=###
-rwxr-xr-x 1 baz baz 1862413 Apr 15 10:57 test_all*
-rw-r–r-- 1 baz baz 163386 Apr 15 10:56 volk.c
-rw-r–r-- 1 baz baz 9246 Apr 15 10:56
volk_16i_s32f_deinterleave_32f_x2_a_orc_impl.c
-rw-r–r-- 1 baz baz 6934 Apr 15 10:56
volk_16ic_deinterleave_16i_x2_a_orc_impl.c
-rw-r–r-- 1 baz baz 6739 Apr 15 10:56
volk_16ic_deinterleave_real_8i_a_orc_impl.c
-rw-r–r-- 1 baz baz 12958 Apr 15 10:56
volk_16ic_magnitude_16i_a_orc_impl.c
-rw-r–r-- 1 baz baz 12020 Apr 15 10:56
volk_16sc_magnitude_32f_aligned16_orc_impl.c
-rw-r–r-- 1 baz baz 5893 Apr 15 10:56 volk_16u_byteswap_a_orc_impl.c
-rw-r–r-- 1 baz baz 7022 Apr 15 10:56
volk_32f_s32f_multiply_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 6998 Apr 15 10:56
volk_32f_s32f_normalize_a_orc_impl.c
-rw-r–r-- 1 baz baz 6520 Apr 15 10:56 volk_32f_sqrt_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 7134 Apr 15 10:56
volk_32f_x2_add_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 7158 Apr 15 10:56
volk_32f_x2_divide_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 7477 Apr 15 10:56
volk_32f_x2_dot_prod_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 7246 Apr 15 10:56
volk_32f_x2_max_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 7246 Apr 15 10:56
volk_32f_x2_min_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 7174 Apr 15 10:56
volk_32f_x2_multiply_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 7174 Apr 15 10:56
volk_32f_x2_subtract_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 8338 Apr 15 10:56
volk_32fc_32f_multiply_32fc_a_orc_impl.c
-rw-r–r-- 1 baz baz 9260 Apr 15 10:56
volk_32fc_magnitude_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 11087 Apr 15 10:56
volk_32fc_s32f_magnitude_16i_a_orc_impl.c
-rw-r–r-- 1 baz baz 12556 Apr 15 10:56
volk_32fc_s32fc_multiply_32fc_a_orc_impl.c
-rw-r–r-- 1 baz baz 12560 Apr 15 10:56
volk_32fc_x2_multiply_32fc_a_orc_impl.c
-rw-r–r-- 1 baz baz 6702 Apr 15 10:56
volk_32i_x2_and_32i_a_orc_impl.c
-rw-r–r-- 1 baz baz 6691 Apr 15 10:56
volk_32i_x2_or_32i_a_orc_impl.c
-rw-r–r-- 1 baz baz 6533 Apr 15 10:56
volk_8i_convert_16i_a_orc_impl.c
-rw-r–r-- 1 baz baz 7790 Apr 15 10:56
volk_8i_s32f_convert_32f_a_orc_impl.c
-rw-r–r-- 1 baz baz 8171 Apr 15 10:56 volk_cpu.c
-rw-r–r-- 1 baz baz 31600 Apr 15 10:56 volk_machine_avx_64_mmx_orc.c
-rw-r–r-- 1 baz baz 22073 Apr 15 10:56 volk_machine_generic_orc.c
-rw-r–r-- 1 baz baz 27122 Apr 15 10:56 volk_machine_sse2_64_mmx_orc.c
-rw-r–r-- 1 baz baz 28765 Apr 15 10:56 volk_machine_sse3_64_orc.c
-rw-r–r-- 1 baz baz 30837 Apr 15 10:56 volk_machine_sse4_1_64_orc.c
-rw-r–r-- 1 baz baz 31052 Apr 15 10:56 volk_machine_sse4_2_64_orc.c
-rw-r–r-- 1 baz baz 28861 Apr 15 10:56 volk_machine_sse4_a_64_orc.c
-rw-r–r-- 1 baz baz 29258 Apr 15 10:56 volk_machine_ssse3_64_orc.c
-rw-r–r-- 1 baz baz 4094 Apr 15 10:56 volk_machines.c
-rw-r–r-- 1 baz baz 38774 Apr 15 10:56 volk_machines.h
#--------------------------------------------------------

Re-tested again :-

[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib$
./test_all
./test_all: error while loading shared libraries: libvolk.so.0.0.0:
cannot open shared object file: No such file or directory
[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib$
ls lib*
libvolk.so@ libvolk.so.0.0.0*
[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib$

I really don’t see how it can’t find it :confused:

Barry

On Sun, Apr 21, 2013 at 6:26 PM, Barry J. [email protected]
wrote:

92/192 Test #92: qa_hilbert …***Failed 1.09 sec

Segmentation fault
fault
Errors while running CTest

Output of all failing tests with ctest -V -R is attached.

I too would like to know how to resolve these failures.

That’s very concerning about not finding libvolk.so. Make sure you
have, in the build directory, volk/lib/libvolk.so.0.0.0. If that’s not
there, volk didn’t build properly, which is necessary for the rest of
the QA tests that are failing.

Tom

On Mon, Apr 29, 2013 at 2:12 PM, Barry J. [email protected]
wrote:

qa_volk_test_all
Start 1: qa_volk_test_all
0% tests passed, 1 tests failed out of 1

-rw-r–r-- 1 baz baz 1964 Apr 15 10:56 cmake_install.cmake
-rw-r–r-- 1 baz baz 12958 Apr 15 10:56
-rw-r–r-- 1 baz baz 7158 Apr 15 10:56
volk_32fc_32f_multiply_32fc_a_orc_impl.c
-rw-r–r-- 1 baz baz 6533 Apr 15 10:56 volk_8i_convert_16i_a_orc_impl.c
-rw-r–r-- 1 baz baz 29258 Apr 15 10:56 volk_machine_ssse3_64_orc.c
open shared object file: No such file or directory
[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib$ ls
lib*
libvolk.so@ libvolk.so.0.0.0*
[iurt cauldron]
rootjackodesktop/home/baz/rpmbuild/BUILD/gnuradio-3.6.3/build/volk/lib$

I really don’t see how it can’t find it :confused:

Barry

Barry,

Yeah, the only thing that I can think of is that it’s something to do
with your chroot environment. Any reason you’re doing it this way?

Also, what does ‘ldd volk/lib/volk.so.0.0.0’ show? Anything strange?

Tom