Bug #43494 rt_mbr.c:239: internal error--unrecognizable insn:
Submitted: 9 Mar 2009 10:07 Modified: 27 Apr 2018 11:54
Reporter: fly sky Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:mysql-5.0.77 OS:Linux (arm-linux)
Assigned to: CPU Architecture:Any
Tags: rt_mbr.c:239: internal error--unrecognizable insn:

[9 Mar 2009 10:07] fly sky
Description:
Last weeks I used mysql-3.23.58 to compile. It isn't any problem. Today, I want to use  the version of MySQL to MySQL-5.0.77 to compile it, but when I compile it the follow things happened:
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:146: warning: `uint' previously declared here
../include/my_global.h:474: warning: redefinition of `ushort'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:145: warning: `ushort' previously declared here
source='ft_nlq_search.c' object='ft_nlq_search.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
armv4l-unknown-linux-gcc -DMAP_TO_USE_RAID -I. -I../include -I../include -I../include    -O3 -DDBUG_OFF    -c ft_nlq_search.c
In file included from ../include/my_base.h:25,
                 from ../include/myisam.h:25,
                 from myisamdef.h:18,
                 from fulltext.h:20,
                 from ftdefs.h:20,
                 from ft_nlq_search.c:19:
../include/my_global.h:473: warning: redefinition of `uint'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:146: warning: `uint' previously declared here
../include/my_global.h:474: warning: redefinition of `ushort'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:145: warning: `ushort' previously declared here
source='sort.c' object='sort.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
armv4l-unknown-linux-gcc -DMAP_TO_USE_RAID -I. -I../include -I../include -I../include    -O3 -DDBUG_OFF    -c sort.c
In file included from ../include/my_base.h:25,
                 from ../include/myisam.h:25,
                 from myisamdef.h:18,
                 from fulltext.h:20,
                 from sort.c:21:
../include/my_global.h:473: warning: redefinition of `uint'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:146: warning: `uint' previously declared here
../include/my_global.h:474: warning: redefinition of `ushort'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:145: warning: `ushort' previously declared here
source='rt_index.c' object='rt_index.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
armv4l-unknown-linux-gcc -DMAP_TO_USE_RAID -I. -I../include -I../include -I../include    -O3 -DDBUG_OFF    -c rt_index.c
In file included from ../include/my_base.h:25,
                 from ../include/myisam.h:25,
                 from myisamdef.h:18,
                 from rt_index.c:16:
../include/my_global.h:473: warning: redefinition of `uint'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:146: warning: `uint' previously declared here
../include/my_global.h:474: warning: redefinition of `ushort'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:145: warning: `ushort' previously declared here
source='rt_key.c' object='rt_key.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
armv4l-unknown-linux-gcc -DMAP_TO_USE_RAID -I. -I../include -I../include -I../include    -O3 -DDBUG_OFF    -c rt_key.c
In file included from ../include/my_base.h:25,
                 from ../include/myisam.h:25,
                 from myisamdef.h:18,
                 from rt_key.c:16:
../include/my_global.h:473: warning: redefinition of `uint'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:146: warning: `uint' previously declared here
../include/my_global.h:474: warning: redefinition of `ushort'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:145: warning: `ushort' previously declared here
source='rt_mbr.c' object='rt_mbr.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
armv4l-unknown-linux-gcc -DMAP_TO_USE_RAID -I. -I../include -I../include -I../include    -O3 -DDBUG_OFF    -c rt_mbr.c
In file included from ../include/my_base.h:25,
                 from ../include/myisam.h:25,
                 from myisamdef.h:18,
                 from rt_mbr.c:16:
../include/my_global.h:473: warning: redefinition of `uint'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:146: warning: `uint' previously declared here
../include/my_global.h:474: warning: redefinition of `ushort'
/opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/../../../../armv4l-unknown-linux/include/sys/types.h:145: warning: `ushort' previously declared here
rt_mbr.c: In function `rtree_rect_volume':
rt_mbr.c:239: internal error--unrecognizable insn:
(insn 743 742 751 (set (mem/s:QI (plus:SI (reg:SI 334)
                (subreg:SI (reg:DI 315) 0)) 0)
        (reg:QI 335)) -1 (insn_list 738 (insn_list 742 (nil)))
    (expr_list:REG_DEAD (reg:QI 335)
        (nil)))
make[2]: *** [rt_mbr.o] 错误 1
make[2]: Leaving directory `/home/haojx/Desktop/s3c2410a道斯/kkk/MySQL-community-5.0.77-0.rhel4.src.rpm_FILES/mysql-5.0.77/myisam'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/haojx/Desktop/s3c2410a道斯/kkk/MySQL-community-5.0.77-0.rhel4.src.rpm_FILES/mysql-5.0.77'
make: *** [all] 错误 2
[root@localhost mysql-5.0.77]# uname -a
Linux localhost.localdomain 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686 i386 GNU/Linux

 I used the cross compiler that is arm linux gcc(version is 2.95.2)                                                                                                                                                                                           
But when I used the version of red hat gcc 4.1.0.0      
to compile it, that is all OK.   
 So I don't known how to solve this. Can you teach me how to solve it?
Is it the bug of arm linux gcc's or its version  
too low? Thanks!                                                                                                                                         

How to repeat:
MySQL whether gcc version has it?
[10 Mar 2009 8:13] Sveta Smirnova
Thank you for the report.

I can not repeat described behavior with gcc 2.95.3 Please provide configure  options you used.
[10 Apr 2009 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[20 Jan 2010 8:04] liu xing
I have the same problem:

rt_mbr.c: In function `rtree_rect_volume':
rt_mbr.c:239: internal error--unrecognizable insn:
(insn 743 742 751 (set (mem:QI (plus:SI (reg:SI 334)
                (subreg:SI (reg:DI 315) 0)) 0)
        (reg:QI 335)) -1 (insn_list 738 (insn_list 742 (nil)))
    (expr_list:REG_DEAD (reg:QI 335)
        (nil)))
make[2]: *** [rt_mbr.o] 错误1
make[2]: Leaving directory `/home/arm/mysql-5.1.41/storage/myisam'
make[1]: *** [all-recursive] 错误1
make[1]: Leaving directory `/home/arm/mysql-5.1.41/storage'
[27 Apr 2018 11:54] Yngve Svendsen
Posted by developer:
 
Obsolete MySQL version and build env.