[Debian-astro-maintainers] Bug#1075093: iraf: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:30:56 BST 2024


Package: src:iraf
Version: 2.18-1
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/iraf_2.18-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
      |                         ^~~~~~~~~~~~~
zfiopr.c:127:25: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  127 |             close (1);  dup (pin[1]);   close (pin[1]);
      |                         ^~~~~~~~~~~~
zfiopr.c: In function ‘zardpr_’:
zfiopr.c:278:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  278 |             write (ipc_in, (char *)&temp, 2);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zfiopr.c:290:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  290 |             write (ipc_in, (char *)&temp, 2);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zfiopr.c:327:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  327 |             write (2, (char *)buf, op - (char *)buf);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zfiopr.c:331:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  331 |             write (ipc_in, (char *)buf, op - (char *)buf);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zfiopr.c: In function ‘zawrpr_’:
zfiopr.c:389:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  389 |         write (fd, &temp, 2);
      |         ^~~~~~~~~~~~~~~~~~~~
zfiopr.c:391:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  391 |             write (ipc_out, &temp, 2);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
zfiopr.c:393:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  393 |         write (fd, &temp, 2);
      |         ^~~~~~~~~~~~~~~~~~~~
zfiopr.c:395:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  395 |             write (ipc_out, &temp, 2);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
zfiopr.c:401:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  401 |             write (ipc_out, (char *)buf, (int)*nbytes);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zfiopr.c:415:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  415 |             write (2, (char *)buf, (int)*nbytes);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zzexit.o zzexit.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o gmttolst.o gmttolst.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zdojmp.o zdojmp.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zfiobf.o zfiobf.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zfiosf.o zfiosf.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zfpath.o zfpath.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zfutim.o zfutim.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zgtime.o zgtime.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zmfree.o zmfree.c
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/<<PKGBUILDDIR>>/unix/hlib/libc -D_GNU_SOURCE -DNOVOS  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zsvjmp.o zsvjmp.S
zfiobf.c: In function ‘vm_connect’:
zfiobf.c:770:17: error: passing argument 1 of ‘zopnnd_’ from incompatible pointer type [-Wincompatible-pointer-types]
  770 |         ZOPNND (osfn, &acmode, &fd);
      |                 ^~~~
      |                 |
      |                 char *
In file included from /<<PKGBUILDDIR>>/unix/hlib/libc/iraf.h:79,
                 from osproto.h:13,
                 from zfiobf.c:24:
/<<PKGBUILDDIR>>/unix/hlib/libc/iraf_kproto.h:59:21: note: expected ‘PKCHAR *’ {aka ‘short int *’} but argument is of type ‘char *’
   59 | int ZOPNND (PKCHAR *pk_osfn, XINT *mode, XINT *chan);
      |             ~~~~~~~~^~~~~~~
make[4]: *** [<builtin>: zfiobf.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/unix/os'
make[3]: *** [Makefile:26: install] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/unix'
make[2]: *** [Makefile:66: novos] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-astro-maintainers mailing list