Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305944 > unrolled thread

Kernel build fails "cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp" then succeeds

Started byPavel Machek <pavel@ucw.cz>
First post2016-01-11 09:30 +0100
Last post2016-01-11 11:00 +0100
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  Kernel build fails "cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp" then succeeds Pavel Machek <pavel@ucw.cz> - 2016-01-11 09:30 +0100
    Re: Kernel build fails "cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp" then succeeds Pavel Machek <pavel@ucw.cz> - 2016-01-11 10:00 +0100
      Re: Kernel build fails "cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp" then succeeds Michal Marek <mmarek@suse.cz> - 2016-01-11 10:30 +0100
        Re: Kernel build fails "cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp" then succeeds Pavel Machek <pavel@ucw.cz> - 2016-01-11 11:00 +0100

#1305944 — Kernel build fails "cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp" then succeeds

FromPavel Machek <pavel@ucw.cz>
Date2016-01-11 09:30 +0100
SubjectKernel build fails "cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp" then succeeds
Message-ID<qPG1s-8ax-11@gated-at.bofh.it>
Hi!

Ok, I guess it is second time I see it.

This time it is while cross-compiling 4.0 kernel on 4.4-rc5. Failure
is:

  AS      arch/arm/boot/compressed/piggy.gzip.o
  AS      arch/arm/boot/compressed/piggy.gzip.o
mv: cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp’ to ‘arch/arm/boot/compressed/.piggy.gzip.o.cmd’: No such file or directory
scripts/Makefile.build:294: recipe for target 'arch/arm/boot/compressed/piggy.gzip.o' failed
make[2]: *** [arch/arm/boot/compressed/piggy.gzip.o] Error 1
arch/arm/boot/Makefile:52: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
arch/arm/Makefile:308: recipe for target 'zImage' failed
make: *** [zImage] Error 2
make: *** Waiting for unfinished jobs....

I'm building it like this...

eval ` eldk-switch.sh -r 5.4 armv7a`
ARCH=arm long make -j 3 zImage uImage LOADADDR=0x8000  && \

It builds ok after re-run. Is building zImage and uImage at the same
time bad idea?

pavel@duo:~/stahl/linux$ ./mkit
Setup for armv7a (using ELDK 5.4)
25205 (process ID) old priority 0, new priority 10
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  Kernel: arch/arm/boot/zImage is ready
  Image arch/arm/boot/uImage is ready
make took 0 minutes 37 seconds

Any other ideas?

Thanks,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[toc] | [next] | [standalone]


#1305960

FromPavel Machek <pavel@ucw.cz>
Date2016-01-11 10:00 +0100
Message-ID<qPGuu-8mW-13@gated-at.bofh.it>
In reply to#1305944
Hi!

> Ok, I guess it is second time I see it.
> 
> This time it is while cross-compiling 4.0 kernel on 4.4-rc5. Failure
> is:
> 
>   AS      arch/arm/boot/compressed/piggy.gzip.o
>   AS      arch/arm/boot/compressed/piggy.gzip.o
> mv: cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp’ to ‘arch/arm/boot/compressed/.piggy.gzip.o.cmd’: No such file or directory
> scripts/Makefile.build:294: recipe for target 'arch/arm/boot/compressed/piggy.gzip.o' failed
> make[2]: *** [arch/arm/boot/compressed/piggy.gzip.o] Error 1
> arch/arm/boot/Makefile:52: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
> make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
> arch/arm/Makefile:308: recipe for target 'zImage' failed
> make: *** [zImage] Error 2
> make: *** Waiting for unfinished jobs....

Third time now :-).

  GZIP    arch/arm/boot/compressed/piggy.gzip
mv: cannot stat ‘arch/arm/boot/compressed/.head.o.tmp’: No such file or directory
scripts/Makefile.build:294: recipe for target 'arch/arm/boot/compressed/head.o' failed
make[2]: *** [arch/arm/boot/compressed/head.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC      arch/arm/boot/compressed/decompress.o
  AS      arch/arm/boot/compressed/hyp-stub.o
  AS      arch/arm/boot/compressed/lib1funcs.o
  AS      arch/arm/boot/compressed/ashldi3.o
  AS      arch/arm/boot/compressed/bswapsdi2.o
  AS      arch/arm/boot/compressed/piggy.gzip.o
arch/arm/boot/Makefile:52: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
arch/arm/Makefile:308: recipe for target 'zImage' failed
make: *** [zImage] Error 2
make: *** Waiting for unfinished jobs....
  LD      arch/arm/boot/compressed/vmlinux

  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-4.0.5-rt4-01052-g9b333f9

Second try:

  AS      arch/arm/boot/compressed/piggy.gzip.o
  AS      arch/arm/boot/compressed/piggy.gzip.o
mv: cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp’ to ‘arch/arm/boot/compressed/.piggy.gzip.o.cmd’: No such file or directory
scripts/Makefile.build:294: recipe for target 'arch/arm/boot/compressed/piggy.gzip.o' failed
make[2]: *** [arch/arm/boot/compressed/piggy.gzip.o] Error 1
arch/arm/boot/Makefile:52: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
arch/arm/Makefile:308: recipe for target 'zImage' failed
make: *** [zImage] Error 2
make: *** Waiting for unfinished jobs....
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-4.0.5-rt4-01052-g9b333f9

Third try:

pavel@duo:~/stahl/linux$ ./mkit
Setup for armv7a (using ELDK 5.4)
9374 (process ID) old priority 0, new priority 10
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  Kernel: arch/arm/boot/zImage is ready
  Image arch/arm/boot/uImage is ready
make took 0 minutes 31 seconds
make[1]: 'arch/arm/boot/dts/socfpga_stahl.dtb' is up to date.
done

Any ideas?
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[toc] | [prev] | [next] | [standalone]


#1305973

FromMichal Marek <mmarek@suse.cz>
Date2016-01-11 10:30 +0100
Message-ID<qPGXv-mu-7@gated-at.bofh.it>
In reply to#1305960
On 2016-01-11 09:58, Pavel Machek wrote:
> Second try:
> 
>   AS      arch/arm/boot/compressed/piggy.gzip.o
>   AS      arch/arm/boot/compressed/piggy.gzip.o
> mv: cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp’ to ‘arch/arm/boot/compressed/.piggy.gzip.o.cmd’: No such file or directory

I guess you are missing 3939f3345050 ("ARM: 8418/1: add boot image
dependencies to not generate invalid images"). Without this fix and with
'make uImage zImage', two make instances try to produce a zImage at the
same time.

Michal

[toc] | [prev] | [next] | [standalone]


#1305999

FromPavel Machek <pavel@ucw.cz>
Date2016-01-11 11:00 +0100
Message-ID<qPHqz-yo-33@gated-at.bofh.it>
In reply to#1305973
On Mon 2016-01-11 10:23:46, Michal Marek wrote:
> On 2016-01-11 09:58, Pavel Machek wrote:
> > Second try:
> > 
> >   AS      arch/arm/boot/compressed/piggy.gzip.o
> >   AS      arch/arm/boot/compressed/piggy.gzip.o
> > mv: cannot move ‘arch/arm/boot/compressed/.piggy.gzip.o.tmp’ to ‘arch/arm/boot/compressed/.piggy.gzip.o.cmd’: No such file or directory
> 
> I guess you are missing 3939f3345050 ("ARM: 8418/1: add boot image
> dependencies to not generate invalid images"). Without this fix and with
> 'make uImage zImage', two make instances try to produce a zImage at the
> same time.

Since it is known, I have just updated my scripts not to trigger it in
4.0 kernel. I'll try to get this project to move to newer kerenl, but
it needs realtime extensions so I'm not sure if/when we can do that.

Thanks!

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web