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

valgrind是否可以到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 执行程序
 

发现出现以下错误,谁能帮帮我啊?


root@ubuntu:/home/valgrind-3.6.1# ./configure --host=arm_linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
  If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm_linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for arm_linux-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for arm_linux-g++... no
checking for arm_linux-c++... no
checking for arm_linux-gpp... no
checking for arm_linux-aCC... no
checking for arm_linux-CC... no
checking for arm_linux-cxx... no
checking for arm_linux-cc++... no
checking for arm_linux-cl.exe... no
checking for arm_linux-FCC... no
checking for arm_linux-KCC... no
checking for arm_linux-RCC... no
checking for arm_linux-xlC_r... no
checking for arm_linux-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for arm_linux-ranlib... no
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.4.3)
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `arm_linux': machine `arm_linux' not recognized
configure: error: /bin/bash ./config.sub arm_linux failed


------解决方案--------------------
探讨
我按照这个教程来操作:

// 编译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/loc……