On Sun, Nov 07, 2010 at 11:44:13AM -0500, Ben Gamari wrote: > On Sat, 6 Nov 2010 17:24:26 +0100, Sam Ravnborg <sam@xxxxxxxxxxxx> wrote: > > Took a quick look. > > Does the following patch fix it? > > > > if m == p then we will stay in the while look looking for a space. > > I did not audit all of the code - there may be other issues.. > > > P.S. Sorry for the noise > > Looks like something very odd is happening here. Seems like stat is > giving us the wrong size. As seen below, ls reports the file size to be > 5247 whereas st.stat indicates a size substantially larger than > that. Output from make with attached patch applied: > > $ ls -l scripts/basic/.fixdep.d > -rw-r--r-- 1 bgamari bgamari 5247 2010-11-07 11:35 scripts/basic/.fixdep.d > $ make V=1 > In file included from /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/stdlib.h:903, > from scripts/basic/fixdep.c:112: > /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/bits/stdlib.h:65: warning: no previous prototype for âptsname_râ > file=scripts/basic/.fixdep.d > st.size=2ad5f6cecb36 Interesting and valueable information! Looks like fstat() failed for some odd reason Could you try to check the return value of fstat(). If it retruns less than 0 then print out errno (preferable using perror()). Sam -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html