valgrind是否可以到arm上啊?

satiling 2011-10-28 04:04:50
我按照这个教程来操作:

// 编译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
...全文
762 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Linux-Torvalds 2011-10-28
  • 打赏
  • 举报
回复
[Quote=引用楼主 satiling 的回复:]
我按照这个教程来操作:

// 编译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……
[/Quote]这是交叉编译器没有安装好。
似乎这个东西已经有编译好了的。没有必要自己去重新编译。
http://blogs.arm.com/software-enablement/342-valgrind-360-for-arm-linux/

23,223

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧