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

Bug#1098167: xserver-xorg-video-dummy: ftbfs with GCC-15



Package: src:xserver-xorg-video-dummy
Version: 1:0.4.0-1
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/xserver-xorg-video-dummy_0.4.0-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking for xorg-server >= 1.4.99.901 xproto fontsproto  randrproto renderproto... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Leaving directory '/build/reproducible-path/xserver-xorg-video-dummy-0.4.0'
   dh_auto_build -O--builddirectory=build/
	cd build && make -j8
make[1]: Entering directory '/build/reproducible-path/xserver-xorg-video-dummy-0.4.0/build'
make  all-recursive
make[2]: Entering directory '/build/reproducible-path/xserver-xorg-video-dummy-0.4.0/build'
Making all in src
make[3]: Entering directory '/build/reproducible-path/xserver-xorg-video-dummy-0.4.0/build/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm   -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xserver-xorg-video-dummy-0.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o dummy_cursor.lo ../../src/dummy_cursor.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm   -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xserver-xorg-video-dummy-0.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o dummy_driver.lo ../../src/dummy_driver.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xserver-xorg-video-dummy-0.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c ../../src/dummy_driver.c  -fPIC -DPIC -o .libs/dummy_driver.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xserver-xorg-video-dummy-0.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c ../../src/dummy_cursor.c  -fPIC -DPIC -o .libs/dummy_cursor.o
../../src/dummy_driver.c: In function 'DUMMYScreenInit':
../../src/dummy_driver.c:942:24: error: assignment to 'Bool (*)(void)' {aka 'int (*)(void)'} from incompatible pointer type 'CreateWindowProcPtr' {aka 'int (*)(struct _Window *)'} [-Wincompatible-pointer-types]
  942 |     dPtr->CreateWindow = pScreen->CreateWindow;
      |                        ^
In file included from /usr/include/xorg/xf86str.h:39,
                 from /usr/include/xorg/xf86.h:44,
                 from ../../src/dummy_driver.c:11:
/usr/include/xorg/scrnintstr.h:132:16: note: 'CreateWindowProcPtr' declared here
  132 | typedef Bool (*CreateWindowProcPtr) (WindowPtr /*pWindow */ );
      |                ^~~~~~~~~~~~~~~~~~~
../../src/dummy_driver.c: In function 'DUMMYCreateWindow':
../../src/dummy_driver.c:1015:27: error: assignment to 'CreateWindowProcPtr' {aka 'int (*)(struct _Window *)'} from incompatible pointer type 'Bool (*)(void)' {aka 'int (*)(void)'} [-Wincompatible-pointer-types]
 1015 |     pScreen->CreateWindow = dPtr->CreateWindow;
      |                           ^
/usr/include/xorg/scrnintstr.h:132:16: note: 'CreateWindowProcPtr' declared here
  132 | typedef Bool (*CreateWindowProcPtr) (WindowPtr /*pWindow */ );
      |                ^~~~~~~~~~~~~~~~~~~
../../src/dummy_driver.c:1017:24: error: assignment to 'Bool (*)(void)' {aka 'int (*)(void)'} from incompatible pointer type 'CreateWindowProcPtr' {aka 'int (*)(struct _Window *)'} [-Wincompatible-pointer-types]
 1017 |     dPtr->CreateWindow = pScreen->CreateWindow;
      |                        ^
/usr/include/xorg/scrnintstr.h:132:16: note: 'CreateWindowProcPtr' declared here
  132 | typedef Bool (*CreateWindowProcPtr) (WindowPtr /*pWindow */ );
      |                ^~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:492: dummy_driver.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/xserver-xorg-video-dummy-0.4.0/build/src'
make[2]: *** [Makefile:447: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/xserver-xorg-video-dummy-0.4.0/build'
make[1]: *** [Makefile:379: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/xserver-xorg-video-dummy-0.4.0/build'
dh_auto_build: error: cd build && make -j8 returned exit code 2
make: *** [debian/rules:26: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: