Summary: | x11-base/xorg-server-1.20.8 emake failed: undefined reference to `GrabButton' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | drll |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
drll
2020-05-25 00:46:01 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' 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. 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. (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 :) |