powerpc-utils FTBFS with GCC 12

Bug #1986667 reported by Graham Inggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Fix Released
High
Unassigned
powerpc-utils (Debian)
Fix Released
Unknown
powerpc-utils (Ubuntu)
Fix Released
High
Simon Chopin

Bug Description

I've copied what I hope is the relevant part of the log below.

gcc -DPACKAGE_NAME=\"powerpc-utils\" -DPACKAGE_TARNAME=\"powerpc-utils\" -DPACKAGE_VERSION=\"1.3.9\" -DPACKAGE_STRING=\"powerpc-utils\ 1.3.9\" -DPACKAGE_BUGREPORT=\"<email address hidden>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"powerpc-utils\" -DVERSION=\"1.3.9\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_MEMORY_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LINUX_PERF_EVENT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_ALARM=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_MALLOC=1 -DHAVE_MEMSET=1 -DHAVE_STRCHR=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_STRTOULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LIBZ=1 -DHAVE_LIBNUMA=1 -DHAVE_LIBRTAS=1 -DHAVE_LIBRTASEVENT=1 -DWITH_LIBRTAS=1 -I. -I ./src/common/ -D _GNU_SOURCE -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -g -O3 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIE -Wstack-protector --param=ssp-buffer-size=1 -c -o src/vcpustat.o src/vcpustat.c
In file included from /usr/include/stdio.h:906,
                 from src/vcpustat.c:26:
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.far_numa_node’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.far_numa_node’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.next_numa_node’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.next_numa_node’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.home_numa_node’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.home_numa_node’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.diff_package’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.diff_package’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.same_package’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.same_package’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.total’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.total’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.same_chip’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.same_chip’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
In function ‘printf’,
    inlined from ‘print_stats’ at src/vcpustat.c:182:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:86:10: error: ‘stat.same_cpu’ may be used uninitialized [-Werror=maybe-uninitialized]
   86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vcpustat.c: In function ‘print_stats’:
src/vcpustat.c:144:34: note: ‘stat.same_cpu’ was declared here
  144 | struct vcpudispatch_stat stat;
      | ^~~~
src/ppc64_cpu.c: In function ‘main’:
src/ppc64_cpu.c:294:19: error: ‘rc’ may be used uninitialized [-Werror=maybe-uninitialized]
  294 | int i, j, rc;
      | ^~
cc1: all warnings being treated as errors

Changed in ubuntu-power-systems:
importance: Undecided → High
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2022-08-19 11:58 EDT-------
Reverse mirrored Launchpad issue 1986667 to LTC bugzilla 199444 and assigned to Fred to triage. Will pull in toolchain folks as needed.

tags: added: architecture-ppc64le bugnameltc-199444 severity-medium targetmilestone-inin---
bugproxy (bugproxy)
tags: added: targetmilestone-inin2210
removed: targetmilestone-inin---
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2022-08-24 11:37 EDT-------
I opened an issue upstream and linked it to a Debian bug so the maintainer can update the package to powerpc 1.3.10 + fixes once it's done.

https://github.com/ibm-power-utilities/powerpc-utils/issues/85
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018039

Changed in powerpc-utils (Debian):
status: Unknown → Confirmed
Graham Inggs (ginggs)
tags: added: ftbfs
Simon Chopin (schopin)
Changed in powerpc-utils (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Simon Chopin (schopin)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powerpc-utils - 1.3.9-1ubuntu2

---------------
powerpc-utils (1.3.9-1ubuntu2) kinetic; urgency=medium

  * d/p/lp1986667/*.patch: fix FTBFS due to new GCC 12 warnings (LP: #1986667)

 -- Simon Chopin <email address hidden> Wed, 05 Oct 2022 16:22:49 +0200

Changed in powerpc-utils (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Frank Heimes (fheimes) wrote :

Aligning the project status to the package status and mark it as Fix Released, too.

Changed in ubuntu-power-systems:
status: New → Fix Released
Changed in powerpc-utils (Debian):
status: Confirmed → 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.