busybox-1.2.1 fails
Hi all,
I am trying to build an opie image but busybox fails. I got this :
| /home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/usr/sbin:
| chroot | fbset | rdate | udhcpd | | /home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/usr/share:
| udhcpc | | /home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/usr/share/udhcpc:
| default.script
| mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/bin'
| mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/sbin'
| mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/usr'
NOTE: Task failed: /home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/temp/log.do_install.19657
NOTE: package busybox-1.2.1-r1: task do_package: failed
ERROR: TaskFailed event exception, aborting
NOTE: package busybox-1.2.1: failed
ERROR: Build of opie-image failed
Any hint please ?
Amine.
Quoted 3 lines · Mohammed Amine SAYA
Hi all,
I am trying to build an opie image but busybox fails. I got this :
[...]
Quoted 5 lines
|
/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/usr/share/udhcpc:| default.script
| mv: cannot overwrite directory
Cannot overwrite directory?
Sounds like a permission problem.
Did you build as root once?
Try to manually rm -rf /home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image
regards
Philipp
Quoted 6 lines · pHilipp Zabel
Quoted 4 lines · Mohammed Amine SAYA
Hi all,
I am trying to build an opie image but busybox fails. I got this :
Quoted 7 lines
[...]
Quoted 5 lines
|
/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/usr/share/udhcpc:| default.script
| mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/bin' | mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/sbin' | mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/usr'
Quoted 4 lines
Quoted 2 lines
| mv: cannot overwrite directory
Hi Philipp,
Thank you for your help.
Quoted 4 lines
Cannot overwrite directory?
Sounds like a permission problem.
Did you build as root once?
No
Quoted 2 lines
Try to manually rm -rf
/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image
It worked, I removed it the image directory.
I used to build opie successfully with the old openembedded database (until monotone 0.25) and bitbake 1.3.X.
I don't know what's happening. I ls -l almost all busybox directories in $HOME/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1 and everything seems to belong to me with the right mode.
Still not working.
Amine.
Quoted 15 lines · Mohammed Amine SAYA
| mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/bin' | mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/sbin' | mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/usr'Hi Philipp,
Thank you for your help.Quoted 5 lines
Cannot overwrite directory?
Sounds like a permission problem.
Did you build as root once?No
Quoted 11 lines
Quoted 3 lines
Try to manually rm -rf
/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/imageIt worked, I removed it the image directory.
I used to build opie successfully with the old openembedded database (until monotone 0.25) and bitbake 1.3.X.
I don't know what's happening. I ls -l almost all busybox directories in $HOME/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1 and everything seems to belong to me with the right mode.
It turns out that this line inside do_install function in busybox_1.2.1.bb file is causing the trouble :
mv ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/
I replaced "mv" with "cp -a" and it works, does anyone object to that or have a better fix ?
Amine.
Quoted 25 lines · Mohammed Amine SAYA
Quoted 16 lines · Mohammed Amine SAYA
| mv: cannot overwrite directory
/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/bin' | mv: cannot overwrite directory/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/sbin' | mv: cannot overwrite directory `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/usr'Quoted 5 lines
Cannot overwrite directory?
Sounds like a permission problem.
Did you build as root once?No
Quoted 3 lines
Try to manually rm -rf
/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/imageQuoted 8 lines
It worked, I removed it the image directory.
I used to build opie successfully with the old openembedded database
(until monotone 0.25) and bitbake 1.3.X.
I don't know what's happening. I ls -l almost all busybox directories in $HOME/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1 and everything
seems to belong to me with the right mode.
Quoted 6 lines
It turns out that this line inside
do_installfunction in busybox_1.2.1.bb file is causing the trouble :
mv ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/I replaced "mv" with "cp -a" and it works, does anyone object to that or have a better fix ?
I have the same problem. I think that the installation routine of busybox was slightly changed. The bin, sbin and usr directories already exists in the busybox directory, so the above mv command will fail...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
bitbake busybox -c clean ; bitbake busybox
and your problem automagically disappears
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFE8EeOMkyGM64RGpERAsqwAJwKdN5WbLM6W2hnHHWbVp1KFvzttgCgkIa8 QwzGLHNjgZforTtpS1Vl2O8=
=7F2d
-----END PGP SIGNATURE-----
Quoted 6 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1bitbake busybox -c clean ; bitbake busybox
and your problem automagically disappears
No It does not, I did that like thousand times and I got the same problem again and again. replacing mv with cp -a fixed it.
Re: busybox-1.2.1 and sysvinit-2.86 fail
In reply to Mustafa YuecelQuoted 4 lines · Mustafa Yuecel
I have the same problem. I think that the installation routine of busybox was slightly changed. The bin, sbin and usr directories already exists in the busybox directory, so the above mv command will fail..
Yes I think that too.
Did somebody get a problem with sysvinit-2.86 ?
It complains about an existing link :
ln: `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/at91sam9261-linux/sysvinit-2.86-r28/image/etc/rc2.d/S99stop-bootlogd': File exists
Best regards,
Amine.