|
From: Bart V. A. <bar...@gm...> - 2009-02-13 09:32:31
|
On Fri, Feb 13, 2009 at 10:05 AM, xavier.vvv <xav...@gm...> wrote: > > Hi Bart, > Thanks a lot for the answer. This solution fixed the errors. > But I have another question, when I cross-compiled valgrind for ppc405, > then I copied all the generated file (in prefix dir) to the target > platform, > I have always an error when running valgrind: > valgrind: failed to start tool 'memcheck' for platform 'ppc32-linux': No > such file or directory > > Here are the steps of the cross compilation: > > $CC=powerpc-linux-gcc LD=powerpc-linux-ld ./configure --host=powerpc-linux > --target=powerpc-unknown-linux --prefix=/home/tools/valgrind_ppc_4 > --build=i486-cross-linux-gnu > $make > $make install > > Then I copied the /home/tools/valgrind_ppc_4 directory to the target > system. > And I run valgrind from valgrind_ppc_4/bin directory. > You have to specify the directory where Valgrind will be installed on the target via the --prefix option of the configure script. This issue has already been discussed before -- see also http://thread.gmane.org/gmane.comp.debugging.valgrind/8203/focus=8212. Bart. |