#1075078 i810switch: ftbfs with GCC-14

#1075078#5
Date:
2024-07-03 12:30:28 UTC
From:
To:
[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/i810switch_0.6.5-7.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

[...]
      |                              long unsigned int
      |                          %08X
i810switch.c:236:41: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘int’ [-Wformat=]
  236 |         printf("    CTRL=%08lX BASE=%08lX STRIDE=%08lX\n",
      |                                     ~~~~^
      |                                         |
      |                                         long unsigned int
      |                                     %08X
i810switch.c:236:54: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘int’ [-Wformat=]
  236 |         printf("    CTRL=%08lX BASE=%08lX STRIDE=%08lX\n",
      |                                                  ~~~~^
      |                                                      |
      |                                                      long unsigned int
      |                                                  %08X
i810switch.c:241:30: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=]
  241 |         printf("    CTRL=%08lX BASE=%08lX STRIDE=%08lX\n",
      |                          ~~~~^
      |                              |
      |                              long unsigned int
      |                          %08X
i810switch.c:241:41: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘int’ [-Wformat=]
  241 |         printf("    CTRL=%08lX BASE=%08lX STRIDE=%08lX\n",
      |                                     ~~~~^
      |                                         |
      |                                         long unsigned int
      |                                     %08X
i810switch.c:241:54: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘int’ [-Wformat=]
  241 |         printf("    CTRL=%08lX BASE=%08lX STRIDE=%08lX\n",
      |                                                  ~~~~^
      |                                                      |
      |                                                      long unsigned int
      |                                                  %08X
i810switch.c: In function ‘i810_chip’:
i810switch.c:252:34: error: passing argument 2 of ‘getline’ from incompatible pointer type [-Wincompatible-pointer-types]
  252 |         while (getline(buff_ptr, len_ptr, pci_f) > 0) {
      |                                  ^~~~~~~
      |                                  |
      |                                  int *
In file included from i810switch.c:5:
/usr/include/stdio.h:704:46: note: expected ‘size_t * restrict’ {aka ‘long unsigned int * restrict’} but argument is of type ‘int *’
  704 |                           size_t *__restrict __n,
      |                           ~~~~~~~~~~~~~~~~~~~^~~
i810switch.c: In function ‘i810_addr’:
i810switch.c:304:34: error: passing argument 2 of ‘getline’ from incompatible pointer type [-Wincompatible-pointer-types]
  304 |         while (getline(buff_ptr, len_ptr, pci_f) > 0)
      |                                  ^~~~~~~
      |                                  |
      |                                  int *
/usr/include/stdio.h:704:46: note: expected ‘size_t * restrict’ {aka ‘long unsigned int * restrict’} but argument is of type ‘int *’
  704 |                           size_t *__restrict __n,
      |                           ~~~~~~~~~~~~~~~~~~~^~~
i810switch.c: In function ‘main’:
i810switch.c:327:56: warning: unused variable ‘count’ [-Wunused-variable]
  327 |         int i, crt = -1, lcd = -1, probe = 0, err = 0, count = 0, chiptype, len = 0;
      |                                                        ^~~~~
i810switch.c:327:47: warning: unused variable ‘err’ [-Wunused-variable]
  327 |         int i, crt = -1, lcd = -1, probe = 0, err = 0, count = 0, chiptype, len = 0;
      |                                               ^~~
i810switch.c: At top level:
i810switch.c:15:20: warning: ‘Opt_crt’ defined but not used [-Wunused-variable]
   15 | static const char *Opt_crt = NULL;
      |                    ^~~~~~~
i810switch.c:14:20: warning: ‘Opt_lcd’ defined but not used [-Wunused-variable]
   14 | static const char *Opt_lcd = NULL;
      |                    ^~~~~~~
make[1]: *** [Makefile:7: i810switch.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:32: build-stamp] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

#1075078#16
Date:
2025-08-13 09:34:08 UTC
From:
To:
Dear submitter,

as the package i810switch has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1110894

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)