[Bug 3569] New: Building icedtea-3.7.0 with GCC-7, and with precompiled headers and ccache enabled, results in "internal compiler error: Segmentation fault"

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Thu Apr 5 02:09:10 UTC 2018


https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3569

            Bug ID: 3569
           Summary: Building icedtea-3.7.0 with GCC-7, and with
                    precompiled headers and ccache enabled, results in
                    "internal compiler error: Segmentation fault"
           Product: IcedTea
           Version: unspecified
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: plevine457 at gmail.com
                CC: unassigned at icedtea.classpath.org

Created attachment 1676
  --> https://icedtea.classpath.org/bugzilla/attachment.cgi?id=1676&action=edit
Build log

Building icedtea-3.7.0 on Gentoo Linux with GCC-7.3.0 and --enable-ccache and
--enable-precompiled-headers fails with:

> /var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/share/vm/precompiled/precompiled.hpp:1:0: internal compiler error: Segmentation fault
>  /*

The offending line 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/abstractCompiler.o.d
-fpch-deps -o abstractCompiler.o
/var/tmp/portage/dev-java/icedtea-3.7.0/work/icedtea-3.7.0/openjdk-boot/hotspot/src/share/vm/compiler/abstractCompiler.cpp


Note, if I add `-O0' or  '-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 command above, it doesn't segfault.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180405/6629adbc/attachment.html>


More information about the distro-pkg-dev mailing list