dev-lang/gnat-gpl-2021-r1 fails to build in my core2 chroot (previous one : dev-lang/gnat-gpl-2021 builds fine in the same core2 chroot) On the other hand, dev-lang/gnat-gpl-2021-r1 builds just fine on my main system using bdver2. See log attached. Reproducible: Always Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-11.2.0, glibc-2.33-r7, 5.10.76-gentoo-r1-hardened x86_64) ================================================================= System uname: Linux-5.10.76-gentoo-r1-hardened-x86_64-AMD_A10-6800K_APU_with_Radeon-tm-_HD_Graphics-with-glibc2.33 KiB Mem: 32421896 total, 19893360 free KiB Swap: 16777212 total, 16777212 free Timestamp of repository gentoo: Wed, 10 Nov 2021 10:00:01 +0000 Head commit of repository gentoo: 3101d62e01293c6566da41a91d0a08e740bc0e9a Timestamp of repository localrepo: Wed, 03 Nov 2021 00:46:28 +0000 Timestamp of repository menelkir: Tue, 09 Nov 2021 10:53:25 +0000 Head commit of repository menelkir: 3f7b1abff36fe70d13c7a33e348cee5d704e4b13 Timestamp of repository monero: Sun, 31 Oct 2021 19:53:36 +0000 Head commit of repository monero: 202716aa4ffc5115dd4dfff2d92cbdb11dfc12c6 Timestamp of repository mv: Tue, 09 Nov 2021 10:53:05 +0000 Head commit of repository mv: c2710e7fff9458305696cc849efd3383bf66bf35 Head commit of repository xfceclassic: d0fb6a84e27039e76420d6416d1d802a55b80911 Head commit of repository hhoffstaette: efdcf4f93bc21d22771f3803d67ea5b9ba435621 sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r3::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.9.7_p1::gentoo dev-lang/rust: 1.53.0::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.44.7::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 10.3.0-r2::gentoo, 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://home.lan/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes localrepo location: /var/db/repos/localrepo sync-type: rsync sync-uri: rsync://home.lan/localrepo masters: gentoo sync-rsync-extra-opts: menelkir location: /var/db/repos/menelkir sync-type: git sync-uri: https://github.com/gentoo-mirror/menelkir.git masters: gentoo monero location: /var/db/repos/monero sync-type: git sync-uri: https://github.com/gentoo-mirror/monero.git masters: gentoo mv location: /var/db/repos/mv sync-type: git sync-uri: https://github.com/gentoo-mirror/mv.git masters: gentoo xfceclassic location: /var/db/repos/xfceclassic sync-type: git sync-uri: https://github.com/Xfce-Classic/gentoo-overlay masters: gentoo crossdev location: /var/db/repos/crossdev masters: gentoo priority: 10 hhoffstaette location: /var/db/repos/hhoffstaette sync-type: git sync-uri: https://github.com/hhoffstaette/portage.git masters: gentoo priority: 50 Installed sets: @dbuspkg, @fonts, @games, @librsvg, @localrepo, @phone, @themes, @wm, @xfce ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/bin/startx /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer /usr/share/thumbnailers/imagemagick-pdf.thumbnailer" 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="-march=core2 -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use=y" 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="-march=core2 -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg 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=core2 -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/etc/sysctl.d/ /etc/systemd/ /lib/systemd/ /usr/lib/sysctl.d/ /usr/lib/systemd/ /run/systemd/" LANG="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en fr" MAKEOPTS="-j5" 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" USE="X a52 aac acl acpi aio alsa amd64 bzip2 cairo cdda cdr cli crypt cryptsetup cups dbus device-mapper dri dts dvd dvr elogind emboss encode exif fam fftw flac gif gnat_2021 gpm graphite gtk hardened hscolour iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc lto lvm lz4 lzma lzo mad mp3 mp4 mpeg ncurses nfs nls nptl ogg opengl openmp openssl opus otr pam pango pcre pdf pgo pie png policykit ppds readline sdl seccomp sftp split-usr ssh ssl ssp startup-notification svg system-av1 system-binutils system-cairo system-clang system-cmark system-compress system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-images system-jpeg system-jsoncpp system-lcms system-libevent system-libmspack system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-nss system-openjpeg system-pixman system-renpy system-snappy system-sqlite system-tbb system-uulib system-vpx system-zlib sytem-leveldb tiff tk truetype udev udisks unicode upower usb vaapi verify-sig vorbis wayland wxwidgets x264 xattr xcb xml xtpax xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2019" 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 sse4_1 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" L10N="fr" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm armeb i386 x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 crocus" 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: CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Created attachment 750189 [details] dev-lang/gnat-gpl-2021-r1 (build log)
I successfully compiled it using an other core2 gentoo install (not a chroot this time, dedicated hardware) Unfortunately, the issue persists when it is built inside the chroot. As said previously, the previous version, dev-lang/gnat-gpl-2021 builds fine in the core2 chroot so it is very strange..
From build.log: x86_64-pc-linux-gnu-gnatbind -t -I- -I. -Iada/generated -Iada -I/var/tmp/portage/dev-lang/gnat-gpl-2021-r1/work/gcc-10-2021-20210519-19A74-src/gcc/ada -o b_gnat1.adb -n ada/gnat1drv.ali error: "s-imenne.ali" not found, "s-imenne.adb" must be compiled [...] warning: "s-stalib.adb" and "gnat1drv.adb" compiled with different GNAT versions [...] warning: "gnat1drv.adb" should be recompiled ("ada.ads" has been modified) [...] make[3]: *** [/var/tmp/portage/dev-lang/gnat-gpl-2021-r1/work/gcc-10-2021-20210519-19A74-src/gcc/ada/gcc-interface/Make-lang.in:999: ada/b_gnat1.adb] Error 5 Could it be that x86_64-pc-linux-gnu-gnatbind is used that comes from outside the WORKDIR? I wonder if this also happens for a fresh chroot environment with no previous dev-lang/gnat-gpl installed.
(In reply to Tee KOBAYASHI from comment #3) > Could it be that x86_64-pc-linux-gnu-gnatbind is used that comes from > outside the WORKDIR? > > I wonder if this also happens for a fresh chroot environment with no > previous dev-lang/gnat-gpl installed. It does seems to be the case indeed. I uninstalled previous version installed (dev-lang/gnat-gpl-2021) from the chroot then exited the chroot, unmounted the partition, mounted again the partition and entered the chroot again. So this time, there was no gnat-gpl installed of course, only active compiler (sys-devel/gcc-11.2.0) So I ran : emerge -1 =dev-lang/gnat-gpl-2021-r1 It works ! Well, the compilation is still running at the moment but it seems to do the job as it didn't fail early with error ! (If I don't post any new message in the next 3 hours, consider it is working)
Should be fixed now, with r4 version