Summary: | x11-base/xorg-server-21.1.1-r2 fails to compile on sparc: xf86fbBus.c:(.text+0x20): undefined reference to `sbusSlotClaimed' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jaime Fordham <jaime.fordham> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam, sparc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | Sparc | ||
OS: | Linux | ||
URL: | https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/813 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | xorg-server-21.1.1-r2 build.log |
Description
Jaime Fordham
2021-12-07 15:31:54 UTC
sparky /etc/portage/env # emerge -pqv '=x11-base/xorg-server-21.1.1-r2::gentoo' [ebuild N ] x11-base/xorg-server-21.1.1-r2 USE="elogind udev xorg -debug -doc -minimal (-selinux) -suid -systemd -test (-unwind) -xcsecurity -xephyr -xnest -xvfb" [ebuild N ] x11-base/xorg-drivers-21.1 INPUT_DEVICES="libinput -elographics -evdev -joystick (-synaptics) (-vmmouse) -void (-wacom)" VIDEO_CARDS="dummy fbdev glint mga r128 radeon (-amdgpu) (-ast) (-freedreno) (-geode) (-i915) (-i965) (-intel) (-nouveau) (-nv) (-nvidia) (-omap) (-qxl) (-radeonsi) (-siliconmotion) (-tegra) (-vc4) (-vesa) (-via) (-virtualbox) (-vmware)" [ebuild N ] x11-drivers/xf86-video-fbdev-0.5.0-r1 [ebuild N ] x11-drivers/xf86-video-dummy-0.3.8 USE="-dga" [ebuild N ] x11-drivers/xf86-video-mga-2.0.0 USE="dri" [ebuild N ] x11-drivers/xf86-video-glint-1.2.9 [ebuild N ] x11-drivers/xf86-input-libinput-1.2.0 [ebuild N ] x11-drivers/xf86-video-ati-19.1.0-r1 USE="udev" [ebuild N ] x11-drivers/xf86-video-r128-6.12.0 USE="dri" Created attachment 757620 [details]
xorg-server-21.1.1-r2 build.log
xorg-server-21.1.1-r2 build.log
[31mFAILED: [0mhw/xfree86/Xorg sparc-unknown-linux-gnu-gcc -o hw/xfree86/Xorg hw/xfree86/Xorg.p/.._.._mi_miinitext.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-export-dynamic -Wl,--whole-archive -Wl,--start-group mi/liblibxserver_mi.a dix/liblibxserver_dix.a composite/liblibxserver_composite.a damageext/liblibxserver_damageext.a dbe/liblibxserver_dbe.a randr/liblibxserver_randr.a miext/damage/liblibxserver_miext_damage.a render/liblibxserver_render.a present/liblibxserver_present.a Xext/liblibxserver_xext.a miext/sync/liblibxserver_miext_sync.a xfixes/liblibxserver_xfixes.a Xi/liblibxserver_xi.a xkb/liblibxserver_xkb.a record/liblibxserver_record.a os/liblibxserver_os.a dri3/liblibxserver_dri3.a glx/liblibglxvnd.a hw/xfree86/common/libxorg_common.a hw/xfree86/loader/libxorg_loader.a hw/xfree86/ddc/libxorg_ddc.a hw/xfree86/xkb/libxorg_xkb.a hw/xfree86/i2c/libxorg_i2c.a hw/xfree86/modes/libxorg_modes.a hw/xfree86/os-support/libxorg_os_support.a hw/xfree86/parser/libxorg_parser.a hw/xfree86/ramdac/libxorg_ramdac.a fb/liblibxserver_fb.a Xext/liblibxserver_xext_vidmode.a dix/liblibxserver_main.a config/liblibxserver_config.a hw/xfree86/dri/libxorg_dri.a hw/xfree86/dri2/libxorg_dri2.a -Wl,--no-whole-archive -fvisibility=hidden -O2 -mcpu=ultrasparc -pipe -Wl,-O1 -Wl,--as-needed os/liblibxlibc.a -Wl,--export-dynamic /usr/lib/libpixman-1.so -lm -ldl /usr/lib/libpciaccess.so -lcrypto /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libXfont2.so /usr/lib/libxshmfence.so /usr/lib/libbsd.so /usr/lib/libxkbfile.so /usr/lib/libdbus-1.so /usr/lib/libudev.so /usr/lib/libdrm.so -lcrypto /usr/lib/libtirpc.so -lpthread /usr/lib/libGL.so /usr/lib/libxcvt.so -Wl,--end-group /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: hw/xfree86/common/libxorg_common.a(xf86fbBus.c.o): in function `xf86ClaimFbSlot': xf86fbBus.c:(.text+0x20): undefined reference to `sbusSlotClaimed' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: xf86fbBus.c:(.text+0x2c): undefined reference to `sbusSlotClaimed' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: xf86fbBus.c:(.text+0x30): undefined reference to `sbusSlotClaimed' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: hw/xfree86/common/libxorg_common.a(xf86Configure.c.o): in function `xf86AddBusDeviceToConfigure': xf86Configure.c:(.text+0x598): undefined reference to `xf86SbusConfigure' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: xf86Configure.c:(.text+0x6e8): undefined reference to `xf86SbusConfigureNewDev' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: hw/xfree86/common/libxorg_common.a(xf86Bus.c.o): in function `xf86BusProbe': xf86Bus.c:(.text+0x1ac): undefined reference to `xf86SbusProbe' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: hw/xfree86/common/libxorg_common.a(xf86Bus.c.o): in function `xf86PostProbe': xf86Bus.c:(.text+0x1148): undefined reference to `sbusSlotClaimed' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: xf86Bus.c:(.text+0x1150): undefined reference to `sbusSlotClaimed' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: xf86Bus.c:(.text+0x1160): undefined reference to `sbusSlotClaimed' /usr/lib/gcc/sparc-unknown-linux-gnu/11.2.0/../../../../sparc-unknown-linux-gnu/bin/ld: hw/xfree86/common/libxorg_common.a(xf86AutoConfig.c.o): in function `listPossibleVideoDrivers': xf86AutoConfig.c:(.text+0x1b4): undefined reference to `sparcDriverName' collect2: error: ld returned 1 exit status Started working on a fix for this (https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/813) but it doesn't fix the issue for OP, although it does for me. We're debugging it in #gentoo-sparc interactively at the moment. Apart from the patch from Sam James I also edited the 'xorg-server-21.1.1/hw/xfree86/os-support/meson.build' file: ---- if host_machine.cpu() == 'sparc' +++ if host_machine.cpu() == 'sparc' or host_machine.cpu() == 'sparc64' Then did an ebuild merge and worked! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82d3645f42413443ed0b010f2927924030a9c3dd commit 82d3645f42413443ed0b010f2927924030a9c3dd Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-12-15 23:27:08 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-12-16 02:37:23 +0000 x11-base/xorg-server: Version bump to 21.1.2 Bug: https://bugs.gentoo.org/829208 Closes: https://bugs.gentoo.org/827877 Closes: https://bugs.gentoo.org/828513 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-base/xorg-server/Manifest | 1 + x11-base/xorg-server/xorg-server-21.1.2.ebuild | 179 +++++++++++++++++++++++++ 2 files changed, 180 insertions(+) |