将 valgrind 移植到 ARM 板后,运行失败,错误提示需要 libc6-dbg。 所以想下载libc6-dbg的源码进行交叉编译,然后移植到ARM板子上。不过找了半天也没找到libc6-dbg的源码。 你能告诉我哪里可以下载libc6-dbg的源代码吗? 错误:
==22742== Memcheck, a memory error detector
==22742== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==22742== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==22742== Command: /app/meta8k/meta8k_mat_server
==22742==
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: strlen
valgrind: in an object with soname matching: ld-linux-aarch64.so.1
valgrind: was not found whilst processing
valgrind: symbols from the object with soname: ld-linux-aarch64.so.1
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.
获取libc6-dbg源码进行交叉编译。
我想你可以从在此处输入链接描述
找到它Git 上也提供了 glibc 源代码。您可以使用以下命令克隆存储库: git clone git://sourceware.org/git/glibc.git