Created attachment 904632 [details] build.log.xz make[3]: Leaving directory '/var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/build/gcc' /usr/x86_64-pc-linux-gnu/bin/ld.bfd: ada/ali-util.o: in function `ali__util__style__check_no_space_afterXn': /var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/gcc-13-20240927/gcc/ada/styleg.adb:1143:(.text+0x1c7): undefined reference to `__builtin_clear_padding' /usr/x86_64-pc-linux-gnu/bin/ld.bfd: ada/ali-util.o: in function `ali__util__scanner__scan__slit__error_bad_string_char.8': /var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/gcc-13-20240927/gcc/ada/scng.adb:850:(.text+0x251): undefined reference to `__builtin_clear_padding' /usr/x86_64-pc-linux-gnu/bin/ld.bfd: /var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/gcc-13-20240927/gcc/ada/scng.adb:847:(.text+0x29a): undefined reference to `__builtin_clear_padding' /usr/x86_64-pc-linux-gnu/bin/ld.bfd: /var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/gcc-13-20240927/gcc/ada/scng.adb:844:(.text+0x2ca): undefined reference to `__builtin_clear_padding' /usr/x86_64-pc-linux-gnu/bin/ld.bfd: /var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/gcc-13-20240927/gcc/ada/scng.adb:841:(.text+0x2f7): undefined reference to `__builtin_clear_padding' /usr/x86_64-pc-linux-gnu/bin/ld.bfd: ada/ali-util.o:/var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/gcc-13-20240927/gcc/ada/scng.adb:389: more undefined references to `__builtin_clear_padding' follow collect2: error: ld returned 1 exit status make[3]: *** [/var/tmp/portage.notmp/portage/sys-devel/gcc-13.3.1_p20240927/work/gcc-13-20240927/gcc/ada/gcc-interface/Make-lang.in:764: gnatbind] Error 1 make[3]: *** Waiting for unfinished jobs.... --- Portage 3.0.66.1-2+g376ab2c56-dirty (python 3.13.0-candidate-2, default/linux/amd64/23.0/hardened, gcc-14, glibc-2.40-r3, 6.6.53-adry x86_64) ================================================================= System uname: Linux-6.6.53-adry-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-11800H_@_2.30GHz-with-glibc2.40 KiB Mem: 32580044 total, 1068844 free KiB Swap: 8388604 total, 8388348 free Timestamp of repository gentoo: Tue, 01 Oct 2024 23:48:55 +0000 Head commit of repository gentoo: 4136592a21b125ac3a5b7f7c87cf9918c4c0c18d Timestamp of repository emacs: Tue, 24 Sep 2024 12:19:08 +0000 Head commit of repository emacs: c9ffcecf6a114ab59bc4719cdbd692bcb4eca35c Timestamp of repository kde: Wed, 25 Sep 2024 23:33:53 +0000 Head commit of repository kde: 568cf4c851057d9de94c7b47673830acfd2df993 Timestamp of repository qt: Sun, 08 Sep 2024 18:36:41 +0000 Head commit of repository qt: 11a7cd8e7447586b6106f02bf6f9ac4934f9375c sh bash 5.3_alpha_p20240927 ld GNU ld (Gentoo 9999 p1) 2.43.50.20241001 ccache version 4.10.2 [disabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.3_alpha_p20240927::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.30.4::gentoo dev-build/libtool: 2.5.3::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.5.2::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 2.7.18_p16-r2::gentoo, 3.10.15_p1::gentoo, 3.11.10_p1::gentoo, 3.12.6_p4::gentoo, 3.13.0_rc2_p2::gentoo dev-lang/rust: 1.81.0::gentoo dev-util/ccache: 4.10.2::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.55.1::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.42-r2::gentoo, 2.43-r1::gentoo, 9999::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 17.0.6::gentoo, 18.1.8::gentoo, 19.1.0::gentoo sys-devel/gcc: 11.5.0::gentoo, 12.4.1_p20240926::gentoo, 13.3.1_p20240927::gentoo, 14.2.1_p20240928::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo, 19.1.0::gentoo sys-devel/llvm: 17.0.6-r3::gentoo, 18.1.8-r4::gentoo, 19.1.0::gentoo sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False sync-git-verify-commit-signature: yes sync-git-clone-extra-opts: -b stable -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now emacs location: /var/db/repos/emacs sync-type: git sync-uri: https://github.com/gentoo-mirror/emacs.git masters: gentoo volatile: False kde location: /var/db/repos/kde sync-type: git sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo volatile: False local location: /var/db/repos/local masters: gentoo volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo volatile: False sam_c location: /home/sjames/git/overlay masters: gentoo volatile: True Installed sets: @sam-emacs, @sam-fonts, @sam-fortune ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--keep-going=y --complete-graph --deep --changed-deps-report=y --usepkg=y --usepkg-exclude nvidia-drivers --usepkg-exclude gentoo-kernel --implicit-system-deps=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="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg clean-logs compressdebug config-protect-if-modified dedupdebug distlocks downgrade-backup ebuild-locks fixlafiles installsources ipc-sandbox merge-wait mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" GENTOO_MIRRORS="https://www.mirrorservice.org/sites/distfiles.gentoo.org/ https://mirror.bytemark.co.uk/gentoo/ https://mirrors.soeasyto.com/distfiles.gentoo.org/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en en_GB en_US" MAKEOPTS="-j16" PKGDIR="/var/cache/binpkgs" PORTAGE_COMPRESS="xz" 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" RUSTFLAGS="-C target-cpu=native -C link-arg=-Wl,-z,pack-relative-relocs" SHELL="/bin/bash" USE="PIC X a52 aac acl acpi activities aes alsa amd64 avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl bash-completion bluetooth branding bzip2 cairo caps cdda cdr cet clang crypt dbus declarative dist-kernel dri dts dvd dvdr elogind emacs encode exif f16c flac fma3 fortran gdbm gif gles2 gmp gpm graphite gtk gui hardened hunspell iconv icu ipv6 iwd jit jpeg kde kf6compat kwallet lcms libnotify libtirpc lto mad mmx mmxext mng modules-compress mp3 mp4 mpeg multilib ncurses networkmanager ogg opengl openmp pam pango pclmul pcre pdf pgo pic pie pipewire plasma png policykit popcnt ppds pulseaudio qml qt5 qt6 rdrand readline screencast sdl seccomp semantic-desktop sha smartcard sound spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg syslog system-av1 system-binutils system-boost system-bootstrap system-cairo system-clang system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-leveldb system-libevent system-libs system-libvpx system-libyaml system-llvm system-lz4 system-mitkrb5 system-sqlite system-ssl system-tbb system-uulib system-webp system-zlib test-rust tiff truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland widgets x264 xattr xcb xft xml xtpax xv xvid zlib zsh-completion zstd" ABI_X86="32 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="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="18" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_10 python3_11 python3_13" RUBY_TARGETS="ruby31 ruby32 ruby33" VIDEO_CARDS="intel i965 iris 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, 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_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
I don't understand yet why I'm only seeing this on one machine.
Why is __builtin_clear_padding even being emitted as a reference and not expanded?
The symbol isn't actually used? ada/sinput-c.o: file format elf64-x86-64 SYMBOL TABLE: 0000000000000000 l df *ABS* 0000000000000000 sinput-c.adb 0000000000000000 l d .text 0000000000000000 .text 0000000000000000 l d .rodata 0000000000000000 .rodata 0000000000000000 l d .debug_info 0000000000000000 .debug_info 0000000000000000 l d .debug_abbrev 0000000000000000 .debug_abbrev 0000000000000000 l d .debug_loclists 0000000000000000 .debug_loclists 0000000000000000 l d .debug_rnglists 0000000000000000 .debug_rnglists 0000000000000000 l d .debug_line 0000000000000000 .debug_line 0000000000000000 l d .debug_str 0000000000000000 .debug_str 0000000000000000 l d .debug_line_str 0000000000000000 .debug_line_str 0000000000000000 l .rodata.cst16 0000000000000000 .LC7 0000000000000000 l .rodata.cst8 0000000000000000 .LC9 0000000000000000 l .rodata.str1.8 0000000000000000 .LC4 0000000000000000 l .rodata.str1.1 0000000000000000 .LC5 0000000000000000 g F .text 0000000000000532 sinput__c__load_file 0000000000000000 *UND* 0000000000000000 __builtin_clear_padding 0000000000000000 *UND* 0000000000000000 sinput__source_file__increment_last 0000000000000000 *UND* 0000000000000000 sinput__source_file__last 0000000000000000 *UND* 0000000000000000 debug__debug_flag_l 0000000000000000 *UND* 0000000000000000 sinput__source_file__table 0000000000000000 *UND* 0000000000000000 namet__global_name_buffer 0000000000000000 *UND* 0000000000000000 memmove 0000000000000000 *UND* 0000000000000000 namet__name_find 0000000000000000 *UND* 0000000000000000 system__os_lib__open_read__2 0000000000000000 *UND* 0000000000000000 __gnat_file_length_long 0000000000000000 *UND* 0000000000000000 __gnat_malloc 0000000000000000 *UND* 0000000000000000 system__os_lib__read 0000000000000000 *UND* 0000000000000000 system__os_lib__close__2 0000000000000000 *UND* 0000000000000000 __gnat_dir_separator 0000000000000000 *UND* 0000000000000000 opt__table_factor 0000000000000000 *UND* 0000000000000000 sinput__alloc_line_tables 0000000000000000 *UND* 0000000000000000 sinput__set_source_file_index_table 0000000000000000 *UND* 0000000000000000 output__write_str 0000000000000000 *UND* 0000000000000000 output__write_int 0000000000000000 *UND* 0000000000000000 output__write_line 0000000000000000 *UND* 0000000000000000 sinput__source_file__decrement_last 0000000000000000 *UND* 0000000000000000 __stack_chk_fail 0000000000000000 g O .data 0000000000000002 sinput__c_E
Ha, for gcc:13, I have -ftrivial-auto-var-init=zero patched in by default, so this is totally going to be it. But I still don't get how it is left unresolved?
procedure Error_Space_Not_Allowed (S : Source_Ptr) is begin Error_Msg -- CODEFIX ("(style) space not allowed", S); end Error_Space_Not_Allowed; apparently
procedure Error_Space_Not_Allowed (S : Source_Ptr) is begin Error_Msg -- CODEFIX 1a0: 48 8d 35 00 00 00 00 lea 0x0(%rip),%rsi # 1a7 <ali__util__style__check_no_space_afterXn+0xa7> 1a7: 48 8d 05 00 00 00 00 lea 0x0(%rip),%rax # 1ae <ali__util__style__check_no_space_afterXn+0xae> 1ae: 48 89 e7 mov %rsp,%rdi 1b1: c4 e1 f9 6e c6 vmovq %rsi,%xmm0 1b6: be 01 00 00 00 mov $0x1,%esi 1bb: c4 e3 f9 22 c0 01 vpinsrq $0x1,%rax,%xmm0,%xmm0 1c1: c5 f9 7f 04 24 vmovdqa %xmm0,(%rsp) 1c6: e8 00 00 00 00 call 1cb <ali__util__style__check_no_space_afterXn+0xcb> ("(style) space not allowed", S); end Error_Space_Not_Allowed; 1cb: e9 6e ff ff ff jmp 13e <ali__util__style__check_no_space_afterXn+0x3e> 1d0: 48 ff c0 inc %rax 1d3: eb c2 jmp 197 <ali__util__style__check_no_space_afterXn+0x97> end Check_No_Space_After; 1d5: e8 00 00 00 00 call 1da <ali__util__style__check_no_space_afterXn+0xda> 1da: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
$ gnatmake hello.adb -ftrivial-auto-var-init=zero gcc -c -ftrivial-auto-var-init=zero hello.adb gnatbind -x hello.ali gnatlink hello.ali -ftrivial-auto-var-init=zero /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: b~hello.o: in function `ada_main___elabb': b~hello.adb:(.text+0x578): undefined reference to `__builtin_clear_padding' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: ./hello.o: in function `_ada_hello': hello.adb:(.text+0x3a): undefined reference to `__builtin_clear_padding' collect2: error: ld returned 1 exit status gnatlink: error when calling /usr/bin/gcc gnatmake: *** link failed. Oops!
commit 9001b9d390e02d061785c374b1b5b2c83c29da27 Author: Sam James <sam@gentoo.org> Date: Mon Oct 7 03:48:29 2024 +0100 sys-devel/gcc: add 15.0.0_pre20241006 Closes: https://bugs.gentoo.org/940700 Closes: https://bugs.gentoo.org/940610 Closes: https://bugs.gentoo.org/940344 Signed-off-by: Sam James <sam@gentoo.org>