Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 725126 - x11-base/xorg-server-1.20.8 emake failed: undefined reference to `GrabButton'
Summary: x11-base/xorg-server-1.20.8 emake failed: undefined reference to `GrabButton'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-25 00:46 UTC by drll
Modified: 2020-05-25 13:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description drll 2020-05-25 00:46:01 UTC
emerge --info '=x11-base/xorg-server-1.20.8::gentoo'

Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-10.1.0, glibc-2.31-r3, 4.19.124-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.124-gentoo-x86_64-x86_64-Intel-R-_Core-TM-2_CPU_P8600_@_2.40GHz-with-gentoo-2.7
KiB Mem:     3764776 total,   1858068 free
KiB Swap:    4194300 total,   4181756 free
Timestamp of repository gentoo: Sat, 23 May 2020 14:30:01 +0000
Head commit of repository gentoo: 1bebd3227ed82df26c9c8979cfc4de5d177c8ec5
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p4) 2.34.0
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.2-r2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo
dev-util/cmake:           3.17.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            10.1.0::gentoo
sys-devel/gcc-config:     2.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="g++"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O2"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="aac acl alsa amd64 bzip2 crypt dbus ffmpeg flac hardened iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp selinux split-usr ssl ssp thinkpad truetype unicode vim-syntax vorbis wavpack x xattr xft xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



emerge -pqv '=x11-base/xorg-server-1.20.8::gentoo'

[ebuild  N    ] x11-base/xorg-server-1.20.8  USE="ipv6 libglvnd (selinux) suid udev xorg -debug -dmx -doc -elogind -kdrive -libressl -minimal -static-libs (-systemd) -unwind -wayland -xcsecurity -xephyr -xnest -xvfb" 
[ebuild  N    ] x11-base/xorg-drivers-1.20-r2  INPUT_DEVICES="libinput -elographics -evdev -joystick -synaptics -vmmouse -void -wacom" VIDEO_CARDS="amdgpu dummy fbdev intel nouveau radeon radeonsi vesa -ast (-freedreno) (-geode) -glint -i915 -i965 -mga -nv -nvidia (-omap) -qxl -r128 -siliconmotion (-tegra) (-vc4) -via -virtualbox -vmware" 
[ebuild  N    ] x11-drivers/xf86-video-intel-2.99.917_p20200310  USE="sna udev -debug -dri -tools -uxa -xvmc" 
[ebuild  N    ] x11-drivers/xf86-video-amdgpu-19.1.0  USE="-udev" 
[ebuild  N    ] x11-drivers/xf86-video-ati-19.1.0  USE="-udev" 
[ebuild  N    ] x11-drivers/xf86-input-libinput-0.30.0 
[ebuild  N    ] x11-drivers/xf86-video-vesa-2.4.0 
[ebuild  N    ] x11-drivers/xf86-video-fbdev-0.5.0 
[ebuild  N    ] x11-drivers/xf86-video-nouveau-1.0.16 
[ebuild  N    ] x11-drivers/xf86-video-dummy-0.3.8  USE="-dga" 

 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


I've tried with both GCC and clang, and also tried merging 1.20.7 instead, all with the same results.
Comment 1 drll 2020-05-25 00:56:15 UTC
The build log was too large to add as an attachment, so here is the last GCC command and the error messages:

gcc -DHAVE_CONFIG_H -I. -I../include  -I../hw/xfree86 -I../hw/xfree86/include -I../hw/xfree86/common -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../os -I./xi1 -I./xi2 -I../hw/xfree86/common -I../hw/xfree86/parser -I../hw/xfree86/ddc -I../hw/xfree86/i2c -I../hw/xfree86/modes -I../hw/xfree86/ramdac -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../dri3 -DXORG_TESTS -DRES_TESTS -DLDWRAP_TESTS  -DHAVE_DIX_CONFIG_H -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 -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden  -DHAVE_XORG_CONFIG_H -fvisibility=hidden  -I/usr/include/libdrm   -flto -march=native -O2 -pipe -pthread -c -o tests-xi2.o `test -f 'xi2/xi2.c' || echo './'`xi2/xi2.c
gcc -DHAVE_CONFIG_H -I. -I../include  -I../hw/xfree86 -I../hw/xfree86/include -I../hw/xfree86/common -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../os -I./xi1 -I./xi2 -I../hw/xfree86/common -I../hw/xfree86/parser -I../hw/xfree86/ddc -I../hw/xfree86/i2c -I../hw/xfree86/modes -I../hw/xfree86/ramdac -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../dri3 -DXORG_TESTS -DRES_TESTS -DLDWRAP_TESTS  -DHAVE_DIX_CONFIG_H -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 -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden  -DHAVE_XORG_CONFIG_H -fvisibility=hidden  -I/usr/include/libdrm   -flto -march=native -O2 -pipe -pthread -c -o tests-sdksyms.o `test -f 'sdksyms.c' || echo './'`sdksyms.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -DHAVE_DIX_CONFIG_H -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 -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden  -DHAVE_XORG_CONFIG_H -fvisibility=hidden  -I/usr/include/libdrm   -flto -march=native -O2 -pipe -pthread  -Wl,-O2 -Wl,-z,lazy -o simple-xinit simple-xinit.o  -lm -lbsd  
libtool: link: gcc -DHAVE_DIX_CONFIG_H -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 -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden -DHAVE_XORG_CONFIG_H -fvisibility=hidden -I/usr/include/libdrm -flto -march=native -O2 -pipe -pthread -Wl,-O2 -Wl,-z -Wl,lazy -o simple-xinit simple-xinit.o  -lm -lbsd -pthread
/bin/sh ../libtool  --tag=CC   --mode=link gcc -DHAVE_DIX_CONFIG_H -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 -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden  -DHAVE_XORG_CONFIG_H -fvisibility=hidden  -I/usr/include/libdrm   -flto -march=native -O2 -pipe -pthread -Wl,-wrap,dixLookupWindow -Wl,-wrap,dixLookupClient -Wl,-wrap,WriteToClient -Wl,-wrap,dixLookupWindow -Wl,-wrap,XISetEventMask -Wl,-wrap,AddResource -Wl,-wrap,GrabButton  -Wl,-O2 -Wl,-z,lazy -o tests tests-tests-common.o tests-list.o tests-string.o tests-tests.o tests-fixes.o tests-input.o tests-misc.o tests-signal-logging.o tests-touch.o tests-xfree86.o tests-test_xkb.o tests-xtest.o tests-hashtabletest.o tests-protocol-xchangedevicecontrol.o tests-protocol-common.o tests-protocol-xiqueryversion.o tests-protocol-xiquerydevice.o tests-protocol-xiselectevents.o tests-protocol-xigetselectedevents.o tests-protocol-xisetclientpointer.o tests-protocol-xigetclientpointer.o tests-protocol-xiquerypointer.o tests-protocol-xipassivegrabdevice.o tests-protocol-xiwarppointer.o tests-protocol-eventconvert.o tests-xi2.o tests-sdksyms.o ../hw/xfree86/loader/libloader.la ../hw/xfree86/common/libcommon.la ../hw/xfree86/os-support/libxorgos.la ../hw/xfree86/parser/libxf86config.la ../hw/xfree86/dixmods/libdixmods.la ../hw/xfree86/modes/libxf86modes.la ../hw/xfree86/ramdac/libramdac.la ../hw/xfree86/ddc/libddc.la ../hw/xfree86/i2c/libi2c.la ../hw/xfree86/xkb/libxorgxkb.la ../Xext/libXvidmode.la ../dix/libdix.la ../mi/libmi.la ../os/libos.la ../composite/libcomposite.la ../xfixes/libxfixes.la ../Xext/libXext.la ../dbe/libdbe.la ../record/librecord.la ../randr/librandr.la ../render/librender.la ../damageext/libdamageext.la ../dri3/libdri3.la ../present/libpresent.la ../miext/sync/libsync.la ../miext/damage/libdamage.la ../Xi/libXi.la ../xkb/libxkb.la ../os/libos.la ../glx/libglxvnd.la ../hw/xfree86/dri/libdri.la ../hw/xfree86/dri2/libdri2.la ../dri3/libdri3.la -lpciaccess  -ldrm   -lpixman-1 -lXfont2 -lXau -lxshmfence -lXdmcp    -lm -lbsd   -lGL  -lm -lbsd  
libtool: link: gcc -DHAVE_DIX_CONFIG_H -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 -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden -DHAVE_XORG_CONFIG_H -fvisibility=hidden -I/usr/include/libdrm -flto -march=native -O2 -pipe -pthread -Wl,-wrap -Wl,dixLookupWindow -Wl,-wrap -Wl,dixLookupClient -Wl,-wrap -Wl,WriteToClient -Wl,-wrap -Wl,dixLookupWindow -Wl,-wrap -Wl,XISetEventMask -Wl,-wrap -Wl,AddResource -Wl,-wrap -Wl,GrabButton -Wl,-O2 -Wl,-z -Wl,lazy -o tests tests-tests-common.o tests-list.o tests-string.o tests-tests.o tests-fixes.o tests-input.o tests-misc.o tests-signal-logging.o tests-touch.o tests-xfree86.o tests-test_xkb.o tests-xtest.o tests-hashtabletest.o tests-protocol-xchangedevicecontrol.o tests-protocol-common.o tests-protocol-xiqueryversion.o tests-protocol-xiquerydevice.o tests-protocol-xiselectevents.o tests-protocol-xigetselectedevents.o tests-protocol-xisetclientpointer.o tests-protocol-xigetclientpointer.o tests-protocol-xiquerypointer.o tests-protocol-xipassivegrabdevice.o tests-protocol-xiwarppointer.o tests-protocol-eventconvert.o tests-xi2.o tests-sdksyms.o  ../hw/xfree86/loader/.libs/libloader.a ../hw/xfree86/common/.libs/libcommon.a -ludev ../hw/xfree86/os-support/.libs/libxorgos.a ../hw/xfree86/parser/.libs/libxf86config.a ../hw/xfree86/dixmods/.libs/libdixmods.a ../hw/xfree86/modes/.libs/libxf86modes.a ../hw/xfree86/ramdac/.libs/libramdac.a ../hw/xfree86/ddc/.libs/libddc.a ../hw/xfree86/i2c/.libs/libi2c.a ../hw/xfree86/xkb/.libs/libxorgxkb.a ../Xext/.libs/libXvidmode.a ../dix/.libs/libdix.a ../mi/.libs/libmi.a ../composite/.libs/libcomposite.a ../xfixes/.libs/libxfixes.a ../Xext/.libs/libXext.a ../dbe/.libs/libdbe.a ../record/.libs/librecord.a ../randr/.libs/librandr.a ../render/.libs/librender.a ../damageext/.libs/libdamageext.a ../present/.libs/libpresent.a ../miext/sync/.libs/libsync.a ../miext/damage/.libs/libdamage.a ../Xi/.libs/libXi.a ../xkb/.libs/libxkb.a ../os/.libs/libos.a -lcrypto -ldl ../glx/.libs/libglxvnd.a ../hw/xfree86/dri/.libs/libdri.a ../hw/xfree86/dri2/.libs/libdri2.a ../dri3/.libs/libdri3.a -lpciaccess -ldrm -lpixman-1 -lXfont2 -lXau -lxshmfence -lXdmcp -lGL -lm -lbsd -pthread
[01m[KxkbUtils.c:[m[K In function '[01m[KXkbUpdateActions.constprop[m[K':
[01m[KXKBMisc.c:721:44:[m[K [01;35m[Kwarning: [m[K'[01m[Kmask[m[K' may be used uninitialized in this function [[01;35m[K-Wmaybe-uninitialized[m[K]
[01m[KXKBMisc.c:718:18:[m[K [01;36m[Knote: [m[K'[01m[Kmask[m[K' was declared here
[01m[KXKBMisc.c:782:17:[m[K [01;35m[Kwarning: [m[K'[01m[KnewMask[m[K' may be used uninitialized in this function [[01;35m[K-Wmaybe-uninitialized[m[K]
[01m[KXKBMisc.c:779:22:[m[K [01;36m[Knote: [m[K'[01m[KnewMask[m[K' was declared here
[01m[KXKBMisc.c:795:17:[m[K [01;35m[Kwarning: [m[K'[01m[KnewMask[m[K' may be used uninitialized in this function [[01;35m[K-Wmaybe-uninitialized[m[K]
[01m[KXKBMisc.c:792:22:[m[K [01;36m[Knote: [m[K'[01m[KnewMask[m[K' was declared here
[01m[KXKBMisc.c:832:21:[m[K [01;35m[Kwarning: [m[K'[01m[KnewMask[m[K' may be used uninitialized in this function [[01;35m[K-Wmaybe-uninitialized[m[K]
[01m[KXKBMisc.c:829:26:[m[K [01;36m[Knote: [m[K'[01m[KnewMask[m[K' was declared here
[01m[KXKBMisc.c:813:25:[m[K [01;35m[Kwarning: [m[K'[01m[KnewMask[m[K' may be used uninitialized in this function [[01;35m[K-Wmaybe-uninitialized[m[K]
[01m[KXKBMisc.c:810:30:[m[K [01;36m[Knote: [m[K'[01m[KnewMask[m[K' was declared here
[01m[Kptrveloc.c:[m[K In function '[01m[KAccelSetProfileProperty[m[K':
[01m[Kptrveloc.c:194:9:[m[K [01;35m[Kwarning: [m[K'[01m[Kprofile[m[K' may be used uninitialized in this function [[01;35m[K-Wmaybe-uninitialized[m[K]
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/x11-base/xorg-server-1.20.8/temp/tests.nKXNKE.ltrans1.ltrans.o: in function `__wrap_GrabButton':
<artificial>:(.text+0xb8dc): undefined reference to `GrabButton'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1054: tests] Error 1
make[3]: Leaving directory '/var/tmp/portage/x11-base/xorg-server-1.20.8/work/xorg-server-1.20.8/test'
make[2]: *** [Makefile:1509: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/x11-base/xorg-server-1.20.8/work/xorg-server-1.20.8/test'
make[1]: *** [Makefile:1005: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/x11-base/xorg-server-1.20.8/work/xorg-server-1.20.8/test'
make: *** [Makefile:816: all-recursive] Error 1
 [31;01m*[0m ERROR: x11-base/xorg-server-1.20.8::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=x11-base/xorg-server-1.20.8::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=x11-base/xorg-server-1.20.8::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/x11-base/xorg-server-1.20.8/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-base/xorg-server-1.20.8/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/x11-base/xorg-server-1.20.8/work/xorg-server-1.20.8'
 [31;01m*[0m S: '/var/tmp/portage/x11-base/xorg-server-1.20.8/work/xorg-server-1.20.8'
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-25 01:12:10 UTC
I notice LTO is absent from your emerge --info output, but it is in your Xorg build log. Why is this?

Please try to reproduce without LTO and let us know what happens, and any other special things about your environment we need to know about.
Comment 3 drll 2020-05-25 01:37:20 UTC
I had initially set it to compile with -flto, but later changed that.  Apparently it was still reading from the -flto file in env/, so I deleted that file.  It now compiles without any errors.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-25 13:32:49 UTC
(In reply to drll from comment #3)
> I had initially set it to compile with -flto, but later changed that. 
> Apparently it was still reading from the -flto file in env/, so I deleted
> that file.  It now compiles without any errors.

Excellent :)