ICE with gcc-7.1.0-r1 $ emerge --info Portage 2.3.6 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-7.1.0, glibc-2.24-r3, 4.11.3-gentoo x86_64) ================================================================= System uname: Linux-4.11.3-gentoo-x86_64-Intel-R-_Core-TM-_i3-4010U_CPU_@_1.70GHz-with-gentoo-2.4.1 KiB Mem: 8107748 total, 155288 free KiB Swap: 16777212 total, 14706316 free Timestamp of repository gentoo: Tue, 04 Jul 2017 20:45:01 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 ccache version 3.3.4 [enabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r2::gentoo dev-lang/python: 2.7.13::gentoo, 3.5.3::gentoo dev-util/ccache: 3.3.4::gentoo dev-util/cmake: 3.8.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1::gentoo sys-apps/openrc: 0.26.2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r3::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1::gentoo sys-devel/binutils: 2.27::gentoo, 2.28-r2::gentoo sys-devel/gcc: 6.3.0::gentoo, 7.1.0-r1::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.ru.gentoo.org/gentoo-portage priority: -1000 crossdev location: /usr/local/crossdev masters: gentoo alexxy location: /var/lib/layman/alexxy sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/dev/alexxy.git masters: gentoo priority: 50 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: https://github.com/gentoo/kde.git masters: gentoo priority: 50 science location: /var/lib/layman/science sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/sci.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -mavx2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/i2pd/certificates" 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="-O2 -pipe -march=native -mtune=native -mfpmath=sse -mavx2" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -mavx2" FEATURES="assume-digests binpkg-logs candy ccache cgroup config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -mavx2" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" 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" USE="64bit X a52 aac acl acpi addressbook alsa amd64 attrib audit avahi avx avx2 avx256 bash-completion berkdb blas bluetooth branding bzip2 cairo caps cdda cli colord consolekit context cracklib crypt cups cvs cxx cyrillic dbus declarative detex device-mapper dhcp dhcpcd dirac djvu dri dts dvd dvdr dvi2tty dvipdfm eap-tls ebook embed_data_files emboss enca encode exif expoblending extensions extra extras faac faad fam fbcondecor fbsplash ffmpeg fftw firefox flac fma fontconfig fortran games gdbm geolocation gif gimp git glamor gmp gnuplot gnutls gpg gphoto2 gps gpu graphics graphite graphviz gstreamer gtk gtk3 hdaps hdf5 hscolour humanities iconsets iconv icu id3tag imagemagick inotify iproute2 ipv6 irc jabber jadetex java jbig jingle jpeg kde kipi kpathsea kwallet lapack laptop lastfm latex latex3 lcms ldap lensfun libnotify libv4l libv4l2 lm_sensors lto luatex lvm lzma mad matroska mktemp mng modemmanager modules mp3 mp4 mpeg mplayer msms multilib multimedia music mysql natspec ncurses netlink networkmanager nls nptl nsplugin ntp ogg omega openexr opengl openmp oscar otr pam pam_ssh pango pcre pdf phonon pkcs11 plasma plotutils plugins pm-utils png policykit postscript povray ppds ps pstricks publishers pulseaudio qemu qml qt3support qt4 qt5 rar raw rdesktop readline realtime redeyes resolvconf romio rtsp schroedinger science script sctp sdl seccomp semantic-desktop session sip skins skype smp speex spell sse3 sse4 ssh ssl ssse3 stars startup-notification stream svg symlink syslog szip taglib tcpd telepathy tex4ht theora threads thumbnail tiff tk tools truetype twolame udev udisks unicode upnp upower urandom usb utils v4l v4l2 vaapi vde vdpau vhost-net video videos vim vim-syntax vlc vlm vnc vorbis vpx wayland widgets wifi wmf wxwidgets x264 xattr xcb xcomposite xetex xindy xinerama xml xmlpatterns xmp xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics libinput" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 481976 [details] build.log build.log
Alexey, thank you for your bug reports. Tickets will be assigned even faster, if you assign your own tickets directly as author. We prepared a JavaScript plugin [1] for greasemonkey [2] which makes this very fast and easy. [1] https://github.com/mgorny/bug-assign-user-js [2] https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
Did you try to build it without ccache ?
As I expected I couldn't reproduce compiler crash without ccache feature. I would propose to check $FEATURES for ccache flag and disable it for icedtea.
(In reply to Alexei Kharitonov from comment #4) > As I expected I couldn't reproduce compiler crash without ccache feature. I > would propose to check $FEATURES for ccache flag and disable it for icedtea. It already warns about it right at the start. OpenJDK actually promotes ccache despite the issues so we didn't want to disable it unconditionally.
(In reply to James Le Cuirot from comment #5) > (In reply to Alexei Kharitonov from comment #4) > > As I expected I couldn't reproduce compiler crash without ccache feature. I > > would propose to check $FEATURES for ccache flag and disable it for icedtea. > > It already warns about it right at the start. OpenJDK actually promotes > ccache despite the issues so we didn't want to disable it unconditionally. I wouldn't be so sure of that. I think a more accurate interpretation would be Oracle don't bother doing anything much with the build system in released versions. In 9, you'll find: changeset: 953:a757bcc8bbe4 user: ihse date: Wed Jan 29 11:04:37 2014 +0100 summary: 8027584: Disable ccache by default which includes - if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then - printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n" - printf "$CCACHE_HELP_MSG\n" - HELP_MSG_MISSING_DEPENDENCY([ccache]) - printf "$HELP_MSG\n" - printf "\n" - fi - I'm for disabling it FWIW.
(In reply to Andrew John Hughes from comment #6) > (In reply to James Le Cuirot from comment #5) > > (In reply to Alexei Kharitonov from comment #4) > > > As I expected I couldn't reproduce compiler crash without ccache feature. I > > > would propose to check $FEATURES for ccache flag and disable it for icedtea. > > > > It already warns about it right at the start. OpenJDK actually promotes > > ccache despite the issues so we didn't want to disable it unconditionally. > > I wouldn't be so sure of that. I think a more accurate interpretation would > be Oracle don't bother doing anything much with the build system in released > versions. In 9, you'll find: > > changeset: 953:a757bcc8bbe4 > user: ihse > date: Wed Jan 29 11:04:37 2014 +0100 > summary: 8027584: Disable ccache by default > > which includes > > - if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = > "xno"; then > - printf "Build performance tip: ccache gives a tremendous speedup for > C++ recompilations.\n" > - printf "$CCACHE_HELP_MSG\n" > - HELP_MSG_MISSING_DEPENDENCY([ccache]) > - printf "$HELP_MSG\n" > - printf "\n" > - fi > - > > I'm for disabling it FWIW. Agree, otherwise bugs will be posted after every new version bump in tree. If it is evident that ccache forces the build process to fail and we know about it ahead, then I don't see printint warning message only as rational, even if it is a workaround and bug is hidden in compiler itself.
*** Bug 609986 has been marked as a duplicate of this bug. ***
Does it help to clean ccache? Will the ICE still occur afterwards on 2nd compilation while using new cache entries?
The bug can be reproduced on my end with FEATURES=ccache USE=pch (in a profile in which "pch" isn't masked). The problem seems to be a conflict between icedtea's/openjdk's usage of ccache and Gentoo's. Openjdk does not support any ccache wrappers (see http://mail.openjdk.java.net/pipermail/build-dev/2016-February/016563.html). Testing with a modified ebuild showed that if FEATURES=ccache and USE=pch is set but "--disable-ccache" is passed to configure, the build succeeds. Similarly if FEATURES=-ccache and USE=pch is set, and "--enable-ccache" is passed to configure, the build succeeds. Hopefully someone else can confirm this. Maybe "--disable-ccache" should be unconditionally passed. AFAIK, portage's ccache wrappers still work fine.
(In reply to Peter Levine from comment #10) > Similarly if FEATURES=-ccache and USE=pch is set, and "--enable-ccache" is > passed to configure, the build succeeds. Actually, this was a mistake. > Maybe "--disable-ccache" should be unconditionally passed. AFAIK, portage's > ccache wrappers still work fine. Nevermind. The cache isn't being generated when "--disable-ccache" is passed so it appears "--enable-ccache" is needed. The actual line causing the ICE is: CCACHE_COMPRESS=1 CCACHE_SLOPPINESS=time_macros /usr/bin/ccache /usr/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/share/vm -I/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.161-b12\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"portage\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea 3.7.0\"" -DDISTRIBUTION_ID="\"Gentoo Base System release 2.4.1, package Gentoo icedtea-3.7.0\"" -march=skylake -O2 -pipe -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -fno-strict-aliasing -g -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -fno-strict-aliasing -g -fno-omit-frame-pointer -O3 -DVM_LITTLE_ENDIAN -D_LP64=1 -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -march=skylake -O2 -pipe -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/adaptiveFreeList.o.d -fpch-deps -o adaptiveFreeList.o /var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.cpp From https://ccache.samba.org/manual.html#_precompiled_headers: > use the -include compiler option to include the precompiled header > (i.e., don’t use #include in the source code to include the header); If, after build failure, I move to the directory that the build failed in (`cd /var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk.build-boot/hotspot/linux_amd64_compiler2/product`) and I add '-include /var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/share/vm/precompiled/precompiled.hpp' to the offending command line above, there is no ICE.
*** Bug 658064 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d7a236e7ef784335d49acaba02ad4127df32377 commit 9d7a236e7ef784335d49acaba02ad4127df32377 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2018-06-28 22:13:20 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2018-06-28 22:13:20 +0000 dev-java/icedtea: Disable ccache unconditionally as it always breaks Closes: https://bugs.gentoo.org/624230 Package-Manager: Portage-2.3.41, Repoman-2.3.9 dev-java/icedtea/icedtea-3.8.0.ebuild | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)