I did copied into right place, why still pointing same error?.
#
# ls /usr/local/lib/valgrind/
cachegrind-x86-linux memcheck-x86-linux
callgrind-x86-linux none-x86-linux
default.supp vgpreload_core-x86-linux.so
drd-x86-linux vgpreload_drd-x86-linux.so
exp-bbv-x86-linux vgpreload_exp-ptrcheck-x86-linux.so
exp-ptrcheck-x86-linux vgpreload_helgrind-x86-linux.so
helgrind-x86-linux vgpreload_massif-x86-linux.so
lackey-x86-linux vgpreload_memcheck-x86-linux.so
massif-x86-linux
# ls -l /usr/local/lib/valgrind/
-rwxr-xr-x 1 0 0 4636305 cachegrind-x86-linux
-rwxr-xr-x 1 0 0 4891451 callgrind-x86-linux
-rw-r--r-- 1 0 0 27934 default.supp
-rwxr-xr-x 1 0 0 4857510 drd-x86-linux
-rwxr-xr-x 1 0 0 4519362 exp-bbv-x86-linux
-rwxr-xr-x 1 0 0 4729657 exp-ptrcheck-x86-linux
-rwxr-xr-x 1 0 0 4837460 helgrind-x86-linux
-rwxr-xr-x 1 0 0 4529944 lackey-x86-linux
-rwxr-xr-x 1 0 0 4568883 massif-x86-linux
-rwxr-xr-x 1 0 0 5040139 memcheck-x86-linux
-rwxr-xr-x 1 0 0 4509675 none-x86-linux
-rwxr-xr-x 1 0 0 6765 vgpreload_core-x86-linux.so
-rwxr-xr-x 1 0 0 170657 vgpreload_drd-x86-linux.so
-rwxr-xr-x 1 0 0 45354
vgpreload_exp-ptrcheck-x86-linux.so
-rwxr-xr-x 1 0 0 107935 vgpreload_helgrind-x86-linux.so
-rwxr-xr-x 1 0 0 37223 vgpreload_massif-x86-linux.so
-rwxr-xr-x 1 0 0 72136 vgpreload_memcheck-x86-linux.so
#
# ls -l /usr/local/lib/pkgconfig/valgrind.pc
-rw-r--r-- 1 0 0 379
/usr/local/lib/pkgconfig/valgrind.pc
#
# ls -l /usr/local/bin/
-rwxr-xr-x 1 0 0 40959 callgrind_annotate
-rwxr-xr-x 1 0 0 13662 callgrind_control
-rwxr-xr-x 1 0 0 32064 cg_annotate
-rwxr-xr-x 1 0 0 42942 cg_merge
-rwxr-xr-x 1 0 0 24211 ms_print
-rwxr-xr-x 1 0 0 8531 no_op_client_for_valgrind
-rwxr-xr-x 1 0 0 30823 valgrind
-rwxr-xr-x 1 0 0 18887 valgrind-listener
# cat /usr/local/lib/pkgconfig/valgrind.pc
prefix=/home/netgard/comps/valgrind/install
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/valgrind
arch=x86
os=linux
platform=x86-linux
valt_load_address=0x38000000
Name: Valgrind
Description: A dynamic binary instrumentation framework
Version: 3.5.0
Requires:
Libs: -L${libdir}/valgrind/x86-linux -lcoregrind -lvex -lgcc
Cflags: -I${includedir}
#
#
# valgrind
valgrind: failed to start tool 'memcheck' for platform 'x86-linux': No such
file or directory
#
#
On Mon, Jan 18, 2010 at 9:32 AM, Tom Hughes <[email protected]> wrote:
> On 18/01/10 14:27, Vasanta wrote:
>
>> Looklike when I compile this on host, it is hardcoding the path
>> into binaries like memcheck-x86-linux and all, if I copy these onto my
>> embedded target, if I run there, it says "memcheck" couldn't start, on
>> target, I copied to /usr/loca/lib abd /usr/local/bin directories, when I
>> execute, path not correct, how can I fix this path?.
>>
>
> As I have now told you twice, you need to put the binaries in the same
> place on the target as they are in when you install on the build machine.
> The exact same place. Not something a bit like the same place.
>
> The reason for that, as you have discovered, is that the paths are fixed in
> at build time so that the launcher process (the valgrind binary) will look
> in a specific place for the tools.
>
> So the things in /usr/local/lib/valgrind on the build machine need to be
> copied to /usr/local/lib/valgrind on the target machine, not to
> /usr/local/lib or anywhere else.
>
>
> Tom
>
> --
> Tom Hughes ([email protected])
> http://www.compton.nu/
>
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users