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

Bug#956972: abcmidi: ftbfs with GCC-10



Package: src:abcmidi
Version: 20200122-1
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/abcmidi_20200122-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
      |                             ^
drawtune.c:3019:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 3019 |       printbarnumber(ft->x, (int)ft->item);
      |                             ^
drawtune.c:3042:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 3042 |       printbarnumber(ft->x, (int)ft->item);
      |                             ^
drawtune.c:3050:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 3050 |       printbarnumber(ft->x, (int)ft->item);
      |                             ^
drawtune.c:3243:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 3243 |       lineno = (int)(ft->item);
      |                ^
drawtune.c: In function ‘getlineheight’:
drawtune.c:3366:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 3366 |       lineno = (int)(v->place->item);
      |                ^
drawtune.c:3375:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 3375 |       *height = *height + (double)((int)v->place->item);
      |                                    ^
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -DHAVE_CONFIG_H -Wdate-time -D_FORTIFY_SOURCE=2 -I.   -c -o debug.o debug.c
debug.c: In function ‘showfeature’:
debug.c:146:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  146 |       printf("LINENUM %d\n", (int)(ft->item));
      |                              ^
In file included from /usr/include/stdio.h:867,
                 from debug.c:5:
In function ‘printf’,
    inlined from ‘showtune’ at debug.c:229:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:107:10: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
  107 |   return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -DHAVE_CONFIG_H -Wdate-time -D_FORTIFY_SOURCE=2 -I.   -c -o pslib.o pslib.c
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -DHAVE_CONFIG_H -Wdate-time -D_FORTIFY_SOURCE=2 -I.   -c -o position.o position.c
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -DHAVE_CONFIG_H -Wdate-time -D_FORTIFY_SOURCE=2 -I.   -c -o midicopy.o midicopy.c
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -DHAVE_CONFIG_H -Wdate-time -D_FORTIFY_SOURCE=2 -I.   -c -o abcmatch.o abcmatch.c
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -DHAVE_CONFIG_H -Wdate-time -D_FORTIFY_SOURCE=2 -I.   -c -o matchsup.o matchsup.c
matchsup.c: In function ‘event_octave’:
matchsup.c:818:6: warning: type of ‘local’ defaults to ‘int’ [-Wimplicit-int]
  818 | void event_octave(num, local)
      |      ^~~~~~~~~~~~
matchsup.c: In function ‘dumpfeat’:
matchsup.c:2015:34: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
 2015 |   else printf("%d %s   %d %d %d %d \n",i,featname[j],pitch[i],num[i],denom[i]);
      |                                 ~^
      |                                  |
      |                                  int
drawtune.c: In function ‘printtune’:
drawtune.c:3504:30: warning: ‘.eps’ directive writing 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=]
 3504 |     sprintf(outputname, "%s%d.eps", outputroot, t->no);
      |                              ^~~~
In file included from /usr/include/stdio.h:867,
                 from drawtune.c:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 6 and 271 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -o abc2midi parseabc.o store.o genmidi.o midifile.o queues.o parser2.o stresspat.o -Wl,-z,relro -Wl,-z,now -lm -lm
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -o midi2abc midifile.o midi2abc.o  -Wl,-z,relro -Wl,-z,now -lm
gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -o abc2abc parseabc.o toabc.o -Wl,-z,relro -Wl,-z,now -lm
/usr/bin/ld: toabc.o:./toabc.c:88: multiple definition of `ingrace'; gcc -DANSILIBS -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O2   -o mftext midifile.o mftext.o crack.o -Wl,-z,relro -Wl,-z,now -lm
parseabc.o:./parseabc.c:88: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:67: abc2abc] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: