[4.10 Regression] ICE building libjava (verify_flow_info failed) on aarch64-linux-gnu

Bug #1315365 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
New
Undecided
Unassigned
gcc
Fix Released
Medium
gcc-snapshot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

libjava fails to build on aarch64-linux gnu with trunk 20140425, works with the
4.9 branch.

../../../src/libjava/interpret.cc: In static member function 'static void
_Jv_InterpMethod::run(void*, ffi_java_raw*, _Jv_InterpMethod*)':
../../../src/libjava/interpret.cc:991:1: error: missing REG_EH_REGION note at
the end of bb 961
 }
 ^
../../../src/libjava/interpret.cc:991:1: error: missing REG_EH_REGION note at
the end of bb 944
../../../src/libjava/interpret.cc:991:1: internal compiler error:
verify_flow_info failed
/bin/bash ./libtool --tag=FC --mode=compile
/build/buildd/gcc-snapshot-20140425/build/./gcc/gfortran
-B/build/buildd/gcc-snapshot-20140425/build/./gcc/
-B/usr/lib/gcc-snapshot/aarch64-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/aarch64-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/aarch64-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/aarch64-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
-I../../../src/libgfortran -iquote../../../src/libgfortran/io
-I../../../src/libgfortran/../gcc -I../../../src/libgfortran/../gcc/config
-I../.././gcc -I../../../src/libgfortran/../libgcc -I../libgcc -I . -Wall
-Werror -fimplicit-none -fno-repack-arrays -fno-underscoring
-fallow-leading-underscore -g -O2 -c -o _asin_r10.lo `test -f
'../../../src/libgfortran/generated/_asin_r10.F90' || echo
'../../../src/libgfortran/'`../../../src/libgfortran/generated/_asin_r10.F90
libtool: compile: /build/buildd/gcc-snapshot-20140425/build/./gcc/xgcc
-shared-libgcc -B/build/buildd/gcc-snapshot-20140425/build/./gcc -nostdinc++
-L/build/buildd/gcc-snapshot-20140425/build/aarch64-linux-gnu/libstdc++-v3/src
-L/build/buildd/gcc-snapshot-20140425/build/aarch64-linux-gnu/libstdc++-v3/src/.libs
-L/build/buildd/gcc-snapshot-20140425/build/aarch64-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/lib/gcc-snapshot/aarch64-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/aarch64-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/aarch64-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/aarch64-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
-I../../../src/libjava -I./include -I./gcj -I../../../src/libjava -Iinclude
-I../../../src/libjava/include -I../../../src/libjava/classpath/include
-Iclasspath/include -I../../../src/libjava/classpath/native/fdlibm
-I../../../src/libjava/../boehm-gc/include -I../boehm-gc/include
-I../../../src/libjava/libltdl -I../../../src/libjava/libltdl
-I../../../src/libjava/.././libjava/../libgcc
-I../../../src/libjava/../libffi/include -I../libffi/include -fno-rtti
-fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE
-DPREFIX=\"/usr/lib/gcc-snapshot\"
-DTOOLEXECLIBDIR=\"/usr/lib/gcc-snapshot/lib/../lib\"
-DJAVA_HOME=\"/usr/lib/jvm/java-1.5.0-gcj-4.1-snap-arm64/jre\"
-DBOOT_CLASS_PATH=\"/usr/lib/jvm/java-1.5.0-gcj-4.1-snap-arm64/jre/lib/rt.jar\"
-DJAVA_EXT_DIRS=\"/usr/lib/gcc-snapshot/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/usr/lib/gcc-snapshot/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/usr/lib/gcc-snapshot/lib/../lib/gcj-4.10.0-15\"
-DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"/usr/share/java/eclipse-ecj.jar\"
-DLIBGCJ_DEFAULT_DATABASE=\"/usr/lib/gcc-snapshot/lib/../lib/gcj-4.10.0-15/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.10.0-15/classmap.db\" -g -O2
-D_GNU_SOURCE -MT gnu/gcj/util/natDebug.lo -MD -MP -MF
gnu/gcj/util/.deps/natDebug.Tpo -c
../../../src/libjava/gnu/gcj/util/natDebug.cc -fPIC -DPIC -o
gnu/gcj/util/.libs/natDebug.o
0x8590e7 verify_flow_info()
    ../../src/gcc/cfghooks.c:260
0xaf037f execute_function_todo
    ../../src/gcc/passes.c:1789
0xaf0b8f do_per_function
    ../../src/gcc/passes.c:1504
0xaf0d7f execute_todo
    ../../src/gcc/passes.c:1817
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.

Revision history for this message
In , Doko-v (doko-v) wrote :
Download full text (3.8 KiB)

libjava fails to build on aarch64-linux gnu with trunk 20140425, works with the 4.9 branch.

../../../src/libjava/interpret.cc: In static member function 'static void _Jv_InterpMethod::run(void*, ffi_java_raw*, _Jv_InterpMethod*)':
../../../src/libjava/interpret.cc:991:1: error: missing REG_EH_REGION note at the end of bb 961
 }
 ^
../../../src/libjava/interpret.cc:991:1: error: missing REG_EH_REGION note at the end of bb 944
../../../src/libjava/interpret.cc:991:1: internal compiler error: verify_flow_info failed
/bin/bash ./libtool --tag=FC --mode=compile /build/buildd/gcc-snapshot-20140425/build/./gcc/gfortran -B/build/buildd/gcc-snapshot-20140425/build/./gcc/ -B/usr/lib/gcc-snapshot/aarch64-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/aarch64-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/aarch64-linux-gnu/include -isystem /usr/lib/gcc-snapshot/aarch64-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../src/libgfortran -iquote../../../src/libgfortran/io -I../../../src/libgfortran/../gcc -I../../../src/libgfortran/../gcc/config -I../.././gcc -I../../../src/libgfortran/../libgcc -I../libgcc -I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring -fallow-leading-underscore -g -O2 -c -o _asin_r10.lo `test -f '../../../src/libgfortran/generated/_asin_r10.F90' || echo '../../../src/libgfortran/'`../../../src/libgfortran/generated/_asin_r10.F90
libtool: compile: /build/buildd/gcc-snapshot-20140425/build/./gcc/xgcc -shared-libgcc -B/build/buildd/gcc-snapshot-20140425/build/./gcc -nostdinc++ -L/build/buildd/gcc-snapshot-20140425/build/aarch64-linux-gnu/libstdc++-v3/src -L/build/buildd/gcc-snapshot-20140425/build/aarch64-linux-gnu/libstdc++-v3/src/.libs -L/build/buildd/gcc-snapshot-20140425/build/aarch64-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/lib/gcc-snapshot/aarch64-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/aarch64-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/aarch64-linux-gnu/include -isystem /usr/lib/gcc-snapshot/aarch64-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../src/libjava -I./include -I./gcj -I../../../src/libjava -Iinclude -I../../../src/libjava/include -I../../../src/libjava/classpath/include -Iclasspath/include -I../../../src/libjava/classpath/native/fdlibm -I../../../src/libjava/../boehm-gc/include -I../boehm-gc/include -I../../../src/libjava/libltdl -I../../../src/libjava/libltdl -I../../../src/libjava/.././libjava/../libgcc -I../../../src/libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/lib/gcc-snapshot\" -DTOOLEXECLIBDIR=\"/usr/lib/gcc-snapshot/lib/../lib\" -DJAVA_HOME=\"/usr/lib/jvm/java-1.5.0-gcj-4.1-snap-arm64/jre\" -DBOOT_CLASS_PATH=\"/usr/lib/jvm/java-1.5.0-gcj-4.1-snap-arm64/jre/lib/rt.jar\" -DJAVA_EXT_DIRS=\"/usr/lib/gcc-snapshot/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/usr/lib/gcc-snapshot/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/usr/lib/gcc-snapshot/lib/../lib/gcj-4.10.0-15\" -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"/usr/share/java/eclipse-ecj.jar\" -DLIBGCJ_DEFAULT_DATABASE=\"/usr/lib/gcc-snapshot/lib/../lib/gcj-4.10.0-15/classmap.db\" -DLIBGCJ_DEFAU...

Read more...

Matthias Klose (doko)
Changed in gcc-snapshot (Ubuntu):
status: New → Confirmed
Changed in gcc:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
In , Rguenth (rguenth) wrote :

Likely caused by extended checking. Works with x86_64.

Revision history for this message
In , Yufeng-a (yufeng-a) wrote :

The failure seems a bit random; it is fine in my local environment with r210436 (trunk 20140514), but after I applied a patch in order to do the bootstrapping test on aarch64, I got the exactly same error.

Revision history for this message
In , Doko-v (doko-v) wrote :

builds again on the trunk

Revision history for this message
Matthias Klose (doko) wrote :

works again on the trunk

Changed in gcc-snapshot (Ubuntu):
status: Confirmed → Fix Released
Changed in gcc:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.