Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828513 - x11-base/xorg-server-21.1.1-r2 fails to compile on sparc: xf86fbBus.c:(.text+0x20): undefined reference to `sbusSlotClaimed'
Summary: x11-base/xorg-server-21.1.1-r2 fails to compile on sparc: xf86fbBus.c:(.text+...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: Normal normal
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/xorg/x...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-07 15:31 UTC by Jaime Fordham
Modified: 2021-12-16 02:37 UTC (History)
2 users (show)

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


Attachments
xorg-server-21.1.1-r2 build.log (xorg-server-21.1.1-r2_build.log.bz2,20.13 KB, application/x-bzip)
2021-12-07 15:35 UTC, Jaime Fordham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Fordham 2021-12-07 15:31:54 UTC
Trying to emerge xorg-server on sparc (32bit userland) and compile fails with ninja: build stopped: subcommand failed.

Reproducible: Always

Steps to Reproduce:
1.emerge xorg-server
2.
3.
Actual Results:  
ninja: build stopped: subcommand failed.
 * ERROR: x11-base/xorg-server-21.1.1-r2::gentoo failed (compile phase):
 *   compile failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3320:  Called meson_src_compile
 *   environment, line 2550:  Called die
 * The specific snippet of code:
 *       "$@" || die "compile failed"
 *


# emerge --info '=x11-base/xorg-server-21.1.1-r2::gentoo'
Portage 3.0.28 (python 3.9.8-final-0, default/linux/sparc/17.0/desktop, gcc-11.2.0, glibc-2.33-r1, 5.10.76-gentoo-r1-sparc64 sparc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.76-gentoo-r1-sparc64-sparc64-sun4u-with-glibc2.33
KiB Mem:     2066992 total,    600280 free
KiB Swap:    4056400 total,   3969280 free
Timestamp of repository gentoo: Sun, 05 Dec 2021 00:45:01 +0000
Head commit of repository gentoo: f860b3e4f444f2bc3b9c474c2438a0d42c1a6d21
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.9.8::gentoo, 3.10.0_rc1_p2::gentoo
dev-util/cmake:           3.22.0::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.44.9::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

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

ACCEPT_KEYWORDS="sparc ~sparc"
ACCEPT_LICENSE="@FREE @FREE @BINARY-REDISTRIBUTABLE @EULA all-rights-reserved quake1-killer lha quake1-demodata"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 -mcpu=ultrasparc -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -mcpu=ultrasparc -pipe"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="X a52 aac acl alsa big-endian branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif firmware flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc llvm-libunwind mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds radeon readline sdl sparc spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2020" 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" 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev glint mga r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Jaime Fordham 2021-12-07 15:32:23 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"
Comment 2 Jaime Fordham 2021-12-07 15:35:16 UTC
Created attachment 757620 [details]
xorg-server-21.1.1-r2 build.log

xorg-server-21.1.1-r2 build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-07 16:54:53 UTC
[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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-08 01:12:13 UTC
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.
Comment 5 Jaime Fordham 2021-12-12 22:42:39 UTC
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!
Comment 6 Larry the Git Cow gentoo-dev 2021-12-16 02:37:38 UTC
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(+)