2014-09-18 8 views
0

mips32r2에 대해 valgrind 3.10.0을 교차 컴파일하려고하지만 컴파일하는 동안 다음 오류가 발생합니다. 아무도이 문제에 대해 도움을 줄 수 있습니까?"이 프로세서에서 지원되지 않는 opcode : mips32r2"와 함께 MIPS 대상에 대한 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' 

답변

0

불평하는 모든 opcode는 부동 소수점 연산입니다. 타겟 프로세서에 하드웨어 부동 소수점 유닛이없는 것 같습니다. gcc 명령 행에 -msoft-float 옵션을 추가하십시오.

+0

문제를 찾아 주셔서 감사합니다. -msoft-float를 사용해 보았지만 여전히 같은 문제에 직면했습니다. 다음 [link] (https://sourceware.org/ml/binutils/2006-01/msg00183.html)을 찾았습니다. binutils에서 opcode가 누락되었다고 이야기합니다. 그러나 이것이 사실이라면 툴체인을 업데이트해야합니다. – Ron

+0

귀하의 링크는 2006 년부터 시작됩니다. 귀하의 툴체인이 그보다 오래 되었다면 확실히 업데이트해야합니다! 무료 Mentor/Codesourcery 툴체인을 사용해 보셨습니까? http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/ – markgz