Compiling Valgrind arm Cross-compiling

Source: Internet
Author: User

1. Download the source code:

Http://valgrind.org/downloads/valgrind-3.9.0.tar.bz2 2. Add compression: mkdir swcd swtar zxf valgrind-3.9.0.tar.bz2 3. Modify code: CD Valgrind-3.9.0/vim COREGRIND/M_DEBUGINFO/READSTABS.C line 57th: Comment off//#include <-a.out.h> then add: struct Nlist {   union {    char *n_name;    struct nlist*n_next;     long n_strx;  } n_un;  unsigned char N_type;  char n_other;   Short n_desc;  unsigned long N_value;};   Solve Valgrind compile-time dependent on some column a.out.h header file problem, the above code is from the system:/usr/include/a.out.h file, the nlist structure is copied over.  4. Start compiling: Export path=: $PATH./configure \  --prefix=/home/nianzhong/sw/install_vg\  --host= Mipsel-linux \  --build=i686-linux \  cppflags=-i  make make install 5. Deployment run: Copy the install_vg/to the nfs/directory. Into the embedded system, the NFS directory in the Mount server to the embedded system: MOUNT-T nfs-o vers=2,nolock/mnt/nfs/export valgrind_lib=/mnt/nfs/install_vg/lib/ Valgrind/mnt/nfs/install_vg/bin/valgrindLs-l export Valgrind_lib To resolve error: valgrind:failed to start tool ' Memcheck ' for Platform:nosuch file or directory

Compiling Valgrind arm cross-compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.