|
From: <jen...@ta...> - 2010-09-17 12:43:20
|
Hi Kirill, Thanks for replying to my message. I remove the DESTDIR from "make install" in my script, and re-compiled valgrind. But I am still getting the same problem: "No such file or Directory" when I try to run valgrind on the target arm-linux box. And I got "./: error while loading shared libraries: ./: cannot read file data: Error 21" when I do the following on my arm-linux box: #cd /mnt/chlorine/testing_log/mem/Cross-compile/bin #/lib/ld-linux.so.2 --list ./ I wonder do I need to create some links on my arm-linux box to the installed valgrind library? Aprreciate your help! Jenny -----Original Message----- From: Kirill Batuzov <bat...@is...> To: jen...@ta... CC: val...@li... Sent: Fri, 17 Sep 2010 12:57 Subject: Re: [Valgrind-developers] what are the library objects does valgrind need to run on arm-linux Hello. > Does anybody know what are the mandatory library objects in order to > run valgrind on a arm-linux box? (I cannot run strace on our box, so I > can't find them myself). Valgrind does not use any specific libraries. If you are able to build simple Hello world program with your cross toolchain and run it on your hardware then Valgrind should be ok too. The error you mention is most probably caused by the fact that path $PREFIX/lib/valgrind is hardcoded to Valgrind binaries. Considering your previous email note, that command make install DESTDIR=/foo/bar will install Valgrind not to /foo/bar but to /foo/bar/$PREFIX. In other words DESTDIR is appended to PREFIX. ---- Kirill. |