|
From: Aneesh C. <Ane...@mi...> - 2010-05-21 06:21:51
|
Hi,
My name is Aneesh Chandran. I went through the valgrind documentation and found it might be useful for me (mainly for memory checking).
Let me give some background information. I am using a hardware target platform with Linux OS. I am using a cross compiler. I will be compiling the code in i386 PC. But uses a cross compiler (sh4-linux). Finally the exe runs on a hardware platform (for the time being using NFS).
So i wanted to run the valgrind on my target platform.
1. Initially i compiled the valgrind package (valgrind-3.5.0) in the PC itself. And gave the --prefix=<nfs root file system base>. But when i tried to run "valgrind ls -l" it showed error (""/bin/valgrind: line 1: syntax error: unexpected "(". ").
2. So i tried using the cross compiler. Inside the configure script, i just assigined the variable CC=sh4-linux-gcc. But while doing ./configure it said, use the --host option.
3. Next i tried --host=sh4-linux- . But this also failed in between. (Saying not supported CPU)
So whether its not possible to compile the Valgrind for cross compiling with STLINUX. I could not find any documentation on this. If this is possible, please let me know the steps to do it.
Thanks & Regards,
Aneesh
http://www.mindtree.com/email/disclaimer.html
|
|
From: Dan K. <da...@ke...> - 2010-05-21 13:52:46
|
On Thu, May 20, 2010 at 11:21 PM, Aneesh Chandran <Ane...@mi...> wrote: > Let me give some background information. I am using a hardware target platform with Linux OS. I am using a cross compiler. I will be compiling the code in i386 PC. But uses a cross compiler (sh4-linux). Finally the exe runs on a hardware platform (for the time being using NFS). > So i wanted to run the valgrind on my target platform. See http://valgrind.org/info/platforms.html It's a bit out of date (ARM is in better shape than shown) but it says correctly that sh4 is not yet supported. So you can use valgrind, but only by compiling your apps to run on the PC. That will catch at least the portable mistakes. - Dan |
|
From: Aneesh C. <Ane...@mi...> - 2010-05-21 15:28:23
|
Thanks. Regards, Aneesh ________________________________________ From: dan...@gm... [dan...@gm...] On Behalf Of Dan Kegel [da...@ke...] Sent: Friday, May 21, 2010 7:22 PM To: Aneesh Chandran Cc: val...@li... Subject: Re: [Valgrind-users] Valgrind support for target platforms On Thu, May 20, 2010 at 11:21 PM, Aneesh Chandran <Ane...@mi...> wrote: > Let me give some background information. I am using a hardware target platform with Linux OS. I am using a cross compiler. I will be compiling the code in i386 PC. But uses a cross compiler (sh4-linux). Finally the exe runs on a hardware platform (for the time being using NFS). > So i wanted to run the valgrind on my target platform. See http://valgrind.org/info/platforms.html It's a bit out of date (ARM is in better shape than shown) but it says correctly that sh4 is not yet supported. So you can use valgrind, but only by compiling your apps to run on the PC. That will catch at least the portable mistakes. - Dan http://www.mindtree.com/email/disclaimer.html |