Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653288 - x11-base/xorg-server- error: ‘GBM_FORMAT_ARGB2101010’ undeclared (first use in this function); did you mean ‘DRM_FORMAT_ARGB2101010’?
Summary: x11-base/xorg-server- error: ‘GBM_FORMAT_ARGB2101010’ undeclared ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
Depends on:
Blocks: 649286
  Show dependency tree
Reported: 2018-04-16 06:01 UTC by Michał Górny
Modified: 2018-04-17 01:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

x11-base:xorg-server- (x11-base:xorg-server-,29.61 KB, application/x-xz)
2018-04-16 06:01 UTC, Michał Górny

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-16 06:01:19 UTC
Created attachment 527562 [details]

/var/tmp/portage/x11-base/xorg-server- In function ‘drmmode_create_bo’:
/var/tmp/portage/x11-base/xorg-server- error: ‘GBM_FORMAT_ARGB2101010’ undeclared (first use in this function); did you mean ‘DRM_FORMAT_ARGB2101010’?
         format = GBM_FORMAT_ARGB2101010;
/var/tmp/portage/x11-base/xorg-server- note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/x11-base/xorg-server- error: ‘GBM_FORMAT_ARGB8888’ undeclared (first use in this function); did you mean ‘DRM_FORMAT_ARGB8888’?
         format = GBM_FORMAT_ARGB8888;
/var/tmp/portage/x11-base/xorg-server- warning: variable ‘format’ set but not used [-Wunused-but-set-variable]
     uint32_t format;
gmake[5]: *** [Makefile:741: drmmode_display.lo] Error 1
Comment 1 Matt Turner gentoo-dev 2018-04-16 06:24:09 UTC
I can reproduce. Building with USE=-glamor is enough to trigger it.
Comment 2 Matt Turner gentoo-dev 2018-04-16 06:38:32 UTC
Sent a patch upstream to fix this. Unfortunately after that's fixed, Xwayland fails to link if glamor is disabled. Evidently not a common case.
Comment 3 Larry the Git Cow gentoo-dev 2018-04-17 01:35:51 UTC
The bug has been closed via the following commit(s):

commit 4abddc5e499eef7cdb177e4b8c98219284c376e4
Author:     Matt Turner <>
AuthorDate: 2018-04-17 01:35:22 +0000
Commit:     Matt Turner <>
CommitDate: 2018-04-17 01:35:37 +0000

    x11-base/xorg-server: Cherry-pick two patches from upstream
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 ...-Move-GBM-code-inside-ifdef-GLAMOR_HAS_GB.patch |  48 ++++++
 ....99.904-xwayland-Fix-build-without-glamor.patch | 175 +++++++++++++++++++++
 .../xorg-server/xorg-server-     |   7 +-
 3 files changed, 227 insertions(+), 3 deletions(-)
Comment 4 Matt Turner gentoo-dev 2018-04-17 01:36:41 UTC
Another patch was committed to fix the second bug I mentioned. I've cherry-picked those two patches from upstream back to for your testing pleasure.