On Sun, Sep 22, 2013 at 09:06:39AM +0800, Rongqing Li wrote:
> I want to know how many cores your cpu has? I can not reproduce it on
> my 2 cores cpu, but it always happens when run on a server which is
> a 16 cores cpu and "make -j20"
Depends on what you call a core, I've tested this on a box with 8 cpu
cores and 64 logical cpus. I can clearly see that the build is stalled
for a few moments at '[SH] version.h' before it proceeds to '[CC] ...'.
> >The dependency files are generated by an implicit rule .c -> .o.d, so
> >there should be no problem for any of the files listed above.
>
> Do you means the below:
>
> .c.o:
> $(Q)$(check) $<
> @echo " [CC] $@"
> $(Q)$(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
Rather
%.o.d: %.c
$(Q)$(CC) -MM -MG -MF $@ -MT $(@:.o.d=.o) -MT $(@:.o.d=.static.o) -MT $@ $(AM_CFLAGS) $(CFLAGS) $<
the .o.d files are included at the end of Makefile, I'm not completely
sure that they get included before the .c.o rule is processed. That way
the .o.d files would be empty and the dependency on version.h missing.
david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html