In file included from ../xorg-server-21.1.3/test/list.c:32: ../xorg-server-21.1.3/test/list.c: In function ‘list_test’: ../xorg-server-21.1.3/include/list.h:311:10: error: array subscript 0 is outside array bounds of ‘struct parent[1]’ [-Werror=array-bounds] 311 | &pos->member != (head); \ ../xorg-server-21.1.3/test/list.c:213:5: note: in expansion of macro ‘xorg_list_for_each_entry’ 213 | xorg_list_for_each_entry(c, &parent.children, node) { | ^~~~~~~~~~~~~~~~~~~~~~~~ ../xorg-server-21.1.3/test/list.c:193:19: note: while referencing ‘parent’ 193 | struct parent parent = { 0 }; | ^~~~~~ cc1: some warnings being treated as errors Reproducible: Always Steps to Reproduce: 1. Emerge xorg-server-21.1.3-r1 on x86 platform 2. 3. Actual Results: Emerge fails on compile stage. Expected Results: Success # emerge --info Portage 3.0.30 (python 3.9.10-final-0, default/linux/x86/17.0/desktop, gcc-11.2.1, glibc-2.33-r7, 5.10.52-gentoo i686) ================================================================= System uname: Linux-5.10.52-gentoo-i686-Pentium-R-_Dual-Core_CPU_E5800_@_3.20GHz-with-glibc2.33 KiB Mem: 3973708 total, 1736716 free KiB Swap: 4194300 total, 3750788 free Timestamp of repository gentoo: Sat, 19 Mar 2022 19:34:22 +0000 Head commit of repository gentoo: 6993ebd25cc4901cbdee83ca15b9c54d4e18b34a sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p2) 2.37 distcc 3.4 i686-pc-linux-gnu [disabled] app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 3.9.10_p1::gentoo, 3.10.2_p1::gentoo dev-lang/rust-bin: 1.58.1::gentoo dev-util/cmake: 3.22.2::gentoo dev-util/meson: 0.60.3::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo sys-devel/binutils: 2.37_p1-r2::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/gcc: 11.2.1_p20220115::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/llvm: 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=core2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" 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/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-Os -march=core2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going y --exclude gentoo-sources" 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 -march=i686 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en ru" MAKEOPTS="-j3 -l 3" 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" SHELL="/bin/bash" USE="20ms-frames X a52 aac acl acpi alsa ap apache2 archive asf avcodec bittorrent bluetooth branding bzip2 cairo cdda cdr cgi chm cli crypt cups curl curlwrappers dbus dlz dovecot-sasl drafts dri dts dvd dvdr elogind encode exif extras fastcgi ffmpeg flac fortran fpm g3dvl gd gdbm geoip gif gpm gtk gtk3 gui harfbuzz hwaccel iconv icu idn imap inifile intl ioctl iproute2 ipv6 jpeg kdrive lcms libglvnd libnotify libtirpc logrotate logwatch mad magic maildir midi minizip mms mmx mmxext mng mousewheel mp3 mp4 mpeg music mysql mysqli ncurses network nls nptl nsplugin ofx ogg opengl openmp openssl pam pango pcntl pcre pdf pdo png policykit ppds pulseaudio python readline samba sdl seccomp secure-delete server soap sockets soprano spell split-usr sqlite sqlite2 sqlite3 sse2 ssl startup-notification suexec svg system-binutils system-boost system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libevent system-libs system-libvpx system-libyaml system-lua system-sqlite tiff truetype tty-helpers udev udisks unicode upower usb vlc vnc vorbis wav wifi win32codecs wxwidgets x264 x86 xattr xcb xephyr xine xinetd xml xmlreader xnest xv xvid xvmc zip zlib" ABI_X86="32" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 vesa fbdev" VOICEMAIL_STORAGE="imap" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, 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
Thank you for the report. We need to have all information at hand before ticket assignment. This includes * the complete build.log as attachment as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Created attachment 767456 [details] Build log Build log attached.
The build error is repeated in the log twice because I did run "ebuild xorg-server-21.1.3-r1.ebuild compile" manually.
It's a GCC bug triggered by -Os. Use -O2 for this package for now via package.env.
Confirmed. Compilation with -O2 goes through fine.
*** Bug 882711 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d3f0132014dc3f5c321b0d457d985c1e04171d commit 20d3f0132014dc3f5c321b0d457d985c1e04171d Author: Sam James <sam@gentoo.org> AuthorDate: 2022-11-24 11:27:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-11-24 11:27:15 +0000 x11-base/xorg-server: replace -Os w/ -O2 Closes: https://bugs.gentoo.org/835653 Signed-off-by: Sam James <sam@gentoo.org> x11-base/xorg-server/xorg-server-21.1.4.ebuild | 6 ++++-- x11-base/xorg-server/xorg-server-9999.ebuild | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-)
Sorry, it should be x86 in both ebuilds. I'll fix later
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=772a48472355bc5185035119de3ca823a88f5049 commit 772a48472355bc5185035119de3ca823a88f5049 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-11-25 06:04:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-11-25 06:04:47 +0000 x11-base/xorg-server: fix replace-flags for just x86 Missync from 20d3f0132014dc3f5c321b0d457d985c1e04171d. Closes: https://bugs.gentoo.org/835653 Fixes: 20d3f0132014dc3f5c321b0d457d985c1e04171d Signed-off-by: Sam James <sam@gentoo.org> x11-base/xorg-server/xorg-server-21.1.4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aaaf3c11fd14c5518bb73adcd18019e4c890638 commit 0aaaf3c11fd14c5518bb73adcd18019e4c890638 Author: Ian Jordan <immoloism@gmail.com> AuthorDate: 2024-10-01 17:03:25 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2024-10-02 22:16:11 +0000 x11-base/xorg-server: Add Oz to replace-flags for x86 Like Os, Oz has the same issue so added a second line to replace the flag. Bug: https://bugs.gentoo.org/835653 Signed-off-by: Ian Jordan <immoloism@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/38840 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-base/xorg-server/xorg-server-21.1.13-r1.ebuild | 1 + x11-base/xorg-server/xorg-server-9999.ebuild | 1 + 2 files changed, 2 insertions(+)