Hi,
I have cross compiled valgrind-3.6.0 for ARM using following steps and it
succesfull.
# ./autogen.sh
# CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++
LD=arm-none-linux-gnueabi-ld AR=arm-none-linux-gnueabi-ar
RANLIB=arm-none-linux-gnueabi-ranlib
./configure --build=x86_64-linux-gnu --host=armv7-unknown-linux
--prefix=/home/vishwa --target=armv7-unknown-linux --enable-tls
--disable-shared
# make
# make install
I have copied these binraries on target board and ran valgrind. But it is
terminated with following error always.
*Please point me to the right direction here? Please let me know your
thoughts.*
Since Valgrind support armv7, is it ok to run on armv6l?
Here is log.....................
*# uname -a*
Linux (none) 2.6.32.9 #38 PREEMPT Tue Nov 30 15:04:13 IST 2010 *armv6l
GNU/Linux*
*# ./valgrind ls -l*
==719== Memcheck, a memory error detector
==719== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==719== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==719== Command: ls -l
==719==
==719==
*==719== Process terminating with default action of signal 4 (SIGILL)
==719== Illegal opcode at address 0x380BAE04
==719== at 0x40007A0: ??? (in /lib/ld-2.11.1.so)
*==719==
==719== HEAP SUMMARY:
==719== in use at exit: 0 bytes in 0 blocks
==719== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==719==
==719== All heap blocks were freed -- no leaks are possible
==719==
==719== For counts of detected and suppressed errors, rerun with: -v
==719== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Illegal instruction
*# ./valgrind --tool=cachegrind /mnt/prog*
==720== Cachegrind, a cache and branch-prediction profiler
==720== Copyright (C) 2002-2010, and GNU GPL'd, by Nicholas Nethercote et
al.
==720== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==720== Command: /mnt/prog
==720==
--720-- Warning: Cannot auto-detect cache config on ARM, using one or more
defaults
==720==
*==720== Process terminating with default action of signal 4 (SIGILL)
==720== Illegal opcode at address 0x380A19A8
==720== at 0x40007A0: ??? (in /lib/ld-2.11.1.so)
*==720==
==720== I refs: 0
==720== I1 misses: 0
==720== LLi misses: 0
==720== I1 miss rate: 0.00%
==720== LLi miss rate: 0.00%
==720==
==720== D refs: 0 (0 rd + 0 wr)
==720== D1 misses: 0 (0 rd + 0 wr)
==720== LLd misses: 0 (0 rd + 0 wr)
==720== D1 miss rate: 0.0% (0.0% + 0.0% )
==720== LLd miss rate: 0.0% (0.0% + 0.0% )
==720==
==720== LL refs: 0 (0 rd + 0 wr)
==720== LL misses: 0 (0 rd + 0 wr)
==720== LL miss rate: 0.0% (0.0% + 0.0% )
Illegal instruction
Regards
Vishwa
------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:
WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users