From: Mudric, D. (Dusan) <dm...@av...> - 2011-07-21 15:15:16
|
I did the same and don't see why valgrind is complaining about not being able to find the 'memcheck' library: 47.134.206.85 # /exports/Valgrind/bin/valgrind --log-file-exactly=/tmp/vg.log ls - valgrind: failed to start tool 'memcheck' for platform 'arm-linux': No such file or directory Here is my setup: Compile instruction: ./configure --host=armv7-unknown-linux-gnu --prefix=/exports/Valgrind NFS directory: [root@bcml9188 Valgrind]# pwd /exports/Valgrind [root@bcml9188 Valgrind]# ll total 32 drwxrwxrwx 2 root root 4096 Jul 20 16:17 bin drwxrwxrwx 3 root root 4096 Jul 19 16:30 include drwxrwxrwx 4 root root 4096 Jul 19 16:30 lib drwxrwxrwx 4 root root 4096 Jul 19 16:30 share [root@bcml9188 Valgrind]# cd bin [root@bcml9188 bin]# ll total 332 -rwxrwxrwx 1 root root 40851 Jul 19 15:26 callgrind_annotate -rwxrwxrwx 1 root root 13662 Jul 19 15:26 callgrind_control -rwxrwxrwx 1 root root 32169 Jul 19 15:26 cg_annotate -rwxrwxrwx 1 root root 10039 Jul 19 15:26 cg_diff -rwxrwxrwx 1 root root 44258 Jul 19 15:26 cg_merge -rwxr-xr-x 1 root root 54680 Jul 20 16:21 date -rwxrwxrwx 1 root root 24211 Jul 19 15:26 ms_print -rwxrwxrwx 1 root root 7778 Jul 19 15:25 no_op_client_for_valgrind -rwxr-xr-x 1 root root 34934 Jul 19 15:25 valgrind -rwxrwxrwx 1 root root 18732 Jul 19 15:26 valgrind-listener [root@bcml9188 bin]# cd ../lib/ [root@bcml9188 lib]# ll total 16 drwxrwxrwx 2 root root 4096 Jul 19 16:30 pkgconfig drwxrwxrwx 2 root root 4096 Jul 19 16:31 valgrind [root@bcml9188 lib]# cd valgrind/ [root@bcml9188 valgrind]# ll total 82224 -rwxrwxrwx 1 root root 6655866 Jul 19 15:26 cachegrind-arm-linux -rwxrwxrwx 1 root root 6937576 Jul 19 15:26 callgrind-arm-linux -rwxrwxrwx 1 root root 30959 Jul 19 15:25 default.supp -rwxrwxrwx 1 root root 6917951 Jul 19 15:26 drd-arm-linux -rwxrwxrwx 1 root root 6557176 Jul 19 15:26 exp-bbv-arm-linux -rwxrwxrwx 1 root root 6579995 Jul 19 15:26 exp-dhat-arm-linux -rwxrwxrwx 1 root root 6773373 Jul 19 15:26 exp-ptrcheck-arm-linux -rwxrwxrwx 1 root root 6897703 Jul 19 15:26 helgrind-arm-linux -rwxrwxrwx 1 root root 6567010 Jul 19 15:26 lackey-arm-linux -rwxrwxrwx 1 root root 3640290 Jul 19 15:25 libcoregrind-arm-linux.a -rwxrwxrwx 1 root root 45320 Jul 19 15:25 libreplacemalloc_toolpreload-arm-linux.a -rwxrwxrwx 1 root root 5400368 Jul 19 15:25 libvex-arm-linux.a -rwxrwxrwx 1 root root 6619843 Jul 19 15:26 massif-arm-linux -rwxrwxrwx 1 root root 7149402 Jul 19 15:26 memcheck-arm-linux -rwxrwxrwx 1 root root 6545436 Jul 19 15:26 none-arm-linux -rwxrwxrwx 1 root root 7066 Jul 19 15:25 vgpreload_core-arm-linux.so -rwxrwxrwx 1 root root 214938 Jul 19 15:26 vgpreload_drd-arm-linux.so -rwxrwxrwx 1 root root 40516 Jul 19 15:26 vgpreload_exp-dhat-arm-linux.so -rwxrwxrwx 1 root root 59998 Jul 19 15:26 vgpreload_exp-ptrcheck-arm-linux.so -rwxrwxrwx 1 root root 122009 Jul 19 15:26 vgpreload_helgrind-arm-linux.so -rwxrwxrwx 1 root root 40516 Jul 19 15:26 vgpreload_massif-arm-linux.so -rwxrwxrwx 1 root root 96511 Jul 19 15:26 vgpreload_memcheck-arm-linux.so From: Wan Mohd Fairuz Wan Ismail [mailto:wan...@mc...] Sent: Thursday, July 21, 2011 11:00 AM To: Mudric, Dusan (Dusan) Cc: John Reiser; val...@li... Subject: Re: [Valgrind-users] Valgrind for ARM 1176 for linux Maybe your binary is not in the correct directory? This is my directories after compiling Valgrind. x0152532@unx0152532:~/remote-x0152532/valgrind.1$ ls bin include lib share x0152532@unx0152532:~/remote-x0152532/valgrind.1$ ls bin callgrind_annotate cg_diff no_op_client_for_valgrind callgrind_control cg_merge valgrind cg_annotate ms_print valgrind-listener x0152532@unx0152532:~/remote-x0152532/valgrind.1$ ls lib pkgconfig valgrind x0152532@unx0152532:~/remote-x0152532/valgrind.1$ ls lib/valgrind/ cachegrind-arm-linux libvex-arm-linux.a callgrind-arm-linux massif-arm-linux default.supp memcheck-arm-linux drd-arm-linux none-arm-linux exp-bbv-arm-linux vgpreload_core-arm-linux.so exp-dhat-arm-linux vgpreload_drd-arm-linux.so exp-ptrcheck-arm-linux vgpreload_exp-dhat-arm-linux.so helgrind-arm-linux vgpreload_exp-ptrcheck-arm-linux.so lackey-arm-linux vgpreload_helgrind-arm-linux.so libcoregrind-arm-linux.a vgpreload_massif-arm-linux.so libreplacemalloc_toolpreload-arm-linux.a vgpreload_memcheck-arm-linux.so x0152532@unx0152532:~/remote-x0152532/valgrind.1$ the value of --prefix is ~/remote-x0152532/valgrind.1 -- Wan Mohd Fairuz WAN ISMAIL |