Cross compiling Valgrind 3.7.0

Except for the error of checking gcc version (I work around it by specifying a fixed version in configure script), I also got an error about the glibc 2.15 is not supported for this version of Valgrind.

A solution for this has noted on StackOverflow. Below is the solution I use

 2.15)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.15 family" >&5
$as_echo "2.15 family" >&6; }

$as_echo "#define GLIBC_2_14 1" >>confdefs.h

DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
;;

For the thread on StackOverflow, check here.

留言

熱門文章