Package: dpkg-dev Version: 1.22.11 Severity: normal dpkg-buildflags has started tightening build conditions such that implicit declarations are now treated as errors (C flag -Werror=implicit-function-declaration)
This is a problem for scalapack (probably blas too), which has an ancient code base without headers, so implicit function declarations all the way through dpkg-buildflags provides the facility to switch off the error condition by setting export DEB_BUILD_MAINT_OPTIONS = qa=-bug-implicit-func in debian/rules, which I've done for scalapack 2.2.1-4exp4. This fixes the scalapack for all architectures https://buildd.debian.org/status/package.php?p=scalapack&suite=experimental except powerpc https://buildd.debian.org/status/fetch.php?pkg=scalapack&arch=powerpc&ver=2.2.1-4exp4&stamp=1726724534&raw=0 On powerpc, I can see other dpkg-buildflags options, -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security but a flag for implicit-function-declaration is missing (whether -Werror or -Wno-error). So dpkg-buildflags on powerpc does not seem to be processing the qa=-bug-implicit-func option in DEB_BUILD_MAINT_OPTIONS. -- Package-specific info: -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.10.6-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dpkg-dev depends on: ii binutils 2.43.1-4 ii bzip2 1.0.8-6 ii libdpkg-perl 1.22.11 ii make 4.3-4.1 ii patch 2.7.6-7 ii perl 5.38.2-5 ii tar 1.35+dfsg-3 ii xz-utils 5.6.2-2 Versions of packages dpkg-dev recommends: ii build-essential 12.10 ii clang-14 [c-compiler] 1:14.0.6-20 ii clang-16 [c-compiler] 1:16.0.6-27+b1 ii clang-17 [c-compiler] 1:17.0.6-18 ii fakeroot 1.36-1 ii gcc [c-compiler] 4:14.1.0-2 ii gcc-10 [c-compiler] 10.5.0-4 ii gcc-11 [c-compiler] 11.5.0-1 ii gcc-12 [c-compiler] 12.4.0-2 ii gcc-13 [c-compiler] 13.3.0-6 ii gcc-14 [c-compiler] 14.2.0-5 ii gnupg 2.2.43-8 ii gpgv 2.2.43-8+b1 ii libalgorithm-merge-perl 0.08-5 Versions of packages dpkg-dev suggests: ii debian-keyring 2024.06.24 -- no debconf information

