Issue with make -j4 when building in separate tree.
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
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.devO=/home/greear/kernel/2.6/linux-2.6.16.k6 bzImage make -C/home/greear/git/linux-2.6.devO=/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/MakefileCHK include/linux/version.h CHK include/linux/version.h UPD include/linux/version.h UPD include/linux/version.hmv: 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....
SYMLINKinclude/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/)