Bug 126163 - test suite build fails
Summary: test suite build fails
Status: RESOLVED FIXED
Alias: None
Product: cppunit
Classification: Unclassified
Component: General (show other bugs)
Version:
(earliest affected)
1.14
Hardware: All All
: medium normal
Assignee: Markus Mohrhard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-29 19:17 UTC by Tomasz Kłoczko
Modified: 2019-11-28 20:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Kłoczko 2019-06-29 19:17:19 UTC
BTW: do you have any plans to make new release?


Making check in cppunittest
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/cppunittest'
make  cppunittestmain
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/cppunittest'
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o assertion_traitsTest.o assertion_traitsTest.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o BaseTestCase.o BaseTestCase.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o CppUnitTestMain.o CppUnitTestMain.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o CppUnitTestSuite.o CppUnitTestSuite.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o ExceptionTest.o ExceptionTest.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o ExceptionTestCaseDecoratorTest.o ExceptionTestCaseDecoratorTest.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o HelperMacrosTest.o HelperMacrosTest.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o MessageTest.o MessageTest.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o MockTestCase.o MockTestCase.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o MockTestListener.o MockTestListener.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Werror -Wall -Wextra -pedantic -c -o OrthodoxTest.o OrthodoxTest.cpp
In file included from ../../include/cppunit/TestCase.h:6,
                 from ../../include/cppunit/TestCaller.h:5,
                 from ../../include/cppunit/extensions/HelperMacros.h:9,
                 from OrthodoxTest.h:4,
                 from OrthodoxTest.cpp:2:
../../include/cppunit/extensions/Orthodox.h: In instantiation of ‘void CppUnit::Orthodox<ClassUnderTest>::runTest() [with ClassUnderTest = OrthodoxTest::ValueBadAssignment]’:
../../include/cppunit/extensions/Orthodox.h:56:38:   required from here
../../include/cppunit/extensions/Orthodox.h:77:23: error: implicitly-declared ‘constexpr OrthodoxTest::ValueBadAssignment::ValueBadAssignment(const OrthodoxTest::ValueBadAssignment&)’ is deprecated [-Werror=deprecated-copy]
   77 |     CPPUNIT_ASSERT (c == call (a));
../../include/cppunit/TestAssert.h:240:37: note: in definition of macro ‘CPPUNIT_ASSERT’
  240 |   ( CPPUNIT_NS::Asserter::failIf( !(condition),                                   \
      |                                     ^~~~~~~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:159:25: note: because ‘OrthodoxTest::ValueBadAssignment’ has user-provided ‘OrthodoxTest::ValueBadAssignment& OrthodoxTest::ValueBadAssignment::operator=(const OrthodoxTest::ValueBadAssignment&)’
  159 |     ValueBadAssignment &operator =( const ValueBadAssignment & )
      |                         ^~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:87:63: note:   initializing argument 1 of ‘ClassUnderTest CppUnit::Orthodox<ClassUnderTest>::call(ClassUnderTest) [with ClassUnderTest = OrthodoxTest::ValueBadAssignment]’
   87 | ClassUnderTest Orthodox<ClassUnderTest>::call (ClassUnderTest object)
      |                                                ~~~~~~~~~~~~~~~^~~~~~
In file included from ../../include/cppunit/TestCase.h:6,
                 from ../../include/cppunit/TestCaller.h:5,
                 from ../../include/cppunit/extensions/HelperMacros.h:9,
                 from OrthodoxTest.h:4,
                 from OrthodoxTest.cpp:2:
../../include/cppunit/extensions/Orthodox.h:80:23: error: implicitly-declared ‘constexpr OrthodoxTest::ValueBadAssignment::ValueBadAssignment(const OrthodoxTest::ValueBadAssignment&)’ is deprecated [-Werror=deprecated-copy]
   80 |     CPPUNIT_ASSERT (c == call (b));
../../include/cppunit/TestAssert.h:240:37: note: in definition of macro ‘CPPUNIT_ASSERT’
  240 |   ( CPPUNIT_NS::Asserter::failIf( !(condition),                                   \
      |                                     ^~~~~~~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:159:25: note: because ‘OrthodoxTest::ValueBadAssignment’ has user-provided ‘OrthodoxTest::ValueBadAssignment& OrthodoxTest::ValueBadAssignment::operator=(const OrthodoxTest::ValueBadAssignment&)’
  159 |     ValueBadAssignment &operator =( const ValueBadAssignment & )
      |                         ^~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:87:63: note:   initializing argument 1 of ‘ClassUnderTest CppUnit::Orthodox<ClassUnderTest>::call(ClassUnderTest) [with ClassUnderTest = OrthodoxTest::ValueBadAssignment]’
   87 | ClassUnderTest Orthodox<ClassUnderTest>::call (ClassUnderTest object)
      |                                                ~~~~~~~~~~~~~~~^~~~~~
../../include/cppunit/extensions/Orthodox.h: In instantiation of ‘void CppUnit::Orthodox<ClassUnderTest>::runTest() [with ClassUnderTest = OrthodoxTest::ValueBadCall]’:
../../include/cppunit/extensions/Orthodox.h:56:38:   required from here
../../include/cppunit/extensions/Orthodox.h:65:5: error: implicitly-declared ‘OrthodoxTest::ValueBadCall& OrthodoxTest::ValueBadCall::operator=(const OrthodoxTest::ValueBadCall&)’ is deprecated [-Werror=deprecated-copy]
   65 |     b.operator= (a.operator! ());
      |     ^
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:136:5: note: because ‘OrthodoxTest::ValueBadCall’ has user-provided ‘OrthodoxTest::ValueBadCall::ValueBadCall(const OrthodoxTest::ValueBadCall&)’
  136 |     ValueBadCall( const ValueBadCall & ) : Value()
      |     ^~~~~~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:69:7: error: implicitly-declared ‘OrthodoxTest::ValueBadCall& OrthodoxTest::ValueBadCall::operator=(const OrthodoxTest::ValueBadCall&)’ is deprecated [-Werror=deprecated-copy]
   69 |     b = !!a;
      |     ~~^~~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:136:5: note: because ‘OrthodoxTest::ValueBadCall’ has user-provided ‘OrthodoxTest::ValueBadCall::ValueBadCall(const OrthodoxTest::ValueBadCall&)’
  136 |     ValueBadCall( const ValueBadCall & ) : Value()
      |     ^~~~~~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:73:7: error: implicitly-declared ‘OrthodoxTest::ValueBadCall& OrthodoxTest::ValueBadCall::operator=(const OrthodoxTest::ValueBadCall&)’ is deprecated [-Werror=deprecated-copy]
   73 |     b = !a;
      |     ~~^~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:136:5: note: because ‘OrthodoxTest::ValueBadCall’ has user-provided ‘OrthodoxTest::ValueBadCall::ValueBadCall(const OrthodoxTest::ValueBadCall&)’
  136 |     ValueBadCall( const ValueBadCall & ) : Value()
      |     ^~~~~~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:76:7: error: implicitly-declared ‘OrthodoxTest::ValueBadCall& OrthodoxTest::ValueBadCall::operator=(const OrthodoxTest::ValueBadCall&)’ is deprecated [-Werror=deprecated-copy]
   76 |     c = a;
      |     ~~^~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:136:5: note: because ‘OrthodoxTest::ValueBadCall’ has user-provided ‘OrthodoxTest::ValueBadCall::ValueBadCall(const OrthodoxTest::ValueBadCall&)’
  136 |     ValueBadCall( const ValueBadCall & ) : Value()
      |     ^~~~~~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:79:7: error: implicitly-declared ‘OrthodoxTest::ValueBadCall& OrthodoxTest::ValueBadCall::operator=(const OrthodoxTest::ValueBadCall&)’ is deprecated [-Werror=deprecated-copy]
   79 |     c = b;
      |     ~~^~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:136:5: note: because ‘OrthodoxTest::ValueBadCall’ has user-provided ‘OrthodoxTest::ValueBadCall::ValueBadCall(const OrthodoxTest::ValueBadCall&)’
  136 |     ValueBadCall( const ValueBadCall & ) : Value()
      |     ^~~~~~~~~~~~
In file included from ../../include/cppunit/TestCase.h:6,
                 from ../../include/cppunit/TestCaller.h:5,
                 from ../../include/cppunit/extensions/HelperMacros.h:9,
                 from OrthodoxTest.h:4,
                 from OrthodoxTest.cpp:2:
../../include/cppunit/extensions/Orthodox.h: In instantiation of ‘void CppUnit::Orthodox<ClassUnderTest>::runTest() [with ClassUnderTest = OrthodoxTest::Value]’:
../../include/cppunit/extensions/Orthodox.h:56:38:   required from here
../../include/cppunit/extensions/Orthodox.h:77:23: error: implicitly-declared ‘constexpr OrthodoxTest::Value::Value(const OrthodoxTest::Value&)’ is deprecated [-Werror=deprecated-copy]
   77 |     CPPUNIT_ASSERT (c == call (a));
../../include/cppunit/TestAssert.h:240:37: note: in definition of macro ‘CPPUNIT_ASSERT’
  240 |   ( CPPUNIT_NS::Asserter::failIf( !(condition),                                   \
      |                                     ^~~~~~~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:41:12: note: because ‘OrthodoxTest::Value’ has user-provided ‘OrthodoxTest::Value& OrthodoxTest::Value::operator=(const OrthodoxTest::Value&)’
   41 |     Value& operator= ( const Value& v )
      |            ^~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:87:63: note:   initializing argument 1 of ‘ClassUnderTest CppUnit::Orthodox<ClassUnderTest>::call(ClassUnderTest) [with ClassUnderTest = OrthodoxTest::Value]’
   87 | ClassUnderTest Orthodox<ClassUnderTest>::call (ClassUnderTest object)
      |                                                ~~~~~~~~~~~~~~~^~~~~~
In file included from ../../include/cppunit/TestCase.h:6,
                 from ../../include/cppunit/TestCaller.h:5,
                 from ../../include/cppunit/extensions/HelperMacros.h:9,
                 from OrthodoxTest.h:4,
                 from OrthodoxTest.cpp:2:
../../include/cppunit/extensions/Orthodox.h:80:23: error: implicitly-declared ‘constexpr OrthodoxTest::Value::Value(const OrthodoxTest::Value&)’ is deprecated [-Werror=deprecated-copy]
   80 |     CPPUNIT_ASSERT (c == call (b));
../../include/cppunit/TestAssert.h:240:37: note: in definition of macro ‘CPPUNIT_ASSERT’
  240 |   ( CPPUNIT_NS::Asserter::failIf( !(condition),                                   \
      |                                     ^~~~~~~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:41:12: note: because ‘OrthodoxTest::Value’ has user-provided ‘OrthodoxTest::Value& OrthodoxTest::Value::operator=(const OrthodoxTest::Value&)’
   41 |     Value& operator= ( const Value& v )
      |            ^~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h:87:63: note:   initializing argument 1 of ‘ClassUnderTest CppUnit::Orthodox<ClassUnderTest>::call(ClassUnderTest) [with ClassUnderTest = OrthodoxTest::Value]’
   87 | ClassUnderTest Orthodox<ClassUnderTest>::call (ClassUnderTest object)
      |                                                ~~~~~~~~~~~~~~~^~~~~~
../../include/cppunit/extensions/Orthodox.h: In instantiation of ‘ClassUnderTest CppUnit::Orthodox<ClassUnderTest>::call(ClassUnderTest) [with ClassUnderTest = OrthodoxTest::ValueBadAssignment]’:
../../include/cppunit/extensions/Orthodox.h:77:5:   required from ‘void CppUnit::Orthodox<ClassUnderTest>::runTest() [with ClassUnderTest = OrthodoxTest::ValueBadAssignment]’
../../include/cppunit/extensions/Orthodox.h:56:38:   required from here
../../include/cppunit/extensions/Orthodox.h:89:12: error: implicitly-declared ‘constexpr OrthodoxTest::ValueBadAssignment::ValueBadAssignment(const OrthodoxTest::ValueBadAssignment&)’ is deprecated [-Werror=deprecated-copy]
   89 |     return object;
      |            ^~~~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:159:25: note: because ‘OrthodoxTest::ValueBadAssignment’ has user-provided ‘OrthodoxTest::ValueBadAssignment& OrthodoxTest::ValueBadAssignment::operator=(const OrthodoxTest::ValueBadAssignment&)’
  159 |     ValueBadAssignment &operator =( const ValueBadAssignment & )
      |                         ^~~~~~~~
In file included from OrthodoxTest.cpp:3:
../../include/cppunit/extensions/Orthodox.h: In instantiation of ‘ClassUnderTest CppUnit::Orthodox<ClassUnderTest>::call(ClassUnderTest) [with ClassUnderTest = OrthodoxTest::Value]’:
../../include/cppunit/extensions/Orthodox.h:77:5:   required from ‘void CppUnit::Orthodox<ClassUnderTest>::runTest() [with ClassUnderTest = OrthodoxTest::Value]’
../../include/cppunit/extensions/Orthodox.h:56:38:   required from here
../../include/cppunit/extensions/Orthodox.h:89:12: error: implicitly-declared ‘constexpr OrthodoxTest::Value::Value(const OrthodoxTest::Value&)’ is deprecated [-Werror=deprecated-copy]
   89 |     return object;
      |            ^~~~~~
In file included from OrthodoxTest.cpp:2:
OrthodoxTest.h:41:12: note: because ‘OrthodoxTest::Value’ has user-provided ‘OrthodoxTest::Value& OrthodoxTest::Value::operator=(const OrthodoxTest::Value&)’
   41 |     Value& operator= ( const Value& v )
      |            ^~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:753: OrthodoxTest.o] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/cppunittest'
make[2]: *** [Makefile:1024: check-am] Error 2
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/cppunittest'
make[1]: *** [Makefile:380: check-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples'
make: *** [Makefile:575: check-recursive] Error 1
Comment 1 Xisco Faulí 2019-11-25 15:39:58 UTC
Hi Tomasz,
Is this issue still happening on master ?
Comment 2 Tomasz Kłoczko 2019-11-26 04:13:07 UTC
After apply current git patches seems that issue have been sorted out however still test suite fails in other place:



============================================================================
Testsuite summary for cppunit 1.15.0
============================================================================
# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/cppunittest'
Making check in simple
make[2]: Nothing to be done for 'check'.
Making check in ClockerPlugIn
make[2]: Nothing to be done for 'check'.
Making check in DumperPlugIn
make[2]: Nothing to be done for 'check'.
Making check in money
/usr/bin/make  MoneyApp
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Werror -Wall -Wextra -pedantic -c -o MoneyApp-MoneyApp.o `test -f 'MoneyApp.cpp' || echo './'`MoneyApp.cpp
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Werror -Wall -Wextra -pedantic -c -o MoneyApp-MoneyTest.o `test -f 'MoneyTest.cpp' || echo './'`MoneyTest.cpp
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
/bin/sh ../../libtool  --tag=CXX   --mode=link g++  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Werror -Wall -Wextra -pedantic  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o MoneyApp MoneyApp-MoneyTest.o MoneyApp-MoneyApp.o ../../src/cppunit/libcppunit.la 
libtool: link: g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Werror -Wall -Wextra -pedantic -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o .libs/MoneyApp MoneyApp-MoneyTest.o MoneyApp-MoneyApp.o  ../../src/cppunit/.libs/libcppunit.so -ldl
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
/usr/bin/make  check-TESTS
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
FAIL: MoneyApp
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
===================================================
   cppunit 1.15.0: examples/money/test-suite.log
===================================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: MoneyApp
==============

....F

##Failure Location unknown## : Assertion
Test name: MoneyTest::testAddThrow
expected exception not thrown

Failures !!!
Run: 4   Failure total: 1   Failures: 1   Errors: 0
FAIL MoneyApp (exit status: 1)

============================================================================
Testsuite summary for cppunit 1.15.0
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See examples/money/test-suite.log
============================================================================
make[4]: *** [Makefile:745: test-suite.log] Error 1
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cppunit-1.14.0/examples/money'
make[3]: *** [Makefile:853: check-TESTS] Error 2
make[2]: *** [Makefile:927: check-am] Error 2
make[1]: *** [Makefile:379: check-recursive] Error 1
make: *** [Makefile:526: check-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.hsC9GC (%check)
Comment 3 Xisco Faulí 2019-11-26 09:40:42 UTC
Hi Tomasz,
I've never built cppunit myself, but what happens if you make clean before you build again ?
Comment 4 Tomasz Kłoczko 2019-11-26 12:38:50 UTC
I'b building cppunits out of dist tar ball + git patches using build procedure described in rpm spec file.
I'm not using manuall procesz ..

Hehe is the example output of the %prep of the build:

[tkloczko@barrel SPECS]$ rpmbuild -bp cppunit.spec
warning: Downloading https://dev-www.libreoffice.org/src/cppunit-1.14.0.tar.gz to /home/tkloczko/rpmbuild/SOURCES/cppunit-1.14.0.tar.gz
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=85d24152#/cppunit-Report-un-signed-char-values-numerically.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Report-un-signed-char-values-numerically.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=1eaec743#/cppunit-Fix-money-example-on-propely-linking-with-library-wi.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Fix-money-example-on-propely-linking-with-library-wi.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=a4127334#/cppunit-contrib-cppunit2junit-parametrize-testsuite-name.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-contrib-cppunit2junit-parametrize-testsuite-name.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=66e39e76#/cppunit-fix-make-distcheck-part1.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-fix-make-distcheck-part1.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=03fe3b83#/cppunit-fix-make-distcheck-part2.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-fix-make-distcheck-part2.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=fd711124#/cppunit-C-11-provides-std-isfinite-and-std-isnan.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-C-11-provides-std-isfinite-and-std-isnan.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=0f06c57c#/cppunit-next-version-will-be-1.15.0.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-next-version-will-be-1.15.0.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=653b1db8#/cppunit-Make-output-XML-report-schema-UTF-8-and-remove-Japan.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Make-output-XML-report-schema-UTF-8-and-remove-Japan.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=4f5cd3b4#/cppunit-Avoid-GCC-9-Wdeprecated-copy.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Avoid-GCC-9-Wdeprecated-copy.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=48145587#/cppunit-extensions-add-CPPUNIT_TEST_FIXTURE.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-extensions-add-CPPUNIT_TEST_FIXTURE.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=3788fccd#/cppunit-Unconditionally-use-C-11-noreturn.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Unconditionally-use-C-11-noreturn.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=1caa3a0c#/cppunit-custom-tostring-formatter-to-CPPUNIT_ASSERT_MESSAGE.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-custom-tostring-formatter-to-CPPUNIT_ASSERT_MESSAGE.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=51efd6f2#/cppunit-Added-some-brackets-to-make-it-more-clear-for-the-co.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Added-some-brackets-to-make-it-more-clear-for-the-co.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=9da32ab7#/cppunit-Modernize-AM_INIT_AUTOMAKE-syntax.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Modernize-AM_INIT_AUTOMAKE-syntax.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=c37be301#/cppunit-use-in-AC-macros.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-use-in-AC-macros.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=339b60ab#/cppunit-Documentation-updates.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Documentation-updates.patch
warning: Downloading https://cgit.freedesktop.org/libreoffice/cppunit//patch/?id=78e64f0e#/cppunit-Fix-build-with-gcc9.1.patch to /home/tkloczko/rpmbuild/SOURCES/cppunit-Fix-build-with-gcc9.1.patch
warning: line 40: It's not recommended to have unversioned Obsoletes: Obsoletes:	cppunit-doc
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9TN3IK
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd /home/tkloczko/rpmbuild/BUILD
+ rm -rf cppunit-1.14.0
+ /usr/bin/gzip -dc /home/tkloczko/rpmbuild/SOURCES/cppunit-1.14.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cppunit-1.14.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Report-un-signed-char-values-numerically.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Fix-money-example-on-propely-linking-with-library-wi.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-contrib-cppunit2junit-parametrize-testsuite-name.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-fix-make-distcheck-part1.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-fix-make-distcheck-part2.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-C-11-provides-std-isfinite-and-std-isnan.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-next-version-will-be-1.15.0.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Make-output-XML-report-schema-UTF-8-and-remove-Japan.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Avoid-GCC-9-Wdeprecated-copy.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-extensions-add-CPPUNIT_TEST_FIXTURE.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Unconditionally-use-C-11-noreturn.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-custom-tostring-formatter-to-CPPUNIT_ASSERT_MESSAGE.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Added-some-brackets-to-make-it-more-clear-for-the-co.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Modernize-AM_INIT_AUTOMAKE-syntax.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-use-in-AC-macros.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Documentation-updates.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/cppunit-Fix-build-with-gcc9.1.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ RPM_EC=0
++ jobs -p
+ exit 0

Nothing in that case needs to be cleaned.
Comment 5 QA Administrators 2019-11-27 03:47:43 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2019-11-27 14:55:33 UTC
@Markus Mohrhard, any opinion here ?
Comment 7 Markus Mohrhard 2019-11-28 19:30:48 UTC
Tomasz can you provide some more details about your system? distro, gcc version, ...?

I have not seen this error myself and at least checking the code it makes no sense. Unless I manage to reproduce the error your best bet is to build the code with symbols and run the test under gdb.
Comment 8 Markus Mohrhard 2019-11-28 19:58:14 UTC
Found and fixed the issue with ce97a647a901b4ebb34dc6806ab0c4d2885e92e1
Comment 9 Tomasz Kłoczko 2019-11-28 20:04:49 UTC
Distribution is mine own based on Fedora rawhide but with everything rebuild using LTO and -Wl,--as needed.
gcc is rawhide 9.2.1.
Let me know what you what to check using gdb and I'll try to do that.