Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 700120

Summary: >=sys-libs/glibc-2.30 breaks xorg-server-1.20.5 on arm (missing <sys/io.h>)
Product: Gentoo Linux Reporter: Steve Arnold <nerdboy>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: toolchain
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: upstream commit re-applied to 1.20.5

Description Steve Arnold archtester gentoo-dev 2019-11-14 22:51:46 UTC
Upstream says only this line:

* On 32-bit Arm, support for the port-based I/O emulation and the <sys/io.h>
  header have been removed.

What exactly is the fix/migration path for this?  I pretty much have work/other stuff coming out of every orifice so I don't really have time to track this down (some hints would be helpful).

Thanks...

Portage 2.3.79 (python 3.6.9-final-0, default/linux/arm/17.0/armv7a, gcc-9.2.0, glibc-2.30-r2, 5.3.0-00001-gc094c373f029 armv7l)
=================================================================
System uname: Linux-5.3.0-00001-gc094c373f029-armv7l-ARMv7_Processor_rev_3_-v7l-with-gentoo-2.6
KiB Mem:     4021728 total,   2410344 free
KiB Swap:    4193276 total,   4192756 free
Timestamp of repository gentoo: Wed, 13 Nov 2019 00:45:02 +0000
Head commit of repository sakaki-tools: 0a6d1b558a8bf4100f0a682542359d160778c112

sh bash 5.0_p11
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
distcc 3.3.3 armv7a-unknown-linux-gnueabihf [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.3::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-webrsync-verify-signature: true

nerdboy
    location: /usr/local/portage/nerdboy
    masters: gentoo
    priority: 0

arm_nerdboy
    location: /usr/local/portage/arm
    masters: gentoo
    priority: 1

sakaki-tools
    location: /var/db/repos/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="@FREE CC-Sampling-Plus-1.0 linux-fw-redistributable no-source-code"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-march=armv7-a+mp+sec+simd -mtune=generic-armv7-a -flto -mfpu=auto -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-march=armv7-a+mp+sec+simd -mtune=generic-armv7-a -flto -mfpu=auto -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
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="-march=armv7-a+mp+sec+simd -mtune=generic-armv7-a -flto -mfpu=auto -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=armv7-a+mp+sec+simd -mtune=generic-armv7-a -flto -mfpu=auto -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-march=armv7-a+mp+sec+simd -mtune=generic-armv7-a -flto -mfpu=auto -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -Wl,-O2 -Wl,--as-needed -fuse-linker-plugin"
LINGUAS="en_US en"
MAKEOPTS="-j5 -l4"
PKGDIR="/var/cache/portage/packages"
PORTAGE_BZIP2_COMMAND="/bin/bzip2"
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 acl alsa arm armv5te armv6 armv6t2 bzip2 cairo caps cli crypt curl cxx dbus djvu dnotify dri dri3 drm egl elogind fam fbcon ffmpeg filecaps fortran gallium gbm gcrypt gdbm gif glamor gles2 gnome-keyring gnutls gold gtk gtk3 gudev guile harfbuzz iconv icu inotify introspection iptables ipv6 jpeg json kms libinput libnotify llvm logrotate lto lua minizip modemmanager ncurses neon networkmanager nls nolvmstatic nptl nss opengl openmp openssl pam pcre pcre16 pkcs11 png policykit postproc ppp pulseaudio python qt5 readline sasl script seccomp spell split-usr sqlite ssh ssl svc svg tcpd text threads tiff tls truetype udev unicode v4l vala virt-network wheel xattr xcb xkb xml xvfb zlib" ADA_TARGET="gnat_2018" ALSA_CARDS="snd_soc_tegra_max98090 usb-audio" APACHE2_MODULES="actions alias auth_digest auth_basic authn_alias access_compat authn_core authn_dbd authz_core cache_disk cern_meta cgi cgid charset_lite authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 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 proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias unixd socache_shmcb" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 v4 v5 v6 v7 thumb2" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt tripmate tsip ublox nmea0183 nmea2000 passthrough" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="en en-US en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="tegra exynos panfrost" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-11-14 23:05:02 UTC
(In reply to Steve Arnold from comment #0)
> Upstream says only this line:
> 
> * On 32-bit Arm, support for the port-based I/O emulation and the <sys/io.h>
>   header have been removed.
> 
> What exactly is the fix/migration path for this?  I pretty much have
> work/other stuff coming out of every orifice so I don't really have time to
> track this down (some hints would be helpful).
> 
> Thanks...

As stated in #gentoo-toolchain it was an explicit upstream change:
    https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6b33f373c7b9199e00ba5fbafd94ac9bfb4337b1

'sys/io.h' is not a portable header. Please attach actual build failure and assign it to package maintainer.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-11-14 23:07:35 UTC
Posting bith from #gentoo-toolchain:
"""
22:40:17 <+nerdboy> ../../../../hw/xfree86/common/compiler.h:767:10: fatal error: sys/io.h: No such file or directory
"""

https://gitlab.freedesktop.org/xorg/xserver/commit/fe4cd0e7f5c58fa94db36326aadc1bd4e6d73eba
Comment 3 Steve Arnold archtester gentoo-dev 2019-11-15 00:05:35 UTC
Created attachment 596186 [details, diff]
upstream commit re-applied to 1.20.5

Testing this patch now...
Comment 4 Matt Turner gentoo-dev 2019-11-18 05:27:16 UTC
Merging into the server-1.20-branch in https://gitlab.freedesktop.org/xorg/xserver/merge_requests/340
Comment 5 Larry the Git Cow gentoo-dev 2019-11-23 00:21:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c38af1852d41380a9758c092ffb0df8362dec256

commit c38af1852d41380a9758c092ffb0df8362dec256
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-11-23 00:12:49 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-11-23 00:20:59 +0000

    x11-base/xorg-server: Version bump to 1.20.6
    
    Closes: https://bugs.gentoo.org/689768
    Closes: https://bugs.gentoo.org/700052
    Closes: https://bugs.gentoo.org/700120
    Closes: https://bugs.gentoo.org/700838
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-base/xorg-server/Manifest                  |   1 +
 x11-base/xorg-server/xorg-server-1.20.6.ebuild | 232 +++++++++++++++++++++++++
 2 files changed, 233 insertions(+)