मैं Linaro Toolchain साथ निम्न कमांड का प्रयोग एआरएम के लिए वेलग्रिंड (http://valgrind.org/downloads/valgrind-3.8.1.tar.bz2) संकलित क्रॉस मेरी उबंटू 10.04 मेजबान (मैं Buildroot उपयोग कर रहा हूँ) पर:वेलग्रिंड Linaro Toolchain साथ एआरएम के लिए Buildroot
export PATH=$PATH:/home/user/toolchain/linaro/bin
CC=arm-linux-gnueabi-gcc CFLAGS=-I/home/user/toolchain/linaro/arm-linux-gnueabi/libc/usr/include LDFLAGS=-L/home/user/toolchain/linaro/arm-linux-gnueabi/libc/usr/lib ./configure --prefix=/opt/valgrind --host=armv7-none-linux-gnueabi --target=arm-none-linux-gnueabi --build=i386-ubuntu-linux
make
sudo make install
जब मैं अपने एआरएम लक्ष्य बोर्ड को बाइनरी नकल, मैं निम्नलिखित त्रुटि मिलती है:
==413== Memcheck, a memory error detector
==413== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==413== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==413== Command: /home/user/testApp
==413==
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: memcpy
valgrind: in an object with soname matching: ld-linux.so.3
valgrind: was not found whilst processing
valgrind: symbols from the object with soname: ld-linux.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: Cannot continue -- exiting now. Sorry.
मेरे Linaro Toolchain संस्करण है:
gcc version 4.7.1 20120402 (prerelease) (crosstool-NG linaro-1.13.1-2012.04-20120426 - Linaro GCC 2012.04)
मैंने Google पर चारों ओर खोज की है लेकिन इसका समाधान नहीं मिल रहा है। मैं अपने लक्षित बोर्ड पर काम करने के लिए वालग्रिंड कैसे प्राप्त कर सकता हूं? मैं अपने सिस्टम को बनाने के लिए बिल्ड्रूट का उपयोग करता हूं लेकिन libc6-dbg एक पैकेज नहीं है जिसे मैं बिल्ड सिस्टम में पा सकता हूं। क्या टूलचैन सिसरूट से कॉपी करने के लिए मुझे कुछ निर्देशिका या फाइलें हैं? धन्यवाद -
आदेश मैं वेलग्रिंड को चलाने के लिए उपयोग कर रहा हूँ यहाँ दिखाया गया है:
# which valgrind
/usr/bin/valgrind
# valgrind /home/user/MyQtApp
==216== Memcheck, a memory error detector
...
...
क्या आप निर्दिष्ट कर सकते हैं कि आप लक्ष्य पर वालग्रिंड चलाने के लिए किस आदेश का उपयोग करते हैं, ताकि हम समस्या को पुन: पेश करने का प्रयास कर सकें? धन्यवाद। –
थॉमस, मैंने उपरोक्त पद पर मेरे आदेशों को जोड़ दिया है - धन्यवाद। – PhilBot
हाय थॉमस, क्या आप इसे पुन: पेश करने में सक्षम थे? मैं अभी भी अपने बिड्रूट वाल्ग्रिंड इंस्टॉल के साथ इस मुद्दे को देख रहा हूं। धन्यवाद! – PhilBot