【问题标题】:Valgrind 3.10.0 compilation failing for MIPS target with "opcode not supported on this processor: mips32r2"MIPS 目标的 Valgrind 3.10.0 编译失败,“此处理器不支持操作码:mips32r2”
【发布时间】:2014-09-18 08:15:38
【问题描述】:

我正在尝试为 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'

【问题讨论】:

    标签: mips valgrind opcode


    【解决方案1】:

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

    【讨论】:

    • 感谢您调查此问题。我尝试使用 -msoft-float,但仍然面临同样的问题。我找到了以下link。其中谈到了 binutils 中缺少的操作码。但是,如果是这种情况,那么我将不得不更新我的工具链。
    • 您的链接是 2006 年的。如果您的工具链比这更旧,它肯定需要更新!您是否尝试过免费的 Mentor/Codesourcery 工具链? mentor.com/embedded-software/sourcery-tools/sourcery-codebench/…
    猜你喜欢
    • 2023-03-05
    • 1970-01-01
    • 2015-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-15
    • 2016-03-27
    相关资源
    最近更新 更多