How to build Valgrind for ARMv5 platforms?

I need to debug a multi-threaded program that keeps throwing horrible segmentation errors, and I chose Valgrind . The problem is that the code is compiled and running on an ARMv5 machine. I tried to build Valgrind for this architecture, but configure

failed because this version is not supported:

$ CC=arm-linux-gnueabi-gcc  ./configure --prefix=/opt/valgrind     \
  --host=armv5-none-linux-gnueabi --target=arm-none-linux-gnueabi  \
  --build=i386-ubuntu-linux

(...)
checking for a supported CPU... no (armv5)
configure: error: Unsupported host architecture. Sorry

      

Is there a way to solve this problem? Is it possible somehow to compile ARMv7 (which I read is fully supported) and use it on my platform? I found this question , but it was asked two years ago and the answer points to a patch for older versions of Valgrind.

+3


source to share


2 answers


If you want to compile valgrind for the ARMv5 instruction set, you cannot run it as valgrind only runs on ARMv7 processors.

Compiling Valgrind for ARMv5tel

ARM support seems to be being added after the release of "Release 3.6.0 (October 21, 2010)":

http://valgrind.org/docs/manual/dist.news.html



But it should work on ARMv7 processor even if it supports old instruction sets.

I have compiled valgrind for ARMv5 and it won't start, it gives "Invalid instruction".

https://community.nxp.com/message/863066?commentID=863066#comment-863066

+5


source


In the config file change "armv7 *" to "arm", then your compilation will be successful.



+1


source







All Articles