[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#777788: autounit: ftbfs with GCC-5



Package: src:autounit
Version: 0.20.1-4
Severity: normal
Tags: sid stretch
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-5

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-5/g++-5, but succeeds to build with gcc-4.9/g++-4.9. The
severity of this report may be raised before the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc5-20150205/autounit_0.20.1-4_unstable_gcc5.log
The last lines of the build log are at the end of this report.

To build with GCC 5, either set CC=gcc-5 CXX=g++-5 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t experimental install g++ 

Common build failures are C11 as the default C mode, new warnings
resulting in build failures with -Werror turned on, or new/dropped
symbols in Debian symbols files.  For other C/C++ related build failures
see the porting guide at http://gcc.gnu.org/gcc-5/porting_to.html

[...]
Making check in c-unit
make[2]: Entering directory '/«PKGBUILDDIR»/c-unit'
Making check in .
make[3]: Entering directory '/«PKGBUILDDIR»/c-unit'
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I../c-unit -I.. -I../intl -I../intl -g -O2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -MT test.lo -MD -MP -MF .deps/test.Tpo -c -o test.lo test.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../c-unit -I.. -I../intl -I../intl -g -O2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -MT test.lo -MD -MP -MF .deps/test.Tpo -c test.c  -fPIC -DPIC -o .libs/test.o
In file included from test.c:30:0:
test.c: In function 'au_run_test_fork':
./autounit.h:203:106: error: expected expression before ')' token
 #define au_assert(t, expr, err_msg, ...) au_assert_true(t, expr, __FILE__, __LINE__, err_msg, __VA_ARGS__)
                                                                                                          ^
test.c:305:7: note: in expansion of macro 'au_assert'
       au_assert(t, 0, _("pipe failed"));
       ^
./autounit.h:203:106: error: expected expression before ')' token
 #define au_assert(t, expr, err_msg, ...) au_assert_true(t, expr, __FILE__, __LINE__, err_msg, __VA_ARGS__)
                                                                                                          ^
test.c:311:7: note: in expansion of macro 'au_assert'
       au_assert(t, 0, _("fork failed"));
       ^
test.c:324:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  exit(0);
  ^
test.c:324:2: warning: incompatible implicit declaration of built-in function 'exit'
test.c:324:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
In file included from test.c:30:0:
./autounit.h:203:106: error: expected expression before ')' token
 #define au_assert(t, expr, err_msg, ...) au_assert_true(t, expr, __FILE__, __LINE__, err_msg, __VA_ARGS__)
                                                                                                          ^
test.c:349:6: note: in expansion of macro 'au_assert'
      au_assert(t, 0, _("test failed with signal"));
      ^
./autounit.h:203:106: error: expected expression before ')' token
 #define au_assert(t, expr, err_msg, ...) au_assert_true(t, expr, __FILE__, __LINE__, err_msg, __VA_ARGS__)
                                                                                                          ^
test.c:354:6: note: in expansion of macro 'au_assert'
      au_assert(t, 0, _("test failed with core dump"));
      ^
make[3]: *** [test.lo] Error 1
Makefile:475: recipe for target 'test.lo' failed
make[3]: Leaving directory '/«PKGBUILDDIR»/c-unit'
make[2]: *** [check-recursive] Error 1
Makefile:515: recipe for target 'check-recursive' failed
make[2]: Leaving directory '/«PKGBUILDDIR»/c-unit'
make[1]: *** [check-recursive] Error 1
Makefile:389: recipe for target 'check-recursive' failed
make[1]: Leaving directory '/«PKGBUILDDIR»'
make: *** [build-stamp] Error 2
debian/rules:68: recipe for target 'build-stamp' failed
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2


Reply to: