|
From: <jen...@ta...> - 2010-09-22 08:00:02
|
Hi Rich,
Sorry for getting back to you late, I was not in the office yesterday.
I just tried the following command on our arm-linux box as you
suggested, I got the same error message "No such file or directory":
camera #
>/mnt/chlorine/testing_log/mem/Cross-compile/valgrind/coregrind/valgri
nd --tool=memcheck /bin/ls -lh
-bash:
/mnt/chlorine/testing_log/mem/Cross-compile/valgrind/coregrind/valgrind:
No such file or directory
camera # >/mnt/chlorine/testing_log/mem/Cross-compile/valgrind
--tool=memcheck
/bin/ls -lh
-bash: /mnt/chlorine/testing_log/mem/Cross-compile/valgrind: No such
file or dir ectory
It seems the binary (\bin\ls) was ingored. Any idea what is wrong?
Thanks for the help!
Jenny
-----Original Message-----
From: Rich Coe <Ric...@me...>
To: jen...@ta...
Sent: Mon, 20 Sep 2010 18:07
Subject: Re: [Valgrind-developers] valgrind can not be located on
target platform
what binary do you want to run valgrind against ?
You have to specify that too on the command line.
eg.
.../valgind --tool=memcheck /bin/ls
rich
On Mon, 20 Sep 2010 12:34:29 -0400
jen...@ta... wrote:
> Hi Rich,
>
> I am still getting the same error after I tried as the following:
>
> camera # export
> VALGRIND_LIB=/mnt/chlorine/testing_log/mem/Cross-compile/.in_pl
> ace
> camera # /mnt/chlorine/testing_log/mem/Cross-compile/valgrind
> --tool=memcheck
> -bash: /mnt/chlorine/testing_log/mem/Cross-compile/valgrind: is a
> directory
> camera #
> /mnt/chlorine/testing_log/mem/Cross-compile/valgrind/coregrind/valgrin
> d --tool=memcheck
> -bash:
>
/mnt/chlorine/testing_log/mem/Cross-compile/valgrind/coregrind/valgrind:
> No such file or directory
> camera # pwd
> /mnt/chlorine/testing_log/mem/Cross-compile/valgrind
> camera # cd coregrind
> camera #
> /mnt/chlorine/testing_log/mem/Cross-compile/valgrind/coregrind/valgrin
> d --tool=memcheck
> -bash:
>
/mnt/chlorine/testing_log/mem/Cross-compile/valgrind/coregrind/valgrind:
> No such file or directory
>
>
> -----
> I wonder is there any other environment parameter I have to define on
> my arm-linux platform, such as LD_LIBRARY_PATH etc?
>
> Really appreciate your help!
>
> Regards
>
> Jenny
>
>
> -----Original Message-----
> From: Rich Coe <Ric...@me...>
> To: jen...@ta...
> Sent: Mon, 20 Sep 2010 17:06
> Subject: Re: [Valgrind-developers] valgrind can not be located on
> target platform
>
> Hi Jenny,
>
> You only need prefix defined for where you are going to install it on
> the
> target.
>
> For running it in place with-out installing it, you need to set the
env
> variable and then run it. If you are running the the bash shell,
> it looks like this:
>
> export
> VALGRIND_LIB=/mnt/chlorine/testing_log/mem/Cross-compile/.in_place
> /mnt/chlorine/testing_log/mem/Cross-compile/valgrind
> --tool=memcheck [...]
>
> where [...] is the arguments to valgrind memcheck you want to run.
>
> Rich
>
>
>
> On Mon, 20 Sep 2010 11:57:42 -0400
> jen...@ta... wrote:
> > Hi Rich,
> >
> > Thanks again for the message and sorry I could not reply to you
> earlier.
> >
> > I tried to put valgrind on our file server under the directory:
> > "/mnt/chlorine/valgrind" using the script attached (make without
> > install), and then mount the same directory on our arm-linux target;
> > also I did "export VALGRIND_LIB=/mnt/chlorine/valgrind/memcheck" on
> the
> > target platform;
> >
> > But when I run "./coregrind/valgrind", I got the same error "No such
> > file or directory".
> >
> > I wonder could you spot anything I have done wrong so far?
> >
> > Regards
> >
> > Jenny
> >
> > -----Original Message-----
> > From: Rich Coe <Ric...@me...>
> > To: jen...@ta...
> > Sent: Fri, 17 Sep 2010 16:35
> > Subject: Re: [Valgrind-developers] valgrind can not be located on
> > target platform
> >
> > Hi Jenny,
> >
> > In the file README_DEVELOPERS, top of the vg tree, the first section
> > 'Building and not installing it' describes running valgrind
in-place.
> >
> > Rich
> >
> > On Fri, 17 Sep 2010 06:37:05 -0400
> > jen...@ta... wrote:
> > > Hi Richard,
> > >
> > > Thank you very much for replying to my message, I was away for a
> > while,
> > > so sorry for getting back to you late.
> > >
> > > I wonder could you tell me where I can find "developer notes for
> > > running valgrind 'in-place'" please?
> > >
> > > Our arm-linux platform has a cut down version of linux, so I can
not
> > > run "strace" "ldconfig" etc., I wonder could you tell me is there
> > > another way to find out which library valgrind is looking for
when
> it
> > > gives the "No such file or directory" error message please?
> > >
> > > Really appreciate your help!
> > >
> > > Regards
> > >
> > > Jenny
> > >
> > >
> > > -----Original Message-----
> > > From: Rich Coe <Ric...@me...>
> > > To: jen...@ta...
> > > Sent: Thu, 16 Sep 2010 16:16
> > > Subject: Re: [Valgrind-developers] valgrind can not be located on
> > > target platform
> > >
> > > I don't if anyone else replied.
> > >
> > > If you look at the developer notes for running valgrind
'in-place'
> it
> > > might
> > > help. valgrind the binary is merely the front end of several
> binaries
> > > and needs to be able to find those other objects in order to run.
> > >
> > > Rich
> > >
> > > On Sun, 12 Sep 2010 15:19:19 -0400
> > > jen...@ta... wrote:
> > > > Hi there,
> > > >
> > > > I am trying to run Valgrind on our arm-linux platform to help
> > > debuging
> > > > the memory leak problem.
> > > >
> > > > After cross compiled Valgrind on Red Hat Linux using the script
as
> > > > attached,I try to run Valgrind from the target platform as such
> > > > "/mnt/chlorine/testing_log/mem/Cross-compile/bin/valgrind", I
got
> > "No
> > > > such file or Directory" error message.
> > > >
> > > > There was no error reported during the compilation and
> installation
> > > and
> > > > I have edited $PATH at the target platform to point to
> > > > /mnt/chlorine/testing_log/mem/Cross-compile/bin, and done
> "chmod+x"
> > > to
> > > > the .../bin folder.
> > > >
> > > > I wonder has anybody else experienced the same problem before?
> Have
> > I
> > > > done anything wrong during the compilation/ installation?
> > > >
> > > > Many thanks for your help in advance!
> > > >
> > > > Regards
> > > >
> > > > Jenny
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> >
> >
> >
>
>
> --
>
>
>
>
>
--
|