valgrind中文手册

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

/* valgrind-3.5.0 编译和安装技巧

* author: lblong

* date : 20100530

*

*/

安装步骤:

1、从valgrind官网上获得代码(也可以通过下载tar包获得源代码,可以点击这里下载)

/downloads/current.html#current

2、进入源代码目录

3、运行./autogen.sh设置环境(需要标准的autoconf工具)

4、运行./configure配置V algrind,具体参数信息详见INSTALL文件。一般只需要设置--prefix=/where/you/want/it/installed

5、make,编译V algrind

6、make install,安装V algrind

详细:

1. linux 环境下执行./configure

telstar:/sybase/telstar/user/lblong/memory/valgrind-3.5.0 > ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

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 gcc... cc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether cc accepts -g... yes

checking for cc option to accept ANSI C... none needed

checking for style of include used by make... GNU

checking dependency style of cc... gcc3

checking whether cc understands -c and -o together... yes

checking how to run the C preprocessor... cc -E

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 ranlib... ranlib

checking for ar... /usr/bin/ar

checking for perl... /usr/bin/perl

checking for gdb... /usr/bin/gdb

checking for diff -u... yes

checking for a supported version of gcc... ok (4.1.2)

checking build system type... i686-intel-linux

checking host system type... i686-intel-linux

checking for a supported CPU... ok (i686)

checking for a 64-bit only build... no

checking for a 32-bit only build... no

checking for a supported OS... ok (linux)

checking for the kernel version... 2.6 family (2.6.18-128.el5xen)

checking for a supported CPU/OS combination... ok (x86-linux)

checking for use as an inner Valgrind... no

checking for egrep... grep -E

checking the GLIBC_VERSION version... 2.5 family

checking for CLOCK_MONOTONIC... yes

checking for PTHREAD_MUTEX_ADAPTIVE_NP... yes

checking for PTHREAD_MUTEX_ERRORCHECK_NP... yes

checking for PTHREAD_MUTEX_RECURSIVE_NP... yes

checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... yes checking for pthread_mutex_t::__m_kind... no

checking for pthread_mutex_t::__data.__kind... yes

checking for Altivec... no

checking for pthread_create@GLIBC2.0()... yes

checking for eventfd()... no

checking if gcc accepts -m32... yes

checking if gcc accepts -maix32... no

checking if gcc accepts -m64... no

checking if gcc accepts -maix64... no

checking if gcc accepts -mmmx... yes

checking if gcc accepts -msse... yes

checking if gcc accepts -mpreferred-stack-boundary... yes

checking if gcc accepts -Wno-pointer-sign... yes

checking if gcc accepts -Wdeclaration-after-statement... yes

checking if gcc accepts -Wno-empty-body... no

checking if gcc accepts -Wno-format-zero-length... yes

checking if gcc accepts -Wno-uninitialized... yes

checking if gcc accepts -Wextra or -W... -W extra

相关文档
最新文档