Package: src:simulavr
Version: 0.1.2.2-7
Severity: normal
Tags: sid buster
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-7

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-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/simulavr_0.1.2.2-7_unstable_gcc7.log
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

Common build failures are 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-7/porting_to.html

[...]
then mv -f ".deps/avrcore.Tpo" ".deps/avrcore.Po"; else rm -f 
".deps/avrcore.Tpo"; exit 1; fi
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Winline -Werror 
-I../src/getopt -Wall -g -std=gnu89 -O2 -MT avrerror.o -MD -MP -MF 
".deps/avrerror.Tpo" -c -o avrerror.o avrerror.c; \
then mv -f ".deps/avrerror.Tpo" ".deps/avrerror.Po"; else rm -f 
".deps/avrerror.Tpo"; exit 1; fi
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Winline -Werror 
-I../src/getopt -Wall -g -std=gnu89 -O2 -MT avrmalloc.o -MD -MP -MF 
".deps/avrmalloc.Tpo" -c -o avrmalloc.o avrmalloc.c; \
then mv -f ".deps/avrmalloc.Tpo" ".deps/avrmalloc.Po"; else rm -f 
".deps/avrmalloc.Tpo"; exit 1; fi
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Winline -Werror 
-I../src/getopt -Wall -g -std=gnu89 -O2 -MT callback.o -MD -MP -MF 
".deps/callback.Tpo" -c -o callback.o callback.c; \
then mv -f ".deps/callback.Tpo" ".deps/callback.Po"; else rm -f 
".deps/callback.Tpo"; exit 1; fi
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Winline -Werror 
-I../src/getopt -Wall -g -std=gnu89 -O2 -MT decoder.o -MD -MP -MF 
".deps/decoder.Tpo" -c -o decoder.o decoder.c; \
then mv -f ".deps/decoder.Tpo" ".deps/decoder.Po"; else rm -f 
".deps/decoder.Tpo"; exit 1; fi
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Winline -Werror 
-I../src/getopt -Wall -g -std=gnu89 -O2 -MT device.o -MD -MP -MF 
".deps/device.Tpo" -c -o device.o device.c; \
then mv -f ".deps/device.Tpo" ".deps/device.Po"; else rm -f ".deps/device.Tpo"; 
exit 1; fi
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Winline -Werror 
-I../src/getopt -Wall -g -std=gnu89 -O2 -MT devsupp.o -MD -MP -MF 
".deps/devsupp.Tpo" -c -o devsupp.o devsupp.c; \
then mv -f ".deps/devsupp.Tpo" ".deps/devsupp.Po"; else rm -f 
".deps/devsupp.Tpo"; exit 1; fi
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Winline -Werror 
-I../src/getopt -Wall -g -std=gnu89 -O2 -MT display.o -MD -MP -MF 
".deps/display.Tpo" -c -o display.o display.c; \
then mv -f ".deps/display.Tpo" ".deps/display.Po"; else rm -f 
".deps/display.Tpo"; exit 1; fi
display.c: In function 'display_open':
display.c:144:45: error: '%d' directive output may be truncated writing between 
1 and 11 bytes into a region of size 9 [-Werror=format-truncation=]
         snprintf (spfd, sizeof (spfd) - 1, "%d", pfd[0]);
                                             ^~
display.c:144:44: note: using the range [1, -2147483648] for directive argument
         snprintf (spfd, sizeof (spfd) - 1, "%d", pfd[0]);
                                            ^~~~
display.c:144:9: note: format output between 2 and 12 bytes into a destination 
of size 9
         snprintf (spfd, sizeof (spfd) - 1, "%d", pfd[0]);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
display.c:147:59: error: '%d' directive output may be truncated writing between 
1 and 11 bytes into a region of size 8 [-Werror=format-truncation=]
         snprintf (pfd_env, sizeof (pfd_env), "SIM_PIPE_FD=%d", pfd[0]);
                                                           ^~
display.c:147:46: note: using the range [1, -2147483648] for directive argument
         snprintf (pfd_env, sizeof (pfd_env), "SIM_PIPE_FD=%d", pfd[0]);
                                              ^~~~~~~~~~~~~~~~
display.c:147:9: note: format output between 14 and 24 bytes into a destination 
of size 20
         snprintf (pfd_env, sizeof (pfd_env), "SIM_PIPE_FD=%d", pfd[0]);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:431: recipe for target 'display.o' failed
make[4]: *** [display.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
Makefile:454: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
Makefile:318: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
Makefile:337: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:28: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Reply via email to