Bug 351282

Summary: valgrind 3.10.1 MIPS softfloat build broken with GCC 4.9.3 / binutils 2.25.1
Product: [Developer tools] valgrind Reporter: Aaro Koskinen <aaro.koskinen>
Component: vexAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: mips32r2
Priority: NOR    
Version: 3.10.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Aaro Koskinen 2015-08-14 10:50:57 UTC
valgrind 3.10.1 cannot be compiled with MIPS softfloat toolchains with current GCC/binutils since the toolchain does not anymore accept hardfloat instructions to be present:

mips64-linux-gnu-gcc --sysroot=/mips-sysroot -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -I../VEX/pub -DVGA_mips64=1 -DVGO_linux=1 -DVGP_mips64_linux=1 -DVGPV_mips64_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 -march=mips64 -Wbad-function-cast -Wcast-qual -Wcast-align -fstrict-aliasing -Wno-long-long  -fno-stack-protector -MT priv/libvex_mips64_linux_a-guest_mips_helpers.o -MD -MP -MF priv/.deps/libvex_mips64_linux_a-guest_mips_helpers.Tpo -c -o priv/libvex_mips64_linux_a-guest_mips_helpers.o `test -f 'priv/guest_mips_helpers.c' || echo './'`priv/guest_mips_helpers.c
/tmp/ccGFFusn.s: Assembler messages:
/tmp/ccGFFusn.s:5767: Error: opcode not supported on this processor: mips64 (mips64) `mtc1 $5,$f20'
/tmp/ccGFFusn.s:5768: Error: opcode not supported on this processor: mips64 (mips64) `mtc1 $9,$f21'
/tmp/ccGFFusn.s:5769: Error: opcode not supported on this processor: mips64 (mips64) `mtc1 $6,$f22'

etc.

Reproducible: Always

Steps to Reproduce:
1. Build with GCC 4.9.3 & binutils 2.25.1 configured for MIPS64 softfloat.

Actual Results:  
Build failure.

Expected Results:  
Build OK.
Comment 1 Petar Jovanovic 2016-10-12 18:15:04 UTC
This should be fixed now with:
- VEX r3261
- Valgrind r16039

Can you please sync up the latest Valgrind code and check if it works for you?

Thanks.
Comment 2 Julian Seward 2016-10-19 12:05:30 UTC
Closing.