|
From: Michael L. <in...@pa...> - 2003-06-19 03:46:31
|
Starting to use valgrind and I find many errors that I want to suppress. = =20 Using 1.9.6. Tried valgrind --gen-suppression but this version did not s= eem=20 to recognize the option. So downloaded from CVS but it would not build. = =20 Please advise. Thank you. -- Michael Here is the build output: Making all in . make[3]: Entering directory=20 `/home/mel/Installs/valgrind-CVS/valgrind/coregrind' source=3D'vg_replace_malloc.c' object=3D'vg_replace_malloc.o' libtool=3Dn= o \ depfile=3D'.deps/vg_replace_malloc.Po' tmpdepfile=3D'.deps/vg_replace_mal= loc.TPo'=20 \ depmode=3Dgcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I.=20 -DVG_LIBDIR=3D"\"/home/mel/local/lib"\" -Winline -Wall -Wshadow -O=20 -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -g=20 -mpreferred-stack-boundary=3D2 -fno-omit-frame-pointer -c `test -f=20 vg_replace_malloc.c || echo './'`vg_replace_malloc.c rm -f lib_replace_malloc.a ar cru lib_replace_malloc.a vg_replace_malloc.o ranlib lib_replace_malloc.a source=3D'vg_scheduler.c' object=3D'vg_scheduler.o' libtool=3Dno \ depfile=3D'.deps/vg_scheduler.Po' tmpdepfile=3D'.deps/vg_scheduler.TPo' \ depmode=3Dgcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I.=20 -DVG_LIBDIR=3D"\"/home/mel/local/lib"\" -Winline -Wall -Wshadow -O=20 -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -g=20 -mpreferred-stack-boundary=3D2 -c `test -f vg_scheduler.c || echo=20 './'`vg_scheduler.c source=3D'vg_default.c' object=3D'vg_default.o' libtool=3Dno \ depfile=3D'.deps/vg_default.Po' tmpdepfile=3D'.deps/vg_default.TPo' \ depmode=3Dgcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I.=20 -DVG_LIBDIR=3D"\"/home/mel/local/lib"\" -Winline -Wall -Wshadow -O=20 -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -g=20 -mpreferred-stack-boundary=3D2 -c `test -f vg_default.c || echo=20 './'`vg_default.c source=3D'vg_demangle.c' object=3D'vg_demangle.o' libtool=3Dno \ depfile=3D'.deps/vg_demangle.Po' tmpdepfile=3D'.deps/vg_demangle.TPo' \ depmode=3Dgcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I.=20 -DVG_LIBDIR=3D"\"/home/mel/local/lib"\" -Winline -Wall -Wshadow -O=20 -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -g=20 -mpreferred-stack-boundary=3D2 -c `test -f vg_demangle.c || echo=20 './'`vg_demangle.c gcc -mpreferred-stack-boundary=3D2 -c `test -f vg_dispatch.S || echo=20 './'`vg_dispatch.S In file included from vg_dispatch.S:32: vg_constants.h:35:31: vg_constants_skin.h: No such file or directory make[3]: *** [vg_dispatch.o] Error 1 make[3]: Leaving directory=20 `/home/mel/Installs/valgrind-CVS/valgrind/coregrind' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory=20 `/home/mel/Installs/valgrind-CVS/valgrind/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mel/Installs/valgrind-CVS/valgrind' make: *** [all] Error 2 |
|
From: Nicholas N. <nj...@ca...> - 2003-06-19 08:03:56
|
On Wed, 18 Jun 2003, Michael Labhard wrote: > Starting to use valgrind and I find many errors that I want to suppress. > Using 1.9.6. Tried valgrind --gen-suppression but this version did not seem > to recognize the option. So downloaded from CVS but it would not build. > Please advise. Thank you. > vg_constants.h:35:31: vg_constants_skin.h: No such file or directory That's strange... do you have a file named include/vg_constants_skin.h? Maybe your checkout from SourceForge was somehow incomplete? I can't think of any other reason why this might happen. N |
|
From: Olly B. <ol...@su...> - 2003-06-19 09:48:55
|
On Thu, Jun 19, 2003 at 09:03:51AM +0100, Nicholas Nethercote wrote:
> On Wed, 18 Jun 2003, Michael Labhard wrote:
>
> > So downloaded from CVS but it would not build.
> > vg_constants.h:35:31: vg_constants_skin.h: No such file or directory
>
> That's strange... do you have a file named include/vg_constants_skin.h?
> Maybe your checkout from SourceForge was somehow incomplete? I can't
> think of any other reason why this might happen.
I ran into this recently. The problem is that valgrind needs automake
1.6 or newer - AM_CCASFLAGS is ignored by automake 1.4 and 1.5, and so
the vg_dispatch.S is built without the -I switches in add_includes:
gcc -mpreferred-stack-boundary=2 -c `test -f vg_dispatch.S || echo './'`vg_dispatch.S
The easiest fix is to insist on a newer automake - add this line to
coregrind/Makefile.am (putting it first is conventional):
AUTOMAKE_OPTIONS = 1.6
Cheers,
Olly
|
|
From: Michael L. <in...@pa...> - 2003-06-19 14:07:30
|
That was the problem. Did it like this: export WANT_AUTOMAKE=3D1.6; ./autogen.sh The build then completed. Thank you. |