On Fri, Feb 13, 2009 at 10:05 AM, xavier.vvv <[email protected]> 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.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to