All of lore.kernel.org
 help / color / mirror / Atom feed
* [poky] ERROR: Function failed: do_rootfs, when using ipk package class
@ 2014-04-16 16:28 Elvis Dowson
  2014-04-16 16:31 ` Chris Larson
  0 siblings, 1 reply; 2+ messages in thread
From: Elvis Dowson @ 2014-04-16 16:28 UTC (permalink / raw)
  To: Yocto Discussion Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 3501 bytes --]

Hi,

I just tries a build with poky master, and meta-xilinx master branch, and got the following build error.

For some reason the yocto build process fails is PACKAGE_CLASSES is set to package_ipk. 

ERROR: Unable to install packages. Command '/tool/yocto/build/zc706/tmp/sysroots/x86_64-lux/usr/bin/opkg-cl -f /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/opkg.conf -o /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version   install run-postinsts packagegroup-core-boot' returned 255:
Installing run-postinsts (1.0-r9) to root...
Downloading file:/tool/yocto/build/zc706/tmp/deploy/ipk/all/run-postinsts_1.0-r9_all.ipk.
Installing update-rc.d (0.7-r5) to root...
Downloading file:/tool/yocto/build/zc706/tmp/deploy/ipk/all/update-rc.d_0.7-r5_all.ipk.
sh: 1: /tmp/opkg-RUBbug/run-postinsts-mxgou5/preinst: Permission denied
Installing packagegroup-core-boot (1.0-r17) to root...
Downloading file:/tool/yocto/build/zc706/tmp/deploy/ipk/zc706_zynq7/packagegroup-core-boot_1.0-r17_zc706_zynq7.ipk.
Installing busybox (1.22.1-r0) to root...
Downloading file:/tool/yocto/build/zc706/tmp/deploy/ipk/armv7a-vfp-neon/busybox_1.22.1-r0_armv7a-vfp-neon.ipk.
Installing update-alternatives-opkg (0.1.8+git0+c33b217016-r0) to root...
Downloading file:/tool/yocto/build/zc706/tmp/deploy/ipk/armv7a-vfp-neon/update-alternatives-opkg_0.1.8+git0+c33b217016-r0_armv7a-vfp-neon.ipk.
Installing libc6 (2.19-r0) to root...
Downloading file:/tool/yocto/build/zc706/tmp/deploy/ipk/armv7a-vfp-neon/libc6_2.19-r0_armv7a-vfp-neon.ipk.
Installing busybox-syslog (1.22.1-r0) to root...
Downloading file:/tool/yocto/build/zc706/tmp/deploy/ipk/armv7a-vfp-neon/busybox-syslog_1.22.1-r0_armv7a-vfp-neon.ipk.
sh: 1: /tmp/opkg-RUBbug/busybox-syslog-FMmuzB/preinst: Permission denied
update-alternatives: Linking /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs//usr/bin/ar to /bin/busybox.nosuid
update-alternatives: Linking /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs//bin/gunzip to /bin/busybox.nosuid

<snip>

update-alternatives: Linking /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs//usr/bin/vlock to /bin/busybox.suid
Configuring libc6.
Configuring update-alternatives-opkg.
Configuring update-rc.d.
Configuring busybox.
Collected errors:
 * preinst_configure: Aborting installation of run-postinsts.
 * opkg_install_cmd: Cannot install package run-postinsts.
 * preinst_configure: Aborting installation of busybox-syslog.
 * opkg_install_cmd: Cannot install package packagegroup-core-boot.

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.2749
ERROR: Task 7 (/tool/yocto/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1728 tasks of which 1727 didn't need to be rerun and 1 failed.
No currently running tasks (1727 of 1729)


Setting it to rpm works. I ran into this issue recently. 

I’m using Ubuntu-12.10 as the host. 

I recall things used to work file with package_ipk earlier, but with recent releases, the build process only works with package_rpm.


Regards,

Elvis Dowson

[-- Attachment #1.2: Type: text/html, Size: 5772 bytes --]

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 1563 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [poky] ERROR: Function failed: do_rootfs, when using ipk package class
  2014-04-16 16:28 [poky] ERROR: Function failed: do_rootfs, when using ipk package class Elvis Dowson
@ 2014-04-16 16:31 ` Chris Larson
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Larson @ 2014-04-16 16:31 UTC (permalink / raw)
  To: Elvis Dowson; +Cc: Yocto Discussion Mailing List

[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]

On Wed, Apr 16, 2014 at 9:28 AM, Elvis Dowson <elvis.dowson@gmail.com>wrote:

> I just tries a build with poky master, and meta-xilinx master branch, and
> got the following build error.
>
> For some reason the yocto build process fails is PACKAGE_CLASSES is set to
> package_ipk.
>
> ERROR: Unable to install packages. Command
> '/tool/yocto/build/zc706/tmp/sysroots/x86_64-lux/usr/bin/opkg-cl -f
> /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/opkg.conf
> -o
> /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs
> --force_postinstall --prefer-arch-to-version   install run-postinsts
> packagegroup-core-boot' returned 255:
> Installing run-postinsts (1.0-r9) to root...
> Downloading
> file:/tool/yocto/build/zc706/tmp/deploy/ipk/all/run-postinsts_1.0-r9_all.ipk.
> Installing update-rc.d (0.7-r5) to root...
> Downloading
> file:/tool/yocto/build/zc706/tmp/deploy/ipk/all/update-rc.d_0.7-r5_all.ipk.
> sh: 1: /tmp/opkg-RUBbug/run-postinsts-mxgou5/preinst: Permission denied
>

Sounds like your /tmp is mounted disallowing execution there, and opkg must
assume it's able to execute its scripts there. Either use a different
package manager, fix opkg to change this behavior, or change your /tmp
mount to no longer be noexec.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 2162 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-16 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16 16:28 [poky] ERROR: Function failed: do_rootfs, when using ipk package class Elvis Dowson
2014-04-16 16:31 ` Chris Larson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.