Skip to contentSkip to conversation

Issue with make -j4 when building in separate tree.

DISCUSSION Ben Greear 2 participants 2 messages May 24, 2006

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

There seems to be a dependency problem when running make with multiple jobs (-j4).

I am compiling 2.6.16.16 in a separate tree. I created the tree with the command:

[greear@xeon-dt linux-2.6.dev]$ make O=~/kernel/2.6/linux-2.6.16.k6/ xconfig

Then tried to build with this command.

[greear@xeon-dt linux-2.6.16.k6]$ make -j4 bzImage modules
make -C /home/greear/git/linux-2.6.dev O=/home/greear/kernel/2.6/linux-2.6.16.k6 bzImage make -C /home/greear/git/linux-2.6.dev O=/home/greear/kernel/2.6/linux-2.6.16.k6 modules
GEN /home/greear/kernel/2.6/linux-2.6.16.k6/Makefile
GEN /home/greear/kernel/2.6/linux-2.6.16.k6/Makefile

  CHK     include/linux/version.h
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  UPD     include/linux/version.h

mv: cannot stat `include/linux/version.h.tmp': No such file or directory make[2]: *** [include/linux/version.h] Error 1
make[1]: *** [bzImage] Error 2
make: *** [bzImage] Error 2
make: *** Waiting for unfinished jobs....
SYMLINK include/asm -> include/asm-i386

This error has existed at least since 2.6.13.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#1 lore raw

Hi Ben,

Quoted 27 lines · Ben Greear

There seems to be a dependency problem when running make with multiple jobs (-j4).

I am compiling 2.6.16.16 in a separate tree. I created the tree with the command:

[greear@xeon-dt linux-2.6.dev]$ make O=~/kernel/2.6/linux-2.6.16.k6/ xconfig

Then tried to build with this command.

[greear@xeon-dt linux-2.6.16.k6]$ make -j4 bzImage modules
make -C /home/greear/git/linux-2.6.dev O=/home/greear/kernel/2.6/linux-2.6.16.k6 bzImage make -C /home/greear/git/linux-2.6.dev O=/home/greear/kernel/2.6/linux-2.6.16.k6 modules
GEN /home/greear/kernel/2.6/linux-2.6.16.k6/Makefile
GEN /home/greear/kernel/2.6/linux-2.6.16.k6/Makefile

   CHK     include/linux/version.h
   CHK     include/linux/version.h
   UPD     include/linux/version.h
   UPD     include/linux/version.h

mv: cannot stat `include/linux/version.h.tmp': No such file or directory make[2]: *** [include/linux/version.h] Error 1
make[1]: *** [bzImage] Error 2
make: *** [bzImage] Error 2
make: *** Waiting for unfinished jobs....
SYMLINK include/asm -> include/asm-i386

Quoted 4 lines

This error has existed at least since 2.6.13.

Thanks,
Ben

Please try
make -j4 O=~/kernel/2.6/linux-2.6.16.k6/

Regards,
Michal

Signature · 3 lines
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)