Difference between revisions of "Valgrind"

From CBLFS
Jump to navigationJump to search
 
(Remove patch : not needed with new version)
 
(8 intermediate revisions by 5 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://valgrind.org/downloads/valgrind-3.2.1.tar.bz2
+
| http://www.valgrind.org/downloads/valgrind-{{Valgrind-version}}.tar.bz2
 
|}
 
|}
  
 
----
 
----
  
== Introduction to Valgrind ==
+
{{Package-Introduction|Valgrind is a GPL'd system for debugging and profiling Linux programs. With Valgrind's tool suite you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable. You can also perform detailed profiling to help speed up your programs.|http://www.valgrind.org/}}
 
 
Valgrind is a GPL'd system for debugging and profiling Linux programs. With Valgrind's tool suite you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable. You can also perform detailed profiling to help speed up your programs.
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 23: Line 21:
 
Compile the package:
 
Compile the package:
  
  sed -i -e '/^platform/!s/@VG_PLATFORM@/${platform}/g' \
+
  sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in &&
        -e 's/@VG_PLATFORM@/${arch}-${os}/' valgrind.pc.in &&
+
autoconf &&
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
Line 38: Line 36:
 
Compile the package:
 
Compile the package:
  
  sed -i -e '/^platform/!s/@VG_PLATFORM@/${platform}/g' \
+
  sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in &&
        -e 's/@VG_PLATFORM@/${arch}-${os}/' valgrind.pc.in &&
+
autoconf &&
 
  ./configure --prefix=/usr --libdir=/usr/lib64 &&
 
  ./configure --prefix=/usr --libdir=/usr/lib64 &&
 
  make
 
  make
Line 47: Line 45:
 
  make install &&
 
  make install &&
 
  sed "/arch=/s:=.*:="$(sed -e '/VG_PLATFORM_PRI/!d' -e 's/.*= //' -e 's/_.*//' Makefile | \
 
  sed "/arch=/s:=.*:="$(sed -e '/VG_PLATFORM_PRI/!d' -e 's/.*= //' -e 's/_.*//' Makefile | \
     tr [[:upper:]] [[:lower:]])":" valgrind.pc > /usr/lib64/pkgconfig/valgrind.pc
+
     tr <nowiki>[[:upper:]] [[:lower:]]</nowiki>)":" valgrind.pc > /usr/lib64/pkgconfig/valgrind.pc
 
  sed "/arch=/s:=.*:="$(sed -e '/VG_PLATFORM_SEC/!d' -e 's/.*= //' -e 's/_.*//' Makefile | \
 
  sed "/arch=/s:=.*:="$(sed -e '/VG_PLATFORM_SEC/!d' -e 's/.*= //' -e 's/_.*//' Makefile | \
     tr [[:upper:]] [[:lower:]])":" valgrind.pc > /usr/lib/pkgconfig/valgrind.pc
+
     tr <nowiki>[[:upper:]] [[:lower:]]</nowiki>)":" valgrind.pc > /usr/lib/pkgconfig/valgrind.pc
 +
 
 +
[[Category:Programming]]

Latest revision as of 02:35, 14 November 2009

Download Source: http://www.valgrind.org/downloads/valgrind-3.5.0.tar.bz2

Introduction to Valgrind

Valgrind is a GPL'd system for debugging and profiling Linux programs. With Valgrind's tool suite you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable. You can also perform detailed profiling to help speed up your programs.

Project Homepage: http://www.valgrind.org/

Dependencies

It appears that only x86, x86_64, ppc, and ppc64 are supported.

Required

Non-Multilib

On a pure64 system you need to pass --enable-only64bit to configure to prevent it from trying to build multiarch.

Compile the package:

sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in &&
autoconf &&
./configure --prefix=/usr &&
make

Install the package:

make install

Multilib

64bit

Compile the package:

sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in &&
autoconf &&
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package:

make install &&
sed "/arch=/s:=.*:="$(sed -e '/VG_PLATFORM_PRI/!d' -e 's/.*= //' -e 's/_.*//' Makefile | \
   tr [[:upper:]] [[:lower:]])":" valgrind.pc > /usr/lib64/pkgconfig/valgrind.pc
sed "/arch=/s:=.*:="$(sed -e '/VG_PLATFORM_SEC/!d' -e 's/.*= //' -e 's/_.*//' Makefile | \
   tr [[:upper:]] [[:lower:]])":" valgrind.pc > /usr/lib/pkgconfig/valgrind.pc
Retrieved from "?title=Valgrind&oldid=19640"