|
From: Mark P. <pa...@un...> - 2015-04-12 23:19:15
|
Hi there, It looks like valgrind HEAD is busted for those of us living on bleeding 10.10.
The two main issues are that the configure.am file is a bit too strict for Apple LLVM checking, and someone made a breaking change to the initimg interfaces without making sure to un-bust initimg-darwin.c
The following patch worked like a charm for myself:
Index: configure.ac
===================================================================
--- configure.ac (revision 15085)
+++ configure.ac (working copy)
@@ -154,7 +154,7 @@
# Note: m4 arguments are quoted with [ and ] so square brackets in shell
# statements have to be quoted.
case "${is_clang}-${gcc_version}" in
- applellvm-5.1|applellvm-6.0*)
+ applellvm-5.1|applellvm-6.*)
AC_MSG_RESULT([ok (Apple LLVM version ${gcc_version})])
;;
icc-1[[3-9]].*)
Index: coregrind/m_initimg/initimg-darwin.c
===================================================================
--- coregrind/m_initimg/initimg-darwin.c (revision 15085)
+++ coregrind/m_initimg/initimg-darwin.c (working copy)
@@ -312,7 +312,8 @@
HChar** orig_envp,
const ExeInfo* info,
Addr clstack_end,
- SizeT clstack_max_size )
+ SizeT clstack_max_size,
+ const VexArchInfo* vex_archinfo )
{
HChar **cpp;
HChar *strtab; /* string table */
@@ -508,7 +509,8 @@
/*====================================================================*/
/* Create the client's initial memory image. */
-IIFinaliseImageInfo VG_(ii_create_image)( IICreateImageInfo iicii )
+IIFinaliseImageInfo VG_(ii_create_image)( IICreateImageInfo iicii,
+ const VexArchInfo* vex_archinfo )
{
ExeInfo info;
VG_(memset)( &info, 0, sizeof(info) );
@@ -548,7 +550,8 @@
iifii.initial_client_SP =
setup_client_stack( iicii.argv - 1, env, &info,
- iicii.clstack_end, iifii.clstack_max_size );
+ iicii.clstack_end, iifii.clstack_max_size,
+ vex_archinfo );
VG_(free)(env);
thanks,
-Pauley
|