tgl FTBFS on s390x: print_escaped_string defined but not used

Bug #1991912 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tgl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

gcc -I. -I. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wno-cast-function-type -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-fetch.d -MQ objs/auto-fetch.o -o objs/auto/auto-fetch.o auto/auto-fetch.c
In file included from auto/auto-fetch.c:5:
./auto-static-fetch.c:50:13: error: ‘print_escaped_string’ defined but not used [-Werror=unused-function]
   50 | static void print_escaped_string (const char *str, int len) {
      | ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:57: objs/auto/auto-fetch.o] Error 1

Full log: https://launchpadlibrarian.net/625458354/buildlog_ubuntu-kinetic-s390x.tgl_2.0.1+git20160323.ffb04cac-3ubuntu1_BUILDING.txt.gz

During Debian package build, warnings should not be treated as errors.

Tags: ftbfs
Revision history for this message
Benjamin Drung (bdrung) wrote :

Not converting warning to errors is not enough. The s390x build fails now with:

gcc -I. -I. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wno-cast-function-type -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-fetch-ds.d -MQ objs/auto-fetch-ds.o -o objs/auto/auto-fetch-ds.o auto/auto-fetch-ds.c
auto/auto-fetch-ds.c: In function ‘fetch_ds_constructor_bytes’:
auto/auto-fetch-ds.c:450:9: error: ‘struct tl_ds_string’ has no member named ‘f0’
  450 | result->f0 = fetch_ds_type_bare_string (field1);
      | ^~
make[2]: *** [Makefile:57: objs/auto/auto-fetch-ds.o] Error 1

Full log: https://launchpadlibrarian.net/627718716/buildlog_ubuntu-kinetic-s390x.tgl_2.0.1+git20160323.ffb04cac-3ubuntu3_BUILDING.txt.gz

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tgl - 2.0.1+git20160323.ffb04cac-3ubuntu3

---------------
tgl (2.0.1+git20160323.ffb04cac-3ubuntu3) kinetic; urgency=medium

  * Do not treat warnings as errors (LP: #1991912)

 -- Benjamin Drung <email address hidden> Sat, 08 Oct 2022 11:22:58 +0200

Changed in tgl (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.