Created attachment 848949 [details] build.log ... checking whether /var/tmp/portage/sys-devel/gcc-11.3.1_p20221223/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-11.3.1_p20221223/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -fchecking=1 and cc understand -c and -o together... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether byte ordering is bigendian... no checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c checking for CET support... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[2]: *** [Makefile:12010: configure-stage3-libiberty] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.3.1_p20221223/work/build' make[1]: *** [Makefile:24568: stage3-bubble] Error 2 make: *** [Makefile:24643: bootstrap-lean] Error 2 # emerge --info '=sys-devel/gcc-11.3.1_p20221223::gentoo' Portage 3.0.44 (python 3.10.9-final-0, default/linux/amd64/17.1/hardened, gcc-12, glibc-2.36-r7, 6.1.7-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.1.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-10875H_CPU_@_2.30GHz-with-glibc2.36 KiB Mem: 32648492 total, 12178952 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 22 Jan 2023 06:30:01 +0000 Head commit of repository gentoo: 4a220ac75ba18ba1e1d91afe36ae7e0690ca2237 Head commit of repository librewolf: 2f5965ece2fa281603ff670472a77f20cc7667c6 sh bash 5.2_p15-r1 ld GNU ld (Gentoo 2.40 p1) 2.40 ccache version 4.7.4 [disabled] app-misc/pax-utils: 1.3.6-r1::gentoo app-shells/bash: 5.2_p15-r1::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0-r2::gentoo dev-lang/python: 3.9.16::gentoo, 3.10.9::gentoo, 3.11.1::gentoo dev-lang/rust: 1.66.1::gentoo dev-util/ccache: 4.7.4::gentoo dev-util/cmake: 3.25.2::gentoo dev-util/meson: 1.0.0::gentoo sys-apps/baselayout: 2.9::gentoo sys-apps/openrc: 0.46::gentoo sys-apps/sandbox: 2.30-r1::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.40::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 14.0.6-r1::gentoo, 15.0.7-r1::gentoo sys-devel/gcc: 11.3.1_p20221223::gentoo, 12.2.1_p20221231::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo sys-devel/llvm: 14.0.6-r2::gentoo, 15.0.7::gentoo sys-devel/make: 4.4::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://gitlab.com/librewolf-community/browser/gentoo.git masters: gentoo volatile: True brave-overlay location: /var/lib/layman/brave-overlay masters: gentoo priority: 50 volatile: True ceamac location: /var/lib/layman/ceamac masters: gentoo priority: 50 volatile: True flavour location: /var/lib/layman/flavour masters: gentoo priority: 50 volatile: True fordfrog location: /var/lib/layman/fordfrog masters: gentoo priority: 50 volatile: True pf4public location: /var/lib/layman/pf4public masters: gentoo priority: 50 volatile: True ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA android NVIDIA-SDK PUEL-11" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches" DISTDIR="/var/db/repos/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--misspell-suggestions n" 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="-march=native -O2 -pipe -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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="-march=native -O2 -pipe -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="cs_CZ.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="cs cs_CZ en en_US en_UK" MAKEOPTS="-j17" PKGDIR="/var/db/repos/gentoo/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 a52 aac aacplus acl alsa amd64 aubio bluetooth bzip2 cdda cddb cdr cet cli color-management colord crypt cuda cups dbus dia dri dssi dvb dvd elogind exif ffmpeg flac fortran gdbm gegl gif gphoto2 gsm gtk gtk3 hardened hddtemp http2 ibus iconv icu id3tag ipv6 jack jack-dbus jacksession javafx jpeg ladspa lastfm latex lcms libass libglvnd libnotify libproxy libsamplerate libtirpc lilypond lm-sensors lto lv2 mad modplug mp3 mpeg mpi mtp multilib musepack ncurses nls nptl ocr ogg openexr opengl openmp optix opus osc pam pcre pdf pie pipewire png policykit pulseaudio qt5 raw readline rubberband samba scanner screencast seccomp sf2 sndfile soundio speex spell split-usr ssl ssp startup-notification svg svg2 taglib test-rust theora tiff timidity tk tray truetype udev unicode usb vaapi vamp vdpau verify-sig visio vorbis vpx vst vulkan wavpack webp widevine wmf x264 x265 xattr xfce xinerama xmp xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2021" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user cgi cgid deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 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="evdev libinput synaptics wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" LUA_SINGLE_TARGET="luajit lua5-4" 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_8 python3_9 python3_10" RUBY_TARGETS="ruby27 ruby30 ruby31" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nvidia" 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, 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 ================================================================= Package Settings ================================================================= sys-devel/gcc-11.3.1_p20221223::gentoo was built with the following: USE="(cxx) fortran graphite hardened lto (multilib) nls nptl objc openmp (pie) sanitize (ssp) -ada -cet (-custom-cflags) -d -debug -doc (-fixed-point) -go -jit (-libssp) -objc++ -objc-gc (-pch) -pgo -systemtap -test -valgrind -vanilla -vtv -zstd" ABI_X86="(64)" CFLAGS="-march=native -pipe -O2" CXXFLAGS="-march=native -pipe -O2" FEATURES="pid-sandbox unknown-features-warn userpriv binpkg-docompress sfperms binpkg-multi-instance unmerge-orphans buildpkg-live userfetch ipc-sandbox assume-digests preserve-libs usersandbox ebuild-locks fixlafiles binpkg-dostrip usersync xattr sandbox strict protect-owned merge-sync network-sandbox distlocks multilib-strict unmerge-logs config-protect-if-modified binpkg-logs parallel-fetch news qa-unresolved-soname-deps" # emerge -pqv '=sys-devel/gcc-11.3.1_p20221223::gentoo' [ebuild R ] sys-devel/gcc-11.3.1_p20221223 USE="cet* (cxx) fortran graphite hardened lto (multilib) nls nptl objc openmp (pie) sanitize (ssp) -ada (-custom-cflags) -d -debug -doc (-fixed-point) -go -jit (-libssp) -objc++ -objc-gc (-pch) -pgo -systemtap -test -valgrind -vanilla -vtv -zstd"
Could you grab /var/tmp/portage/sys-devel/gcc-11.3.1_p20221223/work/gcc-build-logs.tar.xz?
In https://bugs.gentoo.org/822036#c14, I got fed up and changed to the Ubuntu-style specs patching for the time being, because it was too fragile otherwise. We should probably just drop the CET patch for 11.x. We can keep the USE in make.defaults for CET on hardened profiles though, as support for it is still useful, but it'll only be on by default with 12. I do want to revisit the specs patch later on as it's not very maintainable though.
These tests are ran only when --enable-cet=auto, which is the default AFAIU. I'm not sure if there's negative implications to specifying --enable-cet=yes (which just acts as if the automatic tests with =auto passed), but if not, the fix might be to just pass that.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=15daf0510a5fab17cd556261d688a6618391a0c1 commit 15daf0510a5fab17cd556261d688a6618391a0c1 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-22 08:35:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-23 00:35:20 +0000 11.4.0: drop 26_all_enable-cet.patch (bootstrapping issues with PGO/LTO?) See https://bugs.gentoo.org/891655#c2 in particular: """ In https://bugs.gentoo.org/822036#c14, I got fed up and changed to the Ubuntu-style specs patching for the time being, because it was too fragile otherwise. We should probably just drop the CET patch for 11.x. We can keep the USE in make.defaults for CET on hardened profiles though, as support for it is still useful, but it'll only be on by default with 12. I do want to revisit the specs patch later on as it's not very maintainable though. """ 11.x is really not the place we want to experiment further at this point, so go for the safe option and either develop the approach further for 12 or maybe even 13. Arsen notes that we might be able to try --enable-cet=yes (rather than default auto) but let's leave that for now given ^ wrt 11. Bug: https://bugs.gentoo.org/822036 Closes: https://bugs.gentoo.org/891655 Signed-off-by: Sam James <sam@gentoo.org> 11.4.0/gentoo/26_all_enable-cet.patch | 48 ----------------------------------- 11.4.0/gentoo/README.history | 3 +++ 2 files changed, 3 insertions(+), 48 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=016184c289f2cc6c6ade496a700a12f135fbae07 commit 016184c289f2cc6c6ade496a700a12f135fbae07 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-23 00:25:35 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-23 00:42:40 +0000 sys-devel/gcc: backport CET fix for 11; further make jobserver related fixes for all - jobserver: Led to crashes during build in some cases. Note that this is a bug in the driver so could easily happen when using GCC to build other things too. - CET: See https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=15daf0510a5fab17cd556261d688a6618391a0c1 for details, but went for a more conservative approach for GCC 11. Bug: https://bugs.gentoo.org/822036 Closes: https://bugs.gentoo.org/885501 Closes: https://bugs.gentoo.org/891655 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 4 +- ...30119.ebuild => gcc-10.4.1_p20230119-r1.ebuild} | 8 ++-- ...30120.ebuild => gcc-11.3.1_p20230120-r1.ebuild} | 8 ++-- sys-devel/gcc/gcc-12.2.1_p20230121-r1.ebuild | 52 ++++++++++++++++++++++ 4 files changed, 63 insertions(+), 9 deletions(-)