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

Bug#980602: libxcb: FTBFS: ../../tests/check_public.c:40:24: error: too many arguments for format [-Werror=format-extra-args]



Source: libxcb
Version: 1.14-2.1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210120 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> gcc -DHAVE_CONFIG_H -I. -I../../tests -I../src   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -pthread -I../../src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o check_public.o ../../tests/check_public.c
> In file included from ../../tests/check_public.c:1:
> ../../tests/check_public.c: In function ‘parse_display_pass’:
> ../../tests/check_public.c:40:24: error: too many arguments for format [-Werror=format-extra-args]
>    40 |   fail_unless(success, "unexpected parse failure %sfor '%s'", test_string[test_type], name);
>       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:41:44: error: too many arguments for format [-Werror=format-extra-args]
>    41 |   fail_unless(strcmp(host, got_host) == 0, "parse %sproduced unexpected hostname '%s' for '%s': expected '%s'", test_string[test_type], got_host, name, host);
>       |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:42:39: error: too many arguments for format [-Werror=format-extra-args]
>    42 |   fail_unless(display == got_display, "parse %sproduced unexpected display '%d' for '%s': expected '%d'", test_string[test_type], got_display, name, display);
>       |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:43:37: error: too many arguments for format [-Werror=format-extra-args]
>    43 |   fail_unless(screen == got_screen, "parse %sproduced unexpected screen '%d' for '%s': expected '%d'", test_string[test_type], got_screen, name, screen);
>       |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:49:24: error: too many arguments for format [-Werror=format-extra-args]
>    49 |   fail_unless(success, "unexpected screenless parse failure %sfor '%s'", test_string[test_type], name);
>       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:50:44: error: too many arguments for format [-Werror=format-extra-args]
>    50 |   fail_unless(strcmp(host, got_host) == 0, "screenless parse %sproduced unexpected hostname '%s' for '%s': expected '%s'", test_string[test_type], got_host, name, host);
>       |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:51:39: error: too many arguments for format [-Werror=format-extra-args]
>    51 |   fail_unless(display == got_display, "screenless parse %sproduced unexpected display '%d' for '%s': expected '%d'", test_string[test_type], got_display, name, display);
>       |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c: In function ‘parse_display_fail’:
> ../../tests/check_public.c:82:25: error: too many arguments for format [-Werror=format-extra-args]
>    82 |   fail_unless(!success, "unexpected parse success %sfor '%s'", test_string[test_type], name);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:83:40: error: too many arguments for format [-Werror=format-extra-args]
>    83 |   fail_unless(got_host == (char *) -1, "host changed on parse failure %sfor '%s': got %p", test_string[test_type], name, got_host);
>       |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:84:35: error: too many arguments for format [-Werror=format-extra-args]
>    84 |   fail_unless(got_display == -42, "display changed on parse failure %sfor '%s': got %d", test_string[test_type], name, got_display);
>       |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:85:34: error: too many arguments for format [-Werror=format-extra-args]
>    85 |   fail_unless(got_screen == -42, "screen changed on parse failure %sfor '%s': got %d", test_string[test_type], name, got_screen);
>       |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:91:25: error: too many arguments for format [-Werror=format-extra-args]
>    91 |   fail_unless(!success, "unexpected screenless parse success %sfor '%s'", test_string[test_type], name);
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:92:40: error: too many arguments for format [-Werror=format-extra-args]
>    92 |   fail_unless(got_host == (char *) -1, "host changed on parse failure %sfor '%s': got %p", test_string[test_type], name, got_host);
>       |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c:93:35: error: too many arguments for format [-Werror=format-extra-args]
>    93 |   fail_unless(got_display == -42, "display changed on parse failure %sfor '%s': got %d", test_string[test_type], name, got_display);
>       |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../tests/check_public.c: In function ‘popcount_eq’:
> ../../tests/check_public.c:186:43: error: too many arguments for format [-Werror=format-extra-args]
>   186 |  fail_unless(xcb_popcount(bits) == count, "unexpected popcount(%08x) != %d", bits, count);
>       |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [Makefile:671: check_public.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2021/01/20/libxcb_1.14-2.1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.


Reply to: