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

Bug#910432: xserver-xorg-video-amdgpu: Cannot rebuild using dpkg-buildpackage



On 2018-10-06 11:03 +0300, Teppo Maenpaa wrote:

> Package: xserver-xorg-video-amdgpu
> Version: 18.1.0-1
> Severity: normal
>
> BACKGROUND:

> I have a "X won't start due to segfault" problem, after installing a
> new graphics card. To find the cause, I would like to recompile some
> packages with debugging symbols.

Note that you can obtain debugging symbols from the debug mirror, e.g. put

deb http://debug.mirrors.debian.org/debian-debug/ unstable-buster main

in /etc/apt/aources.list.

> First, I upgraded the system from Strech to Buster, hoping that the
> problem would go away. Did not.
>
> ACTUAL PROBLEM: Building package like this fails:
> $ export DEB_BUILD_OPTIONS=nostrip
> $ apt-get build-dep xserver-xorg-video-amdgpu
> $ apt-get source --compile xserver-xorg-video-amdgpu
>
> Failure:
> === clip starts ===
> ude/X11/dri -g -O2 -fdebug-prefix-map=/p/data/teppo/bld/xserver-xorg-video-amdgpu-18.1.0=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_misc.c  -fPIC -DPIC -o .libs/amdgpu_misc.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=/p/data/teppo/bld/xserver-xorg-video-amdgpu-18.1.0=. -fstack-protector-strong -Wformat -Werror=format-security -c -o amdgpu_probe.lo ../../src/amdgpu_probe.c
> In file included from ../../src/drmmode_display.h:35,
>                  from ../../src/amdgpu_drv.h:78,
>                  from ../../src/amdgpu_video.c:11:
> ../../src/amdgpu_drm_queue.h:53:37: error: unknown type name ‘drmEventContext’; did you mean ‘drm_version_t’?
>  int amdgpu_drm_handle_event(int fd, drmEventContext *event_context);
>                                      ^~~~~~~~~~~~~~~
>                                      drm_version_t
> In file included from ../../src/amdgpu_drv.h:78,
>                  from ../../src/amdgpu_video.c:11:
> ../../src/drmmode_display.h:61:2: error: unknown type name ‘drmEventContext’
>   drmEventContext event_context;
>   ^~~~~~~~~~~~~~~
> make[3]: *** [Makefile:553: amdgpu_video.lo] Virhe 1
> make[3]: *** Odotetaan keskeneräisiä töitä....
> 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=/p/data/teppo/bld/xserver-xorg-video-amdgpu-18.1.0=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../src/amdgpu_probe.c  -fPIC -DPIC -o .libs/amdgpu_probe.o
> In file included from ../../src/drmmode_display.h:35,
>                  from ../../src/amdgpu_drv.h:78,
>                  from ../../src/amdgpu_probe.c:46:
> ../../src/amdgpu_drm_queue.h:53:37: error: unknown type name ‘drmEventContext’; did you mean ‘drm_version_t’?
>  int amdgpu_drm_handle_event(int fd, drmEventContext *event_context);
>                                      ^~~~~~~~~~~~~~~
>                                      drm_version_t
> In file included from ../../src/amdgpu_drv.h:78,
>                  from ../../src/amdgpu_probe.c:46:
> ../../src/drmmode_display.h:61:2: error: unknown type name ‘drmEventContext’
>   drmEventContext event_context;
>   ^~~~~~~~~~~~~~~
> make[3]: *** [Makefile:553: amdgpu_probe.lo] Virhe 1
> === clip ends===

I cannot reproduce that.

> Maybe a [something]-dev is missing from package build-deps?

This would have been caught by the buildds, but it is possible that you
have not fully upgraded your system and some versioned build dependency
is not tight enough.  Or you have outdated drm libraries e.g. under
/usr/local/lib; those might also be responsible for the segfault you
have experienced.

> Diversions concerning libGL are in place
> ----------------------------------------
> diversion of /usr/lib/arm-linux-gnueabihf/libGL.so.1.2.0 to /usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so.1.2.0 by glx-diversions

You probably want to get rid of the glx-diversions package.

> Contents of /etc/X11/xorg.conf:
> -------------------------------

And /etc/X11/xorg.conf is not usually necessary either.

Cheers,
       Sven


Reply to: