3.36.5 fails to build on arm
The issue maybe started before but we did update from .1 to .5 in Debian and Ubuntu.
Build log of the failure https://launchpadlibrarian.net/483877383/buildlog_ubuntu-groovy-armhf.evince_3.36.5-1_BUILDING.txt.gz
dviread.c: In function ‘set_char’:
dviread.c:1290:33: error: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1290 | SHOWCMD((dvi, "setchar", num, "(%d,%d) h:=%d%c%d=%d, hh:=%d (%s)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1290:50: note: format string is defined here
1290 | SHOWCMD((dvi, "setchar", num, "(%d,%d) h:=%d%c%d=%d, hh:=%d (%s)\n",
| ~^
| |
| int
| %ld
dviread.c: In function ‘set_rule’:
dviread.c:1312:4: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1312 | "width %d, height %d (%dx%d pixels)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1313 | b, a, w, h));
| ~
| |
| Int32 {aka long int}
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1312:12: note: format string is defined here
1312 | "width %d, height %d (%dx%d pixels)\n",
| ~^
| |
| int
| %ld
dviread.c:1312:4: error: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1312 | "width %d, height %d (%dx%d pixels)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1313 | b, a, w, h));
| ~
| |
| Int32 {aka long int}
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1312:23: note: format string is defined here
1312 | "width %d, height %d (%dx%d pixels)\n",
| ~^
| |
| int
| %ld
dviread.c:1322:4: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1322 | "(moving left only, by %d)\n", b));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
| |
| Int32 {aka long int}
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1322:28: note: format string is defined here
1322 | "(moving left only, by %d)\n", b));
| ~^
| |
| int
| %ld
dviread.c: In function ‘move_right’:
dviread.c:1383:3: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1383 | "%d h:=%d%c%d=%d, hh:=%d\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1384 | arg, DBGSUM(h, arg, dvi->pos.h), hh));
| ~~~
| |
| Int32 {aka long int}
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1383:5: note: format string is defined here
1383 | "%d h:=%d%c%d=%d, hh:=%d\n",
| ~^
| |
| int
| %ld
dviread.c:1383:3: error: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1383 | "%d h:=%d%c%d=%d, hh:=%d\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1383:15: note: format string is defined here
1383 | "%d h:=%d%c%d=%d, hh:=%d\n",
| ~^
| |
| int
| %ld
dviread.c: In function ‘move_down’:
dviread.c:1398:3: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1398 | "%d v:=%d%c%d=%d, vv:=%d\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1399 | arg, DBGSUM(v, arg, dvi->pos.v), vv));
| ~~~
| |
| Int32 {aka long int}
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1398:5: note: format string is defined here
1398 | "%d v:=%d%c%d=%d, vv:=%d\n",
| ~^
| |
| int
| %ld
dviread.c:1398:3: error: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1398 | "%d v:=%d%c%d=%d, vv:=%d\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1398:15: note: format string is defined here
1398 | "%d v:=%d%c%d=%d, vv:=%d\n",
| ~^
| |
| int
| %ld
In file included from private.h:49,
from dviread.c:30:
dviread.c: In function ‘sel_fontn’:
dviread.c:1497:17: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1497 | dvierr(dvi, _("font %d is not defined\n"), arg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
dviread.c:1497:15: note: in expansion of macro ‘_’
1497 | dvierr(dvi, _("font %d is not defined\n"), arg);
| ^
dviread.c:1497:24: note: format string is defined here
1497 | dvierr(dvi, _("font %d is not defined\n"), arg);
| ~^
| |
| int
| %ld
dviread.c:1501:3: error: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1501 | "current font is %s (id %d)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1502 | ref->ref->fontname, arg));
| ~~~
| |
| Int32 {aka long int}
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1501:28: note: format string is defined here
1501 | "current font is %s (id %d)\n",
| ~^
| |
| int
| %ld
In file included from private.h:49,
from dviread.c:30:
dviread.c: In function ‘def_font’:
dviread.c:1541:17: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1541 | dvierr(dvi, _("font %d is not defined in postamble\n"), arg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dviread.c:1541:15: note: in expansion of macro ‘_’
1541 | dvierr(dvi, _("font %d is not defined in postamble\n"), arg);
| ^
dviread.c:1541:24: note: format string is defined here
1541 | dvierr(dvi, _("font %d is not defined in postamble\n"), arg);
| ~^
| |
| int
| %ld
dviread.c:1545:3: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘Int32’ {aka ‘long int’} [-Werror=format=]
1545 | "%d -> %s (%d links)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~
1546 | ref->fontid, ref->ref->fontname,
| ~~~~~~~~~~~
| |
| Int32 {aka long int}
dviread.c:339:50: note: in definition of macro ‘SHOWCMD’
339 | if(_mdvi_debug_mask & DBG_OPCODE) do { dviprint x; } while(0)
| ^
dviread.c:1545:5: note: format string is defined here
1545 | "%d -> %s (%d links)\n",
| ~^
| |
| int
| %ld
dviread.c: In function ‘mdvi_init_context’:
dviread.c:767:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
767 | fread(dvi->fileid, 1, n, p);