am335x移植valgrind有问题

大魔王与木头人 2017-04-17 04:17:50
平台:AM335X
系统:linux-4.1.18
成功的移植valgrind工具之后放板子上运行,出项如下问题。
比较郁闷的是交叉工具链只能在64位的机器使用
这怎么破

root@am335x-evm:/home/share/valgrind/bin# ./valgrind ~/RtmpPusher
==29958== Memcheck, a memory error detector
==29958== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==29958== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==29958== Command: /home/root/RtmpPusher
==29958==

valgrind: Fatal error at startup: a function redirection
valgrind: which is mandatory for this platform-tool combination
valgrind: cannot be set up. Details of the redirection are:
valgrind:
valgrind: A must-be-redirected function
valgrind: whose name matches the pattern: strcmp
valgrind: in an object with soname matching: ld-linux-armhf.so.3
valgrind: was not found whilst processing
valgrind: symbols from the object with soname: ld-linux-armhf.so.3
valgrind:
valgrind: Possible fixes: (1, short term): install glibc's debuginfo
valgrind: package on this machine. (2, longer term): ask the packagers
valgrind: for your Linux distribution to please in future ship a non-
valgrind: stripped ld.so (or whatever the dynamic linker .so is called)
valgrind: that exports the above-named function using the standard
valgrind: calling conventions for this platform. The package you need
valgrind: to install for fix (1) is called
valgrind:
valgrind: On Debian, Ubuntu: libc6-dbg
valgrind: On SuSE, openSuSE, Fedora, RHEL: glibc-debuginfo
valgrind:
valgrind: Note that if you are debugging a 32 bit process on a
valgrind: 64 bit system, you will need a corresponding 32 bit debuginfo
valgrind: package (e.g. libc6-dbg:i386).
valgrind:
valgrind: Cannot continue -- exiting now. Sorry.
...全文
678 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Ro_otX 2017-07-06
  • 打赏
  • 举报
回复
输入如下命令 sudo apt-get install libc6-dbg 然后再试着运行valgrind
9527 2017-04-18
  • 打赏
  • 举报
回复
valgrind: Note that if you are debugging a 32 bit process on a valgrind: 64 bit system, you will need a corresponding 32 bit debuginfo valgrind: package (e.g. libc6-dbg:i386).

23,125

社区成员

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

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