|
From: JCT <jc...@pa...> - 2004-07-19 16:02:57
|
Hi All,
I am new to valgind. I'd like some help in ironing out this problem.
When I try to build valgrind 2.1.2 on RH 7.3 (kernel 2.4.18-3)
I get the following error
make[4]: Entering directory `valgrind/valgrind-2.1.2/coregrind'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I../inclu=
de=20
-I./x86 -DVG_LIBDIR=3D"\"/usr/local/lib/valgrind"\" -Winline -Wall -Wsh=
adow=20
-O -fno-omit-frame-pointer -mpreferred-stack-boundary=3D2 -g -DELFSZ=3D32=
-MT=20
vg_syscalls.o -MD -MP -MF ".deps/vg_syscalls.Tpo" -c -o vg_syscalls.o=20
vg_syscalls.c; \
then mv -f ".deps/vg_syscalls.Tpo" ".deps/vg_syscalls.Po"; else rm -f=20
".deps/vg_syscalls.Tpo"; exit 1; fi
In file included from /usr/include/linux/timex.h:152,
from vg_unsafe.h:65,
from vg_syscalls.c:35:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
make[4]: *** [vg_syscalls.o] Error 1
make[4]: Leaving directory `valgrind/valgrind-2.1.2/coregrind'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory=20
`/data/sw-development/java/valgrind/valgrind-2.1.2/coregrind'
make[2]: *** [all] Error 2
make[2]: Leaving directory=20
`/data/sw-development/java/valgrind/valgrind-2.1.2/coregrind'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `valgrind/valgrind-2.1.2'
make: *** [all] Error 2
Thanks & Regards
JC
|
|
From: Stephen t. <st...@to...> - 2004-07-19 16:58:51
|
On Mon, 2004-07-19 at 11:53, JCT wrote: > Hi All, > > I am new to valgind. I'd like some help in ironing out this problem. > > When I try to build valgrind 2.1.2 on RH 7.3 (kernel 2.4.18-3) > > I get the following error > > make[4]: Entering directory `valgrind/valgrind-2.1.2/coregrind' > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I../include > -I./x86 -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -Winline -Wall -Wshadow > -O -fno-omit-frame-pointer -mpreferred-stack-boundary=2 -g -DELFSZ=32 -MT > vg_syscalls.o -MD -MP -MF ".deps/vg_syscalls.Tpo" -c -o vg_syscalls.o > vg_syscalls.c; \ > then mv -f ".deps/vg_syscalls.Tpo" ".deps/vg_syscalls.Po"; else rm -f > ".deps/vg_syscalls.Tpo"; exit 1; fi > In file included from /usr/include/linux/timex.h:152, > from vg_unsafe.h:65, > from vg_syscalls.c:35: > /usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory You are missing the following file, msr.h, in your /usr/include/asm path. This directory is typically provided by the linux kernel that you have installed. For example on a Redhat 9 box I use the file /usr/include/asm/timex.h is there but no reference to msr.h when I grep for it. Double check you have a clean install of glibc-kernelheaders. On my home box with a 2.6.7 kernel there is a /usr/include/asm/msr.h. Stephen |