|
From: Rich C. <rc...@wi...> - 2011-09-16 15:10:28
|
The nightly build runs on opensuse-11.4 and doesn't see the error. opensuse is similar to but not the same as SLES. Can you run the following and track down the header reference? cd memcheck/tests/x86-linux gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../include \ -I../../../coregrind -I../../../include -I../../../VEX/pub -DVGA_amd64=1 \ -DVGO_linux=1 -DVGP_amd64_linux=1 -DVGPV_amd64_linux_vanilla=1 -Winline -Wall \ -Wshadow -g -m32 -mmmx -msse -Wno-long-long -Wno-pointer-sign \ -fno-stack-protector -MT scalar.o -MD -MP -MF ".deps/scalar.Tpo" \ -E -o scalar.e scalar.c Then look at scalar.e and see what header is defining struct timespec and struct timeval in ahead of time.h ??? The start of each header will be in the output on line starting with '#'. Rich On Thu, 15 Sep 2011 17:53:40 -0500 Maynard Johnson <may...@us...> wrote: > Hi, > I don't often build and run valgrind on x86 platforms, but today I checked out > the latest valgrind code on an Intel Xeon processor running SLES 10 SP2. The > valgrind code itself builds fine, but 'make check' fails in > memcheck/tests/x86-linux with the following error: > > make[1]: Entering directory `/home/mpj/vg-09.12.2011/memcheck/tests/x86-linux' > make[1]: `bug133694' is up to date. > make[1]: `int3-x86' is up to date. > if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../include > -I../../../coregrind -I../../../include -I../../../VEX/pub -DVGA_amd64=1 > -DVGO_linux=1 -DVGP_amd64_linux=1 -DVGPV_amd64_linux_vanilla=1 -Winline -Wall > -Wshadow -g -m32 -mmmx -msse -Wno-long-long -Wno-pointer-sign > -fno-stack-protector -MT scalar.o -MD -MP -MF ".deps/scalar.Tpo" -c -o scalar.o > scalar.c; \ > then mv -f ".deps/scalar.Tpo" ".deps/scalar.Po"; else rm -f ".deps/scalar.Tpo"; > exit 1; fi > In file included from /usr/include/linux/timex.h:58, > from /usr/include/linux/sched.h:11, > from /usr/include/linux/mm.h:4, > from /usr/include/linux/mman.h:5, > from scalar.h:12, > from scalar.c:4: > /usr/include/linux/time.h:12: error: redefinition of ?struct timespec? > /usr/include/linux/time.h:18: error: redefinition of ?struct timeval? > In file included from /usr/include/asm/timex.h:6, > from /usr/include/linux/timex.h:61, > blah, blah, blah -- ad nauseum > > > Is this a known problem? I don't have any build problems on other platforms > (ppc64, amd64). I don't have another x86 system available with a newer distro > to see if I would have the same problem. Anyone else out there seeing this? > > -Maynard > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers -- Rich Coe rc...@wi... |