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

Bug#957997: xserver-xorg-video-amdgpu: ftbfs with GCC-10



Package: src:xserver-xorg-video-amdgpu
Version: 19.1.0-1
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/xserver-xorg-video-amdgpu_19.1.0-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
        libdir:              /usr/lib
        includedir:          ${prefix}/include
        configdir:           ${prefix}/share/X11/xorg.conf.d

        CFLAGS:              -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security
        CXXFLAGS:            -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security
        Macros:              

        Run 'make' to build xf86-video-amdgpu

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build -O--builddirectory=build/
	cd build && make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>/build'
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>/build'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/build/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_video.lo ../../src/amdgpu_video.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_misc.lo ../../src/amdgpu_misc.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_probe.lo ../../src/amdgpu_probe.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_bo_helper.lo ../../src/amdgpu_bo_helper.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_video.c  -fPIC -DPIC -o .libs/amdgpu_video.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_misc.c  -fPIC -DPIC -o .libs/amdgpu_misc.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_probe.c  -fPIC -DPIC -o .libs/amdgpu_probe.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_bo_helper.c  -fPIC -DPIC -o .libs/amdgpu_bo_helper.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_dri2.lo ../../src/amdgpu_dri2.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_dri2.c  -fPIC -DPIC -o .libs/amdgpu_dri2.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_dri3.lo ../../src/amdgpu_dri3.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_drm_queue.lo ../../src/amdgpu_drm_queue.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_dri3.c  -fPIC -DPIC -o .libs/amdgpu_dri3.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_drm_queue.c  -fPIC -DPIC -o .libs/amdgpu_drm_queue.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_kms.lo ../../src/amdgpu_kms.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_kms.c  -fPIC -DPIC -o .libs/amdgpu_kms.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_present.lo ../../src/amdgpu_present.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_present.c  -fPIC -DPIC -o .libs/amdgpu_present.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_sync.lo ../../src/amdgpu_sync.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_sync.c  -fPIC -DPIC -o .libs/amdgpu_sync.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o drmmode_display.lo ../../src/drmmode_display.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/drmmode_display.c  -fPIC -DPIC -o .libs/drmmode_display.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_glamor.lo ../../src/amdgpu_glamor.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_glamor.c  -fPIC -DPIC -o .libs/amdgpu_glamor.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_glamor_wrappers.lo ../../src/amdgpu_glamor_wrappers.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_glamor_wrappers.c  -fPIC -DPIC -o .libs/amdgpu_glamor_wrappers.o
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_pixmap.lo ../../src/amdgpu_pixmap.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_pixmap.c  -fPIC -DPIC -o .libs/amdgpu_pixmap.o
/bin/bash ../libtool  --tag=CC   --mode=link gcc -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -module -avoid-version -Wl,-z,relro -o amdgpu_drv.la -rpath /usr/lib/xorg/modules/drivers amdgpu_video.lo amdgpu_misc.lo amdgpu_probe.lo amdgpu_bo_helper.lo amdgpu_dri2.lo amdgpu_dri3.lo amdgpu_drm_queue.lo amdgpu_kms.lo amdgpu_present.lo amdgpu_sync.lo drmmode_display.lo amdgpu_glamor.lo amdgpu_glamor_wrappers.lo amdgpu_pixmap.lo -ldrm_amdgpu -lgbm -ludev  
libtool: link: gcc -shared  -fPIC -DPIC  .libs/amdgpu_video.o .libs/amdgpu_misc.o .libs/amdgpu_probe.o .libs/amdgpu_bo_helper.o .libs/amdgpu_dri2.o .libs/amdgpu_dri3.o .libs/amdgpu_drm_queue.o .libs/amdgpu_kms.o .libs/amdgpu_present.o .libs/amdgpu_sync.o .libs/drmmode_display.o .libs/amdgpu_glamor.o .libs/amdgpu_glamor_wrappers.o .libs/amdgpu_pixmap.o   -ldrm_amdgpu -lgbm -ludev  -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro   -Wl,-soname -Wl,amdgpu_drv.so -o .libs/amdgpu_drv.so
/usr/bin/ld: .libs/amdgpu_probe.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_bo_helper.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_dri2.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_dri3.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_drm_queue.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_kms.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_present.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_sync.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/drmmode_display.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_glamor.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_glamor_wrappers.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
/usr/bin/ld: .libs/amdgpu_pixmap.o:./build/src/../../src/drmmode_display.h:292: multiple definition of `drmmode_sprite_funcs'; .libs/amdgpu_video.o:./build/src/../../src/drmmode_display.h:292: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:505: amdgpu_drv.la] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build/src'
make[2]: *** [Makefile:460: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[1]: *** [Makefile:392: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: error: cd build && make -j4 returned exit code 2
make: *** [debian/rules:33: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: