valgrind是否可以到arm上啊?
时间:2011-10-28
来源:互联网
我按照这个教程来操作:
// 编译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/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
作者: satiling 发布时间: 2011-10-28
引用楼主 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……
这是交叉编译器没有安装好。我按照这个教程来操作:
// 编译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……
似乎这个东西已经有编译好了的。没有必要自己去重新编译。
http://blogs.arm.com/software-enablement/342-valgrind-360-for-arm-linux/
作者: linwhwylb 发布时间: 2011-10-28
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28