Valgrind 3.10.0编译失败,MIPS目标“此处理器不支持操作码:mips32r2”

时间:2014-09-18 08:15:39

标签: mips valgrind opcode

我正在尝试为mips32r2交叉编译valgrind 3.10.0,但是,我在编译期间收到以下错误。有人可以帮忙解决这个问题吗?

我做了以下配置步骤。

CC=/home/bin/mipsel-percello-linux-gnu-gcc; ./configure CFLAGS="-mips32r2" --host=mipsel-percello-linux-gnu

$TOOLCHAIN/Percello/MIPSel/bin/mipsel-percello-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -I../VEX/pub -DVGA_mips32=1 -DVGO_linux=1 -DVGP_mips32_linux=1 -DVGPV_mips32_linux_vanilla=1 -Ipriv  -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin  -Wbad-function-cast -Wcast-qual -Wcast-align -fstrict-aliasing -Wno-long-long -mips32r2 -fno-stack-protector -MT priv/libvex_mips32_linux_a-guest_mips_helpers.o -MD -MP -MF priv/.deps/libvex_mips32_linux_a-guest_mips_helpers.Tpo -c -o priv/libvex_mips32_linux_a-guest_mips_helpers.o `test -f 'priv/guest_mips_helpers.c' || echo './'`priv/guest_mips_helpers.c
/tmp/cc3sKk0b.s: Assembler messages:
/tmp/cc3sKk0b.s:3759: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.s.l $f24,$f24'
/tmp/cc3sKk0b.s:3782: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.l.d $f24,$f24'
/tmp/cc3sKk0b.s:3805: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.l.s $f24,$f24'
/tmp/cc3sKk0b.s:3828: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.d.l $f24,$f24'
/tmp/cc3sKk0b.s:3989: Error: opcode not supported on this processor: mips32r2 (mips32r2) `trunc.l.d $f24,$f24'
/tmp/cc3sKk0b.s:4012: Error: opcode not supported on this processor: mips32r2 (mips32r2) `trunc.l.s $f24,$f24'
/tmp/cc3sKk0b.s:4081: Error: opcode not supported on this processor: mips32r2 (mips32r2) `round.l.d $f24,$f24'
/tmp/cc3sKk0b.s:4104: Error: opcode not supported on this processor: mips32r2 (mips32r2) `round.l.s $f24,$f24'
/tmp/cc3sKk0b.s:4173: Error: opcode not supported on this processor: mips32r2 (mips32r2) `floor.l.d $f24,$f24'
/tmp/cc3sKk0b.s:4196: Error: opcode not supported on this processor: mips32r2 (mips32r2) `floor.l.s $f24,$f24'
/tmp/cc3sKk0b.s:4265: Error: opcode not supported on this processor: mips32r2 (mips32r2) `ceil.l.d $f24,$f24'
/tmp/cc3sKk0b.s:4288: Error: opcode not supported on this processor: mips32r2 (mips32r2) `ceil.l.s $f24,$f24'
/tmp/cc3sKk0b.s:4604: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.s.l $f20,$f20'
/tmp/cc3sKk0b.s:4626: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.l.d $f20,$f20'
/tmp/cc3sKk0b.s:4647: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.l.s $f20,$f20'
/tmp/cc3sKk0b.s:4669: Error: opcode not supported on this processor: mips32r2 (mips32r2) `cvt.d.l $f20,$f20'
/tmp/cc3sKk0b.s:4819: Error: opcode not supported on this processor: mips32r2 (mips32r2) `trunc.l.d $f20,$f20'
/tmp/cc3sKk0b.s:4840: Error: opcode not supported on this processor: mips32r2 (mips32r2) `trunc.l.s $f20,$f20'
/tmp/cc3sKk0b.s:4905: Error: opcode not supported on this processor: mips32r2 (mips32r2) `round.l.d $f20,$f20'
/tmp/cc3sKk0b.s:4991: Error: opcode not supported on this processor: mips32r2 (mips32r2) `floor.l.d $f20,$f20'
/tmp/cc3sKk0b.s:5012: Error: opcode not supported on this processor: mips32r2 (mips32r2) `floor.l.s $f20,$f20'
/tmp/cc3sKk0b.s:5077: Error: opcode not supported on this processor: mips32r2 (mips32r2) `ceil.l.d $f20,$f20'
/tmp/cc3sKk0b.s:5098: Error: opcode not supported on this processor: mips32r2 (mips32r2) `ceil.l.s $f20,$f20'

1 个答案:

答案 0 :(得分:0)

它抱怨的所有操作码都是浮点运算。 看起来您的目标处理器可能没有硬件浮点单元。尝试将-msoft-float选项添加到gcc命令行。