[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1075689: xutils-dev: ftbfs with GCC-14



Package: src:xutils-dev
Version: 1:7.7+6.2
Severity: important
Tags: sid trixie
User: debian-gcc@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/xutils-dev_7.7+6.2_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

[...]
      |          ^~~~~~~~~~
../makedepend/imakemdep.h:372:22: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  372 |         {"__x86_64", "1"},
      |                      ^~~
../makedepend/imakemdep.h:450:10: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  450 |         {"__CHAR_BIT__", DEF_STRINGIFY(__CHAR_BIT__)},
      |          ^~~~~~~~~~~~~~
../makedepend/imakemdep.h:450:52: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  450 |         {"__CHAR_BIT__", DEF_STRINGIFY(__CHAR_BIT__)},
      |                                                    ^
../makedepend/imakemdep.h:43:28: note: in definition of macro ‘DEF_EVALUATE’
   43 | #define DEF_EVALUATE(__x) #__x
      |                            ^~~
../makedepend/imakemdep.h:450:26: note: in expansion of macro ‘DEF_STRINGIFY’
  450 |         {"__CHAR_BIT__", DEF_STRINGIFY(__CHAR_BIT__)},
      |                          ^~~~~~~~~~~~~
/usr/bin/sed -e 's|__vendorversion__|"imake 1.0.8" "X Version 11"|' 	-e 's|__xorgversion__|"imake 1.0.8" "X Version 11"|' 	-e 's|__xservername__|Xorg|g' 	-e 's|__xconfigfile__|xorg.conf|g' 	-e 's|__projectroot__|/usr|g' 	-e 's|__apploaddir__||g' 	-e 's|__appmansuffix__|1|g' 	-e 's|__drivermansuffix__|4|g' 	-e 's|__adminmansuffix__|8|g' 	-e 's|__libmansuffix__|3|g' 	-e 's|__miscmansuffix__|7|g' 	-e 's|__filemansuffix__|5|g' -e 's|__cpp__|/usr/bin/cpp|g' < ../imake/mkhtmlindex.man > mkhtmlindex.1
../imake/imake.c: In function ‘FindImakefile’:
../imake/imake.c:662:27: warning: declaration of ‘Imakefile’ shadows a global declaration [-Wshadow]
  662 | FindImakefile(const char *Imakefile)
      |               ~~~~~~~~~~~~^~~~~~~~~
../imake/imake.c:319:18: note: shadowed declaration is here
  319 | const char      *Imakefile = NULL;
      |                  ^~~~~~~~~
../imake/imake.c: In function ‘doit’:
../imake/imake.c:806:29: error: passing argument 2 of ‘execvp’ from incompatible pointer type [-Wincompatible-pointer-types]
  806 |                 execvp(cmd, argv);
      |                             ^~~~
      |                             |
      |                             const char **
In file included from ../imake/imake.c:172:
/usr/include/unistd.h:599:52: note: expected ‘char * const*’ but argument is of type ‘const char **’
  599 | extern int execvp (const char *__file, char *const __argv[])
      |                                        ~~~~~~~~~~~~^~~~~~~~
../imake/imake.c: In function ‘get_libc_version’:
../imake/imake.c:989:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  989 |     cc = "gcc";
      |        ^
../imake/imake.c: In function ‘define_os_defaults’:
../imake/imake.c:1636:16: warning: declaration of ‘name’ shadows a previous local [-Wshadow]
 1636 |           char name[PATH_MAX];
      |                ^~~~
../imake/imake.c:1430:25: note: shadowed declaration is here
 1430 |         struct utsname *name = NULL;
      |                         ^~~~
../imake/imake.c: In function ‘get_ld_version’:
../imake/imake.c:1124:12: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1124 |     (void) fscanf (ldprog, "%d.%d", &ldmajor, &ldminor);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../imake/imake.c: In function ‘ReadLine’:
../imake/imake.c:1986:17: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1986 |                 ftruncate(fileno(tmpfd), (off_t) 0);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:594: imake-imake.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/imake-build'
make[2]: *** [Makefile:428: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/imake-build'
dh_auto_build: error: cd imake-build && make -j8 returned exit code 2
make[1]: *** [debian/rules:38: build-imake-stamp] Error 255
make[1]: *** Waiting for unfinished jobs....
gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall  -Wl,-z,relro -o lndir lndir.o  
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lndir-build'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/lndir-build'
gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall  -Wl,-z,relro -o makedepend include.o main.o parse.o pr.o cppsetup.o ifparser.o  
make[3]: Leaving directory '/<<PKGBUILDDIR>>/makedepend-build'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/makedepend-build'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: