2026-10-13 22:08 BST

View Revisions: Issue #2886

Summary 0002886: Fails to build on i386 arch
Revision 2025-01-09 06:38 by أحمد المحمودي
Description When building libcss for i386 architecture, I get the following error:

 COMPILE: test/parse2-auto.c
In file included from test/css21.c:11:
test/dump.h: In function 'dump_rule_media':
test/dump.h:134:45: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
  134 | ptr += sprintf(ptr, "| @media %s%03lx",
      | ~~~~^
      | |
      | long unsigned int
      | %03llx
  135 | s->media->negate_type ? "not " : "",
  136 | s->media->type);
      | ~~~~~~~~~~~~~~
      | |
      | uint64_t {aka long long unsigned int}
cc1: all warnings being treated as errors
make[2]: *** [/usr/share/netsurf-buildsystem/makefiles/Makefile.top:649: build-i686-linux-gnu-i686-linux-gnu-release-lib-shared/test_css21.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from test/parse2-auto.c:12:
test/dump.h: In function 'dump_rule_media':
test/dump.h:134:45: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
  134 | ptr += sprintf(ptr, "| @media %s%03lx",
      | ~~~~^
      | |
      | long unsigned int
      | %03llx
  135 | s->media->negate_type ? "not " : "",
  136 | s->media->type);
      | ~~~~~~~~~~~~~~
      | |
      | uint64_t {aka long long unsigned int}
cc1: all warnings being treated as errors
Revision 2026-10-05 21:45 by John-Mark Bell
Description When building libcss for i386 architecture, I get the following error:

 COMPILE: test/parse2-auto.c
In file included from test/css21.c:11:
test/dump.h: In function 'dump_rule_media':
test/dump.h:134:45: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
  134 | ptr += sprintf(ptr, "| @media %s%03lx",
      | ~~~~^
      | |
      | long unsigned int
      | %03llx
  135 | s->media->negate_type ? "not " : "",
  136 | s->media->type);
      | ~~~~~~~~~~~~~~
      | |
      | uint64_t {aka long long unsigned int}
cc1: all warnings being treated as errors
make[2]: *** [/usr/share/netsurf-buildsystem/makefiles/Makefile.top:649: build-i686-linux-gnu-i686-linux-gnu-release-lib-shared/test_css21.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from test/parse2-auto.c:12:
test/dump.h: In function 'dump_rule_media':
test/dump.h:134:45: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
  134 | ptr += sprintf(ptr, "| @media %s%03lx",
      | ~~~~^
      | |
      | long unsigned int
      | %03llx
  135 | s->media->negate_type ? "not " : "",
  136 | s->media->type);
      | ~~~~~~~~~~~~~~
      | |
      | uint64_t {aka long long unsigned int}
cc1: all warnings being treated as errors