Hi all! When trying to emerge dev-util/android-tools-31.0.0_p1 the build reproducibly aborts with this error: [109/659] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -Ivendor -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include -O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -MF vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o.d -o vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -c /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp FAILED: vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -Ivendor -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include -O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -MF vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o.d -o vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -c /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp during RTL pass: expand /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp: In member function ‘void android::base::LogdLogger::operator()(android::base::LogId, android::base::LogSeverity, const char*, const char*, unsigned int, const char*)’: /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:330:6: internal compiler error: in expand_expr_real_1, at expr.c:10012 330 | void LogdLogger::operator()(LogId id, LogSeverity severity, const char* tag, const char* file, | ^~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. Reproducible: Always Steps to Reproduce: 1. emerge -1 =dev-util/android-tools-31.0.0_p1
Please post full emerge --info and build.log
Created attachment 724426 [details] emerge --info
Created attachment 724429 [details] build log
I can't confirm it
Just to confirm that this is not unique for Markus, I get exactly the same error and I have 5.13 kernel and Core i5 processor (if full emerge --info from me would be useful, just let me know).
Yes please, post it. When I say i can't confirm it i have to say I'm on a full unstable arch (so with gcc11.1, kernel and headers at 5.13, etc)
Can confirm as well. The line number is slightly different for me: > FAILED: vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -Ivendor -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include -march=core-avx-i -O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -MF vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o.d -o vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -c /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp during RTL pass: expand /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp: In member function 'void android::base::LogdLogger::operator()(android::base::LogId, android::base::LogSeverity, const char*, const char*, unsigned int, const char*)': /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:330:6: internal compiler error: in expand_expr_real_1, at expr.c:10014 330 | void LogdLogger::operator()(LogId id, LogSeverity severity, const char* tag, const char* file, | ^~~~~~~~~~ I'm still on GCC 9 (9.4.0 to be precise). emerge --info output below Portage 3.0.20 (python 3.9.5-final-0, targets/desktop/gnome/3.38, gcc-9.4.0, glibc-2.33-r1, 5.12.14-gentoo-dist x86_64) ================================================================= System uname: Linux-5.12.14-gentoo-dist-x86_64-AMD_Ryzen_5_5600X_6-Core_Processor-with-glibc2.33 KiB Mem: 32853692 total, 4856336 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 17 Jul 2021 16:21:29 +0000 Head commit of repository gentoo: 27d1be7dc9c2c248a96437cfd1237471360721f0 Head commit of repository dantrell-gnome-3-36: 6da0200fdc7f83c2895ca2a7541f107475e80626 Head commit of repository dantrell-gnome-3-38: a33d7b5875b950fa11976cf408f21c33640361b2 Head commit of repository guru: d221b6b83fcdc224935956ce125c09e85ec62fb9 Head commit of repository jorgicio: f9f8a100251b5185c6feda6b6257ebb03f3258ed Head commit of repository matrix: 1f48686bfd3788987df8abb9c60122ca2fe6c2b0 Head commit of repository steam-overlay: c93a9167c9251ceceb6e7ee35cdf636cb59be6f4 Head commit of repository dantrell-gnome: e08e5e8a217a7487f57c11111cd0c39aa2b7eb3c sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 2.7.18_p11::gentoo, 3.7.10_p6::gentoo, 3.9.5_p2::gentoo dev-lang/rust-bin: 1.52.1::gentoo dev-util/cmake: 3.18.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.29-r4::dantrell-gnome sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 9.4.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-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 sync-git-verify-commit-signature: true audio-overlay location: /home/simon/src/gentoo-audio/audio-overlay masters: gentoo priority: 100 dantrell-gnome-3-36 location: /var/db/repos/dantrell-gnome-3-36 sync-type: git sync-uri: https://github.com/dantrell/gentoo-overlay-dantrell-gnome-3-36.git masters: gentoo priority: 100 dantrell-gnome-3-38 location: /var/db/repos/dantrell-gnome-3-38 sync-type: git sync-uri: https://github.com/dantrell/gentoo-overlay-dantrell-gnome-3-38.git masters: gentoo priority: 100 guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo/guru.git masters: gentoo priority: 100 jorgicio location: /var/db/repos/jorgicio sync-type: git sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git masters: gentoo priority: 100 matrix location: /var/db/repos/matrix sync-type: git sync-uri: https://gitlab.com/steils/matrix-overlay.git masters: gentoo priority: 100 simonvanderveldt location: /home/simon/src/simonvanderveldt/simonvanderveldt-overlay masters: gentoo priority: 100 steam-overlay location: /var/db/repos/steam sync-type: git sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo priority: 100 dantrell-gnome location: /var/db/repos/dantrell-gnome sync-type: git sync-uri: https://github.com/dantrell/gentoo-overlay-dantrell-gnome.git masters: gentoo priority: 150 Installed sets: @engineering, @games, @proaudio, @temp, @work ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx-i -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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 /etc/terminfo" CXXFLAGS="-march=core-avx-i -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS=" --buildpkg-exclude 'virtual/* sys-fs/zfs-kmod' --getbinpkg --binpkg-respect-use=y --binpkg-changed-deps=y --verbose-conflicts --tree" 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 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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="-O2 -pipe" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.leaseweb.com/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j10" PKGDIR="/var/cache/binpkgs" PORTAGE_BINHOST="http://server:8081" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="-q --exclude-from=/etc/portage/rsync_excludes" 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="acl aes amd64 avx bzip2 cli colord crypt cups dbus dri elogind fortran gdbm gnome gnome-keyring gnome-online-accounts gtk3 gtkstyle iconv introspection libnotify libtirpc mmx mmxext multilib nautilus ncurses nptl openmp pam pcre policykit popcnt pulseaudio readline seccomp smp split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 tcpd tracker unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="aes avx mmx mmxext popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2" 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" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python2_7" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64" RUBY_TARGETS="ruby26" SANE_BACKENDS="epjitsu" USERLAND="GNU" VIDEO_CARDS="intel i965 iris amdgpu radeonsi" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS
Both of you are using gcc9, have you tried with a newer version (at least 10)?
I've tested gcc 10.3.0-r1, and dev-util/android-tools-31.0.0_p1 compiles fine.
As i thought it is related to GCC version
OK, I can confirm that the error does not occur with gcc-10.3.0. Thanks everyone for looking into it!
So this is a GCC bug? If so I guess there's no point in reporting it upstream since it's fixed in newer releases? Or would it still be good to report it?
I'm not sure if it's really a bug. It could well be just an incompatibility. If android-tools 31 really needs gcc 10, this should be documented in the android-tools build somewhere, and maybe checked for during build configuration. But since eventually everybody will have moved to gcc 10 or 11, I don't think much effort will be put into it. There appears to be a patch for some gcc 11 issues, though: ... eapply "${DISTDIR}/${PN}-fix-gcc11.patch" ...
Seems like GCC >=10 is required https://github.com/nmeum/android-tools/commit/e3c9445eb48ae176f5391644992c96425047a470 Would be good to include that in the ebuild I guess?
Confirm from me as well, with GCC 10 it compiles fine.