日期:2014-05-16  浏览次数:21106 次

高手请进,帮我看看这个问题
我下载一个valgrind3.6.1这个最新的内存泄露工具。

我想安装一个arm版本的,可以在手机上运行的。

我按照网上的步骤进程操作
// 编译valgrind-3.6.1
1.先将configure里原有的armv7*)改成armv7*|arm)
2.执行:./configure --host=arm-linux --prefix=valgrind_install;
3.make;
4.make install;
5.将valgrind_install/*拷贝到板上系统的/usr/local/
6.valgrind --tool=memcheck --leak-check=full --error-limit=no --track-origins=yes 执行程序


可是当我执行到make的步骤时候,出现这些错误:

C/C++ code

root@ubuntu:/home/valgrind-3.6.1# make
make  all-recursive
make[1]: Entering directory `/home/valgrind-3.6.1'
Making all in include
make[2]: Entering directory `/home/valgrind-3.6.1/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/valgrind-3.6.1/include'
Making all in VEX
make[2]: Entering directory `/home/valgrind-3.6.1/VEX'
make  all-am
make[3]: Entering directory `/home/valgrind-3.6.1/VEX'
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_arm=1 -DVGO_linux=1 -DVGP_arm_linux=1 -Ipriv  -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -marm -Wbad-function-cast -Wcast-qual -Wcast-align -fstrict-aliasing -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT libvex_arm_linux_a-main_globals.o -MD -MP -MF .deps/libvex_arm_linux_a-main_globals.Tpo -c -o libvex_arm_linux_a-main_globals.o `test -f 'priv/main_globals.c' || echo './'`priv/main_globals.c
cc1: error: unrecognized command line option "-marm"
make[3]: *** [libvex_arm_linux_a-main_globals.o] Error 1
make[3]: Leaving directory `/home/valgrind-3.6.1/VEX'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/valgrind-3.6.1/VEX'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/valgrind-3.6.1'
make: *** [all] Error 2



请大家帮我看看

------解决方案--------------------
哥们,我现在也是这个问题,不知道你是怎么解决的?
------解决方案--------------------
cc1: error: unrecognized command line option "-marm"