That patch doesn't build on Debian amd64, at least on top of Debian's version of valgrind:
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -I../VEX/pub -DVGA_amd64=1 -DVGO_linux=1 -DVGP_amd64_linux=1 -DVGPV_amd64_linux_vanilla=1 -I../coregrind -DVG_LIBDIR="\"/usr/lib/valgrind"\" -DVG_PLATFORM="\"amd64-linux\"" -m64 -O2 -g -std=gnu99 -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wmissing-parameter-type -Wold-style-declaration -fno-stack-protector -fno-strict-aliasing -fno-builtin -fomit-frame-pointer -DENABLE_LINUX_TICKET_LOCK -g -O2 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -c -o m_debuginfo/libcoregrind_amd64_linux_a-readelf.o `test -f 'm_debuginfo/readelf.c' || echo './'`m_debuginfo/readelf.c m_debuginfo/readelf.c:67:6: error: conflicting types for ‘Elf32_Chdr’ } Elf32_Chdr; ^ In file included from m_debuginfo/readelf.c:56:0: /usr/include/elf.h:385:3: note: previous declaration of ‘Elf32_Chdr’ was here } Elf32_Chdr; ^ m_debuginfo/readelf.c:76:6: error: conflicting types for ‘Elf64_Chdr’ } Elf64_Chdr; ^ In file included from m_debuginfo/readelf.c:56:0: /usr/include/elf.h:393:3: note: previous declaration of ‘Elf64_Chdr’ was here } Elf64_Chdr; ^ Makefile:4878: recipe for target 'm_debuginfo/libcoregrind_amd64_linux_a-readelf.o' failed
That patch doesn't build on Debian amd64, at least on top of Debian's version of valgrind:
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -I../VEX/pub -DVGA_amd64=1 -DVGO_linux=1 -DVGP_amd64_linux=1 -DVGPV_ amd64_linux_ vanilla= 1 -I../coregrind -DVG_LIBDIR= "\"/usr/ lib/valgrind" \" -DVG_PLATFORM= "\"amd64- linux\" " -m64 -O2 -g -std=gnu99 -Wall -Wmissing- prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing- declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored- qualifiers -Wmissing- parameter- type -Wold-style- declaration -fno-stack- protector -fno-strict- aliasing -fno-builtin -fomit- frame-pointer -DENABLE_ LINUX_TICKET_ LOCK -g -O2 -Wformat -Werror= format- security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/ include/ x86_64- linux-gnu -c -o m_debuginfo/ libcoregrind_ amd64_linux_ a-readelf. o `test -f 'm_debuginfo/ readelf. c' || echo './'`m_ debuginfo/ readelf. c readelf. c:67:6: error: conflicting types for ‘Elf32_Chdr’ readelf. c:56:0: elf.h:385: 3: note: previous declaration of ‘Elf32_Chdr’ was here readelf. c:76:6: error: conflicting types for ‘Elf64_Chdr’ readelf. c:56:0: elf.h:393: 3: note: previous declaration of ‘Elf64_Chdr’ was here libcoregrind_ amd64_linux_ a-readelf. o' failed
m_debuginfo/
} Elf32_Chdr;
^
In file included from m_debuginfo/
/usr/include/
} Elf32_Chdr;
^
m_debuginfo/
} Elf64_Chdr;
^
In file included from m_debuginfo/
/usr/include/
} Elf64_Chdr;
^
Makefile:4878: recipe for target 'm_debuginfo/