Created attachment 908927 [details] build.log GCC15 Snapshot 15.0.0_pre20241117 /var/tmp/portage/dev-util/mingw64-toolchain-12.0.0/work/binutils/binutils/prdbg.c:2821:14: error: incompatible types when returning type ‘_Bool’ but ‘const char *’ was expected 2821 | return false; | ^~~~~ make[4]: *** [Makefile:1217: prdbg.o] Error 1 # emerge --info Portage 3.0.66.1 (python 3.13.0-final-0, default/linux/amd64/23.0/desktop, gcc-15, glibc-9999, 6.11.5-gentoo-dist x86_64) ================================================================= System uname: Linux-6.11.5-gentoo-dist-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.39.9000 KiB Mem: 65744184 total, 29871732 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 18 Nov 2024 02:18:33 +0000 Head commit of repository gentoo: a98edd7e14736ea3f88ef1f5459080da417f9961 Head commit of repository cosmic-overlay: 202dd98f93ca5281fbf128a8fd16c24b6b44e970 Timestamp of repository edgets: Sun, 17 Nov 2024 05:33:36 +0000 Head commit of repository edgets: d740bb7b9949991e8c321b1f8406655ae8ab142e Timestamp of repository guru: Sun, 17 Nov 2024 13:33:23 +0000 Head commit of repository guru: 0b4deaa6c737fcf006a3e175c439cd28247d9c3b Timestamp of repository parona-overlay: Sun, 17 Nov 2024 06:18:41 +0000 Head commit of repository parona-overlay: 4ff5e5a355f215650807725a178448a3552d5a78 Timestamp of repository sft: Sun, 17 Nov 2024 05:33:30 +0000 Head commit of repository sft: c1069259d91f13421af756033c9dac91ff0c0833 Timestamp of repository steam-overlay: Sun, 17 Nov 2024 05:33:32 +0000 Head commit of repository steam-overlay: 443e064b607a92dbad15243732698edc0b411b43 Timestamp of repository wayland-desktop: Sun, 17 Nov 2024 05:33:37 +0000 Head commit of repository wayland-desktop: de46a80a5b8e00e5426f3a0930a7b7137f72eb33 sh bash 5.2_p37 ld GNU ld (Gentoo 2.43 p3) 2.43.1 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.31.0::gentoo dev-build/libtool: 2.5.3::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 9999::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo dev-lang/rust-bin: 1.81.0-r100::gentoo, 1.82.0-r100::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.55.1::gentoo sys-apps/sandbox: 2.40::gentoo sys-devel/binutils: 2.42-r1::gentoo, 2.43-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 17.0.6::gentoo, 18.1.8-r6::gentoo sys-devel/gcc: 12.3.1_p20240502::gentoo, 13.3.1_p20241025::gentoo, 14.1.1_p20240518::gentoo, 15.0.0_pre20241117::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo, 18.1.5::gentoo sys-devel/llvm: 17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.3::gentoo sys-kernel/linux-headers: 6.11::gentoo (virtual/os-headers) sys-libs/glibc: 9999::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False cosmic-overlay location: /var/db/repos/cosmic-overlay sync-type: git sync-uri: https://github.com/fsvm88/cosmic-overlay.git masters: gentoo volatile: False edgets location: /var/db/repos/edgets sync-type: git sync-uri: https://github.com/gentoo-mirror/edgets.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False local location: /var/db/repos/local masters: gentoo volatile: False parona-overlay location: /var/db/repos/parona-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/parona-overlay.git masters: gentoo volatile: False py3_13 location: /var/db/repos/py3_13 masters: gentoo volatile: False sft location: /var/db/repos/sft sync-type: git sync-uri: https://github.com/gentoo-mirror/sft.git masters: gentoo volatile: False steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -flto" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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" CXXFLAGS="-O2 -march=native -pipe -flto" DISTDIR="/var/cache/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 -march=native -pipe -flto" 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 merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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=native -pipe -flto" GENTOO_MIRRORS="https://mirror.bytemark.co.uk/gentoo/ https://mirrors.gethosted.online/gentoo/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" 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="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt dbus dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp opus pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qml readline sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland webp wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_12 python3_13" QEMU_SOFTMMU_TARGETS="aarch64 i386 x86_64 ppc m68k sh4 sh4eb hppa alpha" QEMU_USER_TARGETS="m68k sh4 sh4eb aarch64 hppa riscv64 riscv32 alpha ppc64le" RUBY_TARGETS="ruby32" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
This will need my binutils fixes (https://inbox.sourceware.org/binutils/cover.1731741209.git.sam@gentoo.org/) or building with -std=gnu17. bpf-toolchain will need the same treatment.
Thanks, guess I'll do gnu17 and keep a note to try dropping it when bump to binutils-2.44 or so.
(In reply to Ionen Wolkens from comment #2) > Thanks, guess I'll do gnu17 and keep a note to try dropping it when bump to > binutils-2.44 or so. Or hrm, given between gcc/binutils/runtime there's a lot of things passing their own -std and that appending would override it.. maybe not so great (binutils itself has a few -std=gnu99, albeit imagine it's not a big deal). Could limit it to binutils-only, but think it may be simpler to go ahead and use the patches.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=869d0dd6ceb9728b6792fe2ad6b46e62e6367a4f commit 869d0dd6ceb9728b6792fe2ad6b46e62e6367a4f Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-11-18 09:28:29 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-11-18 09:59:13 +0000 dev-util/mingw64-toolchain: fix binutils build with c23 (gcc15) Closes: https://bugs.gentoo.org/943715 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> .../files/binutils-2.42-c23.patch | 93 ++++++++++++++++++++++ .../mingw64-toolchain-12.0.0.ebuild | 1 + 2 files changed, 94 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2facc542948cfb79193220e7beb9d1c9837df8a commit d2facc542948cfb79193220e7beb9d1c9837df8a Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-19 03:48:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-19 03:52:22 +0000 sys-devel/gcc: backport C23 fix to 15.0.0_pre20241117 Backport a -std=gnu23/-std=c23 fix to 15.0.0_pre20241117 which prevented coersion from _Bool to NULL. Note that this is still dodgy code and some are proposing this be banned in a future C version (maybe even C2y), but it shouldn't be rejected in this version at least. I've added Closes tags for all bugs which, at a glance, look related, but I haven't re-tested them all and one or two might need reopening. Bug: https://gcc.gnu.org/PR112556 Closes: https://bugs.gentoo.org/943862 Closes: https://bugs.gentoo.org/943861 Closes: https://bugs.gentoo.org/943843 Closes: https://bugs.gentoo.org/943811 Closes: https://bugs.gentoo.org/943809 Closes: https://bugs.gentoo.org/943753 Closes: https://bugs.gentoo.org/943715 Closes: https://bugs.gentoo.org/943704 Closes: https://bugs.gentoo.org/942958 Signed-off-by: Sam James <sam@gentoo.org> ...llow-bool-and-enum-null-pointer-constants.patch | 244 +++++++++++++++++++++ sys-devel/gcc/gcc-15.0.0_pre20241117-r2.ebuild | 54 +++++ 2 files changed, 298 insertions(+)