Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

memory corruption problem in make?



I periodically cross-compile the mvme68k target on an ultrasparc
running Solaris 10.

Sometimes I get failures that look like memory corruption errors
in the nbmake that is compiled.  Namely, the error messages
makes me suspect that nbmake stomped on memory buffer that
it then handed to exec().

Restarting the build more often than not results in a successful
completion of the entire "build" target.

Attached below is a typical failure message.  What's the best
method of attack in tracking this down, since nbmake isn't
dumping core, but rather thinks that a compile failed?

This particular source tree was updated at about 11:00pm last
night, so it's pretty close to the head.  I've been seeing this
failure on and off for a couple of weeks.  It doesn't happen
every time...

-Kurt

===> build.sh command: ./build.sh -u -U -O /nbsd/mvme68k/obj -D 
/nbsd/mvme68k/nbuild -T /nbsd/mvme68k/tools -m mvme68k -j 2 build
===> build.sh started: Tue Apr  1 23:06:14 EDT 2008
===> NetBSD version:   4.99.58
===> MACHINE:          mvme68k
===> MACHINE_ARCH:     m68k
===> Build platform:   SunOS 5.10 sun4u
===> HOST_SH:          /usr/xpg4/bin/sh
===> No /nbsd/mvme68k/tools/bin/nbmake, needs building.
===> Bootstrapping nbmake
checking for sh... /usr/xpg4/bin/sh
checking for gcc... gcc64

[...]

--- /nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_gettime.0 ---
echo '#  ' "install " /nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_gettime.0;  
echo "/nbsd/mvme68k/tools/bin/m68k--netbsdelf-install -U -M 
/nbsd/mvme68k/nbuild/METALOG -D /nbsd/mvme68k/nbuild -h sha1 -N /nbsd/src/etc 
-l h -r /nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_adjtime.0 
/nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_gettime.0" &&  
/nbsd/mvme68k/tools/bin/m68k--netbsdelf-install -U -M 
/nbsd/mvme68k/nbuild/METALOG -D /nbsd/mvme68k/nbuild -h sha1 -N /nbsd/src/etc 
-l h -r /nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_adjtime.0 
/nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_gettime.0
#   install  /nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_gettime.0
/nbsd/mvme68k/tools/bin/m68k--netbsdelf-install -U -M 
/nbsd/mvme68k/nbuild/METALOG -D /nbsd/mvme68k/nbuild -h sha1 -N /nbsd/src/etc 
-l h -r /nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_adjtime.0 
/nbsd/mvme68k/nbuild/usr/share/man/cat2/ntp_gettime.0
--- /nbsd/mvme68k/nbuild/usr/share/man/cat2/unmount.0 ---
sh[4]: /etc: cannot execute
sh[5]: syntax error at line 5 : `}' unexpected
*** [/nbsd/mvme68k/nbuild/usr/share/man/cat2/unmount.0] Error code 2
1 error

nbmake: stopped in /nbsd/src/lib/libc
*** [do-lib-libc] Error code 2
1 error

nbmake: stopped in /nbsd/src
*** [build] Error code 2
1 error

nbmake: stopped in /nbsd/src

ERROR: Failed to make build
*** BUILD ABORTED ***


Home | Main Index | Thread Index | Old Index