busybox-1.2.1 fails


Mohammed Amine SAYA <amine.saya@...>
 

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.


pHilipp Zabel <philipp.zabel@...>
 

On 8/26/06, Mohammed Amine SAYA <amine.saya@...> wrote:
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/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


Mustafa Yuecel <yuecelm@...>
 

Mohammed Amine SAYA wrote:
Mohammed Amine SAYA wrote:
| 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'

Cannot overwrite directory?
Sounds like a permission problem.
Did you build as root once?
No

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.
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 ?
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...


Mohammed Amine SAYA <amine.saya@...>
 

pHilipp Zabel wrote:
On 8/26/06, Mohammed Amine SAYA <amine.saya@...> wrote:

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/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'

| mv: cannot overwrite directory
Hi Philipp,
Thank you for your help.
Cannot overwrite directory?
Sounds like a permission problem.
Did you build as root once?
No
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.


Koen Kooi <koen@...>
 

-----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-----


Mohammed Amine SAYA <amine.saya@...>
 

Mohammed Amine SAYA wrote:
| 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.

Cannot overwrite directory?
Sounds like a permission problem.
Did you build as root once?
No

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.



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.


Mohammed Amine SAYA <amine.saya@...>
 

Koen Kooi wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bitbake 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.