internal compiler error: in final_scan_insn, at final.c:2952

Bug #1464234 reported by Norvald H. Ryeng
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.9 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Seen with g++ (Ubuntu/Linaro 4.9.2-10ubuntu13) 4.9.2 on Ubuntu 15.04 when compiling MySQL 5.7.7-rc.

It compiles if I set -O1 for btr0btr.cc and -O0 for gis0sea.cc.

See bug #1353729 for a similar case that has been fixed.

~/mysql-5.7.7-rc/build$ cmake .. -DWITH_BOOST=~/boost ### Boost 1.57 headers, unpack the tarball in ~/boost
~/mysql-5.7.7-rc/build$ make VERBOSE=1 -i

[...]

[ 38%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o
cd /home/nryeng/mysql-5.7.7-rc/build/storage/innobase && /usr/bin/c++ -DCOMPILER_HINTS -DHAVE_CONFIG_H -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_IB_LINUX_FUTEX=1 -DHAVE_NANOSLEEP=1 -DHAVE_SCHED_GETCPU=1 -DLINUX_NATIVE_AIO=1 -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -I/home/nryeng/mysql-5.7.7-rc/build/include -I/home/nryeng/mysql-5.7.7-rc/extra/rapidjson/include -I/home/nryeng/mysql-5.7.7-rc/build/libbinlogevents/include -I/home/nryeng/mysql-5.7.7-rc/libbinlogevents/export -I/home/nryeng/mysql-5.7.7-rc/storage/innobase/include -I/home/nryeng/mysql-5.7.7-rc/storage/innobase/handler -I/home/nryeng/mysql-5.7.7-rc/libbinlogevents/include -I/home/nryeng/mysql-5.7.7-rc/include -I/home/nryeng/mysql-5.7.7-rc/sql -I/home/nryeng/mysql-5.7.7-rc/sql/auth -I/home/nryeng/mysql-5.7.7-rc/regex -I/home/nryeng/mysql-5.7.7-rc/extra/yassl/include -I/home/nryeng/mysql-5.7.7-rc/extra/yassl/taocrypt/include -I/home/nryeng/mysql-5.7.7-rc/zlib -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/btr/btr0btr.cc.o -c /home/nryeng/mysql-5.7.7-rc/storage/innobase/btr/btr0btr.cc
/home/nryeng/mysql-5.7.7-rc/storage/innobase/btr/btr0btr.cc: In function ‘bool btr_validate_level(dict_index_t*, const trx_t*, ulint, bool)’:
/home/nryeng/mysql-5.7.7-rc/storage/innobase/btr/btr0btr.cc:5001:1: error: could not split insn
 }
 ^
(insn:TI 4049 12643 12652 (parallel [
            (set (reg:DI 0 x0 [orig:840 D.96053 ] [840])
                (plus:DI (mem/v:DI (reg/f:DI 28 x28 [2112]) [-1 S8 A64])
                    (const_int 536870912 [0x20000000])))
            (set (mem/v:DI (reg/f:DI 28 x28 [2112]) [-1 S8 A64])
                (unspec_volatile:DI [
                        (mem/v:DI (reg/f:DI 28 x28 [2112]) [-1 S8 A64])
                        (const_int 536870912 [0x20000000])
                        (const_int 5 [0x5])
                    ] UNSPECV_ATOMIC_OP))
            (clobber (reg:CC 66 cc))
            (clobber (reg:SI 1 x1 [2201]))
        ]) /home/nryeng/mysql-5.7.7-rc/storage/innobase/include/sync0rw.ic:310 2409 {atomic_add_fetchdi}
     (expr_list:REG_UNUSED (reg:CC 66 cc)
        (expr_list:REG_UNUSED (reg:SI 1 x1 [2201])
            (nil))))
/home/nryeng/mysql-5.7.7-rc/storage/innobase/btr/btr0btr.cc:5001:1: internal compiler error: in final_scan_insn, at final.c:2952
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccLtmlZk.out file, please attach this to your bugreport.
storage/innobase/CMakeFiles/innobase.dir/build.make:100: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o' failed
make[2]: [storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o] Error 1 (ignored)

[...]

[ 40%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/gis/gis0sea.cc.o
cd /home/nryeng/mysql-5.7.7-rc/build/storage/innobase && /usr/bin/c++ -DCOMPILER_HINTS -DHAVE_CONFIG_H -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_IB_LINUX_FUTEX=1 -DHAVE_NANOSLEEP=1 -DHAVE_SCHED_GETCPU=1 -DLINUX_NATIVE_AIO=1 -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -I/home/nryeng/mysql-5.7.7-rc/build/include -I/home/nryeng/mysql-5.7.7-rc/extra/rapidjson/include -I/home/nryeng/mysql-5.7.7-rc/build/libbinlogevents/include -I/home/nryeng/mysql-5.7.7-rc/libbinlogevents/export -I/home/nryeng/mysql-5.7.7-rc/storage/innobase/include -I/home/nryeng/mysql-5.7.7-rc/storage/innobase/handler -I/home/nryeng/mysql-5.7.7-rc/libbinlogevents/include -I/home/nryeng/mysql-5.7.7-rc/include -I/home/nryeng/mysql-5.7.7-rc/sql -I/home/nryeng/mysql-5.7.7-rc/sql/auth -I/home/nryeng/mysql-5.7.7-rc/regex -I/home/nryeng/mysql-5.7.7-rc/extra/yassl/include -I/home/nryeng/mysql-5.7.7-rc/extra/yassl/taocrypt/include -I/home/nryeng/mysql-5.7.7-rc/zlib -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/gis/gis0sea.cc.o -c /home/nryeng/mysql-5.7.7-rc/storage/innobase/gis/gis0sea.cc
/home/nryeng/mysql-5.7.7-rc/storage/innobase/gis/gis0sea.cc: In function ‘bool rtr_pcur_getnext_from_path(const dtuple_t*, page_cur_mode_t, btr_cur_t*, ulint, ulint, bool, mtr_t*)’:
/home/nryeng/mysql-5.7.7-rc/storage/innobase/gis/gis0sea.cc:459:1: error: could not split insn
 }
 ^
(insn:TI 3516 12653 12655 (parallel [
            (set (reg:DI 0 x0 [orig:351 D.96527 ] [351])
                (plus:DI (mem/v:DI (reg/f:DI 27 x27 [1728]) [-1 S8 A64])
                    (const_int 536870912 [0x20000000])))
            (set (mem/v:DI (reg/f:DI 27 x27 [1728]) [-1 S8 A64])
                (unspec_volatile:DI [
                        (mem/v:DI (reg/f:DI 27 x27 [1728]) [-1 S8 A64])
                        (const_int 536870912 [0x20000000])
                        (const_int 5 [0x5])
                    ] UNSPECV_ATOMIC_OP))
            (clobber (reg:CC 66 cc))
            (clobber (reg:SI 1 x1 [2026]))
        ]) /home/nryeng/mysql-5.7.7-rc/storage/innobase/include/sync0rw.ic:310 2409 {atomic_add_fetchdi}
     (expr_list:REG_UNUSED (reg:CC 66 cc)
        (expr_list:REG_UNUSED (reg:SI 1 x1 [2026])
            (nil))))
/home/nryeng/mysql-5.7.7-rc/storage/innobase/gis/gis0sea.cc:459:1: internal compiler error: in final_scan_insn, at final.c:2952
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc3pgo1B.out file, please attach this to your bugreport.
storage/innobase/CMakeFiles/innobase.dir/build.make:1135: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/gis/gis0sea.cc.o' failed
make[2]: [storage/innobase/CMakeFiles/innobase.dir/gis/gis0sea.cc.o] Error 1 (ignored)

Revision history for this message
Norvald H. Ryeng (nryeng) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

We have no plans for a stable release update of the compiler in Ubuntu 15.04, and Ubuntu 15.10 will use gcc 5.0 by default (not gcc 4.9). If this bug is reproducible with gcc-5.0, please open a bug task against the gcc-5 package.

Note that gcc-5 is not /yet/ the default in wily, so you would need to install and invoke g++-5 by hand.

Changed in gcc-4.9 (Ubuntu):
status: New → Won't Fix
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.