Bug #56
make check in gnuradio-core fails
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | gnuradio-core | |||
| Target version: | release-3.1 | |||
| Resolution: | fixed |
Description
make check in gnuradio-core dies on Cygwin with a segfault. WIll attach full logs as files
...
Testing (15,11) RS codec...OK
Testing (31,25) RS codec...OK
Testing (63,55) RS codec...OK
Testing (127,117) RS codec...OK
Testing (255,223) RS codec...OK
Testing (255,223) RS codec...OK
All codec tests passed!
PASS: rstest
==================
All 1 tests passed
==================
maker4: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib/reed-solomon'
maker3: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib/reed-solomon'
Making check in omnithread
maker3: Entering directory @/home/matt/gnuradio/gnuradio-core/src/lib/omnithread'
maker3: Nothing to be done for @check'.
maker3: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib/omnithread'
Making check in io
maker3: Entering directory @/home/matt/gnuradio/gnuradio-core/src/lib/io'
maker3: Nothing to be done for @check'.
maker3: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib/io'
Making check in .
maker3: Entering directory @/home/matt/gnuradio/gnuradio-core/src/lib'
maker3: Nothing to be done for @check-am'.
maker3: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib'
Making check in swig
maker3: Entering directory @/home/matt/gnuradio/gnuradio-core/src/lib/swig'
make check-am
maker4: Entering directory @/home/matt/gnuradio/gnuradio-core/src/lib/swig'
maker4: Nothing to be done for @check-am'.
maker4: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib/swig'
maker3: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib/swig'
maker2: Leaving directory @/home/matt/gnuradio/gnuradio-core/src/lib'
Making check in tests
maker2: Entering directory @/home/matt/gnuradio/gnuradio-core/src/tests'
make check-TESTS
maker3: Entering directory @/home/matt/gnuradio/gnuradio-core/src/tests'
/bin/sh: line 4: 4004 Segmentation fault (core dumped) ${dir}$tst
FAIL: test_all
===================
1 of 1 tests failed
===================
History
Updated by Eric Blossom over 6 years ago
Absent someone to work on this, I've set the milestone to post-release-3.0
Updated by Don Ward over 6 years ago
I have replicated this problem using a clean install of Cygwin. I believe the failure results from using the Cygwin package version of cppunit (1.9.14-1). If I uninstall the Cygwin package version and download and (manually) install cppunit 1.12.0, the problem goes away. (Note that make check during installation of cppunit 1.12.0 fails in DllPlugInTesterTest but make check on GNU Radio works ok.)
Updated by Don Ward over 6 years ago
While cppunit 1.12.0 eliminates the failure in gnuradio-core, it causes make check to fail in pmt. Apparently cppunit has the same problem with std::string as GNU Radio (see Ticket #48) and can use the same workaround.
To build a working cppunit for GNU Radio on Cygwin, download cppunit-1.12.0 (from sourceforge) and the attached file cppunit_dll_string.patch to the same directory. Then from that directory:
$ tar zxf cppunit-1.12.0.tar.gz $ cd cppunit-1.12.0 $ patch -p0 -i ../cppunit_dll_string.patch $ aclocal -I config $ autoconf $ ./configure $ ./make $ ./make install
The workaround for std::string eliminates the cppunit
make check failure in DllPlugInTesterTest, but there is still a failure in cppunittestmain. With this cppunit, GNU Radio make check works for all components that I can build.Updated by Johnathan Corgan over 6 years ago
Milestone post-release-3.0 deleted
Updated by Johnathan Corgan over 6 years ago
Milestone release-3.0.1 deleted
Updated by Guest User over 6 years ago
I am also seeing this on Ubuntu 5.10 (Breezy Badger) on i686, using the 3.0rc2 tarball. The version of libcppunit is 1.10-2c2.
So maybe the "on cygwin" should be dropped from the title of the ticket?
Updated by Anonymous over 6 years ago
The problem is resolved on Cygwin when version 3.4.4-3 of the Cygwin gcc-core and gcc-g++ packages are used to compile CppUnit 1.12.0 and GNU Radio; cppunit_dll_string.patch is no longer required, and make check works on both CppUnit and GNU Radio.
Updated by Johnathan Corgan over 6 years ago
- Status changed from New to Closed
- Resolution set to fixed
Closing per last update by Don Ward.