Valgrind 3.10.0针对MIPS目标的编译失败;此处理器上不支持操作码:mips32r2“;

Valgrind 3.10.0针对MIPS目标的编译失败;此处理器上不支持操作码:mips32r2“;,mips,valgrind,opcode,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_CON

我试图为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'

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

感谢您关注此问题。我尝试使用-msoft float,但仍然面临相同的问题。我发现了以下几点。其中谈到了binutils中缺少的操作码。但是,如果是这样的话,那么,我必须更新我的工具链。你的链接从2006年开始。如果你的工具链比这更旧,它肯定需要更新!您是否尝试过免费的Mentor/Codesourcery工具链?