I tried hard to compile the new xorg-server - but to no avail... ------------------------------------------------------------------------------- [553/611] armv7a-unknown-linux-gnueabihf-gcc -Ihw/xfree86/int10/libint10.so.p -Ihw/xfree86/int10 -I../xorg-server-21.1.8/hw/xfree86/int10 -IXext -I../xorg-server-21.1.8/Xext -IXi -I../xorg-server-21.1.8/Xi -Icomposite -I../xorg-server-21.1.8/composite -Idamageext -I../xorg-server-21.1.8/damageext -Iexa -I../xorg-server-21.1.8/exa -Ifb -I../xorg-server-21.1.8/fb -Iglamor -I../xorg-server-21.1.8/glamor -Imi -I../xorg-server-21.1.8/mi -Imiext/damage -I../xorg-server-21.1.8/miext/damage -Imiext/shadow -I../xorg-server-21.1.8/miext/shadow -Imiext/sync -I../xorg-server-21.1.8/miext/sync -Idbe -I../xorg-server-21.1.8/dbe -Idri3 -I../xorg-server-21.1.8/dri3 -Iinclude -I../xorg-server-21.1.8/include -Ipresent -I../xorg-server-21.1.8/present -Irandr -I../xorg-server-21.1.8/randr -Irender -I../xorg-server-21.1.8/render -Ixfixes -I../xorg-server-21.1.8/xfixes -Ihw/xfree86/common -I../xorg-server-21.1.8/hw/xfree86/common -Ihw/xfree86/ddc -I../xorg-server-21.1.8/hw/xfree86/ddc -Ihw/xfree86/dri2 -I../xorg-server-21.1.8/hw/xfree86/dri2 -Ihw/xfree86/i2c -I../xorg-server-21.1.8/hw/xfree86/i2c -Ihw/xfree86/loader -I../xorg-server-21.1.8/hw/xfree86/loader -Ihw/xfree86/modes -I../xorg-server-21.1.8/hw/xfree86/modes -Ihw/xfree86/os-support -I../xorg-server-21.1.8/hw/xfree86/os-support -I../xorg-server-21.1.8/hw/xfree86/os-support/bus -Ihw/xfree86/parser -I../xorg-server-21.1.8/hw/xfree86/parser -Ihw/xfree86/ramdac -I../xorg-server-21.1.8/hw/xfree86/ramdac -Ihw/xfree86/vgahw -I../xorg-server-21.1.8/hw/xfree86/vgahw -I../xorg-server-21.1.8/hw/xfree86/x86emu -I/usr/include/X11/dri -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -DHAVE_DIX_CONFIG_H -fno-strict-aliasing -fvisibility=hidden -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -O2 -pipe -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DHAVE_XORG_CONFIG_H -DXORG_NO_SDKSYMS -D_VM86_LINUX -MD -MQ hw/xfree86/int10/libint10.so.p/helper_exec.c.o -MF hw/xfree86/int10/libint10.so.p/helper_exec.c.o.d -o hw/xfree86/int10/libint10.so.p/helper_exec.c.o -c ../xorg-server-21.1.8/hw/xfree86/int10/helper_exec.c FAILED: hw/xfree86/int10/libint10.so.p/helper_exec.c.o armv7a-unknown-linux-gnueabihf-gcc -Ihw/xfree86/int10/libint10.so.p -Ihw/xfree86/int10 -I../xorg-server-21.1.8/hw/xfree86/int10 -IXext -I../xorg-server-21.1.8/Xext -IXi -I../xorg-server-21.1.8/Xi -Icomposite -I../xorg-server-21.1.8/composite -Idamageext -I../xorg-server-21.1.8/damageext -Iexa -I../xorg-server-21.1.8/exa -Ifb -I../xorg-server-21.1.8/fb -Iglamor -I../xorg-server-21.1.8/glamor -Imi -I../xorg-server-21.1.8/mi -Imiext/damage -I../xorg-server-21.1.8/miext/damage -Imiext/shadow -I../xorg-server-21.1.8/miext/shadow -Imiext/sync -I../xorg-server-21.1.8/miext/sync -Idbe -I../xorg-server-21.1.8/dbe -Idri3 -I../xorg-server-21.1.8/dri3 -Iinclude -I../xorg-server-21.1.8/include -Ipresent -I../xorg-server-21.1.8/present -Irandr -I../xorg-server-21.1.8/randr -Irender -I../xorg-server-21.1.8/render -Ixfixes -I../xorg-server-21.1.8/xfixes -Ihw/xfree86/common -I../xorg-server-21.1.8/hw/xfree86/common -Ihw/xfree86/ddc -I../xorg-server-21.1.8/hw/xfree86/ddc -Ihw/xfree86/dri2 -I../xorg-server-21.1.8/hw/xfree86/dri2 -Ihw/xfree86/i2c -I../xorg-server-21.1.8/hw/xfree86/i2c -Ihw/xfree86/loader -I../xorg-server-21.1.8/hw/xfree86/loader -Ihw/xfree86/modes -I../xorg-server-21.1.8/hw/xfree86/modes -Ihw/xfree86/os-support -I../xorg-server-21.1.8/hw/xfree86/os-support -I../xorg-server-21.1.8/hw/xfree86/os-support/bus -Ihw/xfree86/parser -I../xorg-server-21.1.8/hw/xfree86/parser -Ihw/xfree86/ramdac -I../xorg-server-21.1.8/hw/xfree86/ramdac -Ihw/xfree86/vgahw -I../xorg-server-21.1.8/hw/xfree86/vgahw -I../xorg-server-21.1.8/hw/xfree86/x86emu -I/usr/include/X11/dri -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -DHAVE_DIX_CONFIG_H -fno-strict-aliasing -fvisibility=hidden -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -O2 -pipe -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DHAVE_XORG_CONFIG_H -DXORG_NO_SDKSYMS -D_VM86_LINUX -MD -MQ hw/xfree86/int10/libint10.so.p/helper_exec.c.o -MF hw/xfree86/int10/libint10.so.p/helper_exec.c.o.d -o hw/xfree86/int10/libint10.so.p/helper_exec.c.o -c ../xorg-server-21.1.8/hw/xfree86/int10/helper_exec.c In file included from ../xorg-server-21.1.8/hw/xfree86/int10/helper_exec.c:30: ../xorg-server-21.1.8/hw/xfree86/os-support/int10Defines.h:37:10: fatal error: asm/vm86.h: No such file or directory 37 | #include <asm/vm86.h> | ^~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. * ERROR: x11-base/xorg-server-21.1.8::gentoo failed (compile phase): * compile failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3340: Called meson_src_compile * environment, line 2602: Called die * The specific snippet of code: * "$@" || die "compile failed" * * If you need support, post the output of `emerge --info '=x11-base/xorg-server-21.1.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-base/xorg-server-21.1.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/x11-base/xorg-server-21.1.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-base/xorg-server-21.1.8/temp/environment'. * Working directory: '/var/tmp/portage/x11-base/xorg-server-21.1.8/work/xorg-server-21.1.8' * S: '/var/tmp/portage/x11-base/xorg-server-21.1.8/work/xorg-server-21.1.8' >>> Failed to emerge x11-base/xorg-server-21.1.8, Log file: ------------------------------------------------------------------------------- I peeked around in the build directory and in fact, there is no vm86.h in the whole directory. In order to do as requested by the error message, I add the following info: ------------------------------------------------------------------------------- isildur /var/tmp/portage/x11-base/xorg-server-21.1.8.fail # emerge --info '=x11-base/xorg-server-21.1.8::gentoo' Portage 3.0.44 (python 3.10.10-final-0, default/linux/arm/17.0/armv7a, gcc-12, glibc-2.36-r7, 6.1.19-v8+ aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.1.19-v8+-aarch64-with-glibc2.36 KiB Mem: 3885396 total, 2068016 free KiB Swap: 33554428 total, 33554428 free Timestamp of repository gentoo: Mon, 03 Apr 2023 07:45:01 +0000 Head commit of repository gentoo: d82df9d85d563b35f8f4243abf7a2e0b3a7a4925 sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.39 p5) 2.39.0 distcc 3.4 armv7a-unknown-linux-gnueabihf [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0-r2::gentoo dev-lang/python: 3.10.10_p3::gentoo, 3.11.2_p2::gentoo dev-lang/rust-bin: 1.66.1-r1::gentoo dev-util/cmake: 3.25.2::gentoo dev-util/meson: 1.0.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/openrc: 0.46::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r4::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 15.0.7-r1::gentoo sys-devel/gcc: 12.2.1_p20230121-r1::gentoo sys-devel/gcc-config: 2.8::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/llvm: 15.0.7::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://pandora.home.serbe.ch/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: no sync-rsync-extra-opts: PSeOverlay location: /usr/local/overlay masters: gentoo priority: 10 volatile: True ACCEPT_KEYWORDS="arm" ACCEPT_LICENSE="@FREE" CBUILD="armv7a-unknown-linux-gnueabihf" CFLAGS="-O2 -pipe -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard" CHOST="armv7a-unknown-linux-gnueabihf" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" 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="-O2 -pipe -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME" FCFLAGS="-O2 -pipe -march=armv7-a" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict 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 -pipe -march=armv7-a" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" 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" SHELL="/bin/bash" USE="X acl arm bash-completion branding bzip2 caps cli crypt dbus dri elogind fat fortran gdbm git gnutls gtk iconv jpeg kerberos keyboard libglvnd libinput lzma lzo modules mouse ncurses neon nls nptl openmp pam pcre perl png python quota readline seccomp session split-usr ssl startup-notification suid test-rust truetype udev unicode xattr xorg zlib" ADA_TARGET="gnat_2021" 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_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="vc4" 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: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ------------------------------------------------------------------------------- and ------------------------------------------------------------------------------- isildur /var/tmp/portage/x11-base/xorg-server-21.1.8.fail # emerge -pqv '=x11-base/xorg-server-21.1.8::gentoo' [ebuild r U ] x11-base/xorg-server-21.1.8 [21.1.7] USE="elogind suid udev xorg -debug -minimal (-selinux) -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb" [ebuild rR ] x11-drivers/xf86-input-libinput-1.2.1 The following packages are causing rebuilds: (x11-base/xorg-server-21.1.8:0/21.1.8::gentoo, ebuild scheduled for merge) causes rebuilds for: (x11-drivers/xf86-input-libinput-1.2.1:0/0::gentoo, ebuild scheduled for merge) * IMPORTANT: 1 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. ------------------------------------------------------------------------------- I see no options to change the failing behaviour. I am surprised to see a reference to some 86-hw as I am on a raspi. I never had issues compiling the xorg-server. But now even xorg-server-21.1.7 fails at the same place. Something changed the behaviour of the installation...
Please attach a full build log and set the status to UNCONFIRMED.
Created attachment 859487 [details] build.log sorry, i didn't notice that adding the log failed, as the log was a wee bit too big.
I tried to compile x11-base/xorg-server-21.1.7 on a non-updated raspi, which succeeded. The differences in the build job for ../xorg-server-21.1.x/hw/xfree86/int10/helper_exec.c are small - but they might be a hint. I've got for the working complile: ---------------------------------------------------- -Ihw/xfree86/x86emu ... -D_X86EMU -DNO_SYS_HEADERS -Wno-format-nonliteral ---------------------------------------------------- Whereas for the failing compile I had one, that was missing in the OK-case: ---------------------------------------------------- -D_VM86_LINUX ---------------------------------------------------- I have no clue what triggered the chance. On the machine, where the xorg-server compilation fails, I have three packages installed, that may or may not be related: x11-drivers/xf86-input-libinput-1.2.1 x11-drivers/xf86-video-dummy-0.4.0 x11-libs/libXxf86vm-1.1.5
I compared the failed compile task with the corresponding one from a (ARM) machine, where the compile succeeds. The differences were: In the failed compile I have: "... -Ihw/xfree86/x86emu ... -D_X86EMU -DNO_SYS_HEADERS -Wno-format-nonliteral ..." whereas I read for the successful compile: "... -D_VM86_LINUX ..." Furthermore I read in INT10.HOWTO: "Currently defines are available for vm86-mode under Linux and x86emu. They may be activated by defining _X86EMU or _VM86_LINUX respectively." So I am pretty sure, that the issue is, that on this machine xfree86 does not correctly determine the current platform. After a bit of experimentation I got a successful compile by modifying the xorg-server-ebuild by adding: src_configure() { ... emesonargs+=( -Dint10=x86emu ) ... ) I was not able to find out, how meson derives the configure options - but I still have the impression, that there is an underlying bug rather than (as still possible) configuration error on my side.
Your emerge --info has aarch64 for the personality which implies you forgot to run linux32.
Confirmed, this goes away with proper setarch.
I finally found out, what happened. The RaspberryPi 4 will boot the 64 bit kernel and run the 32 bit Gentoo without any complaint. Everything seems to run fine, it is just, that the Meson build system assumes, that it was invoked in a 64 bit system and it then decides not to add /xfree86/x86emu/libx86emu.a.p to its target list. The fix is to add 'arm_64bit=0' to config.txt in the Raspi /boot directory, as otherwise the 64 bit kernel will load - and an innocent fool like me won't notice at all... So yes, the hint at AARCH64 was very right. But even this did not make me seeing the issue until today.