[opkg-devel] openembedded/angstrom: opkg_install_cmd: cannot install package

1,463 views
Skip to first unread message

Martin Ereth

unread,
Apr 28, 2010, 1:23:01 PM4/28/10
to opkg-devel
Hello,

I was trying to build angstrom with openembedded. For those who do not
know this: You can build an image for an embedded computer.
OpenEmbedded uses opkg, that is the reason I am writing here.

Openembedded uses several steps to build the root filesystem for the
embedded linux. It uses recipes, so I only issue "bitbake -b
name_of_recipe.bb" and it runs like it is written down in grandma's
recipe ;-).

I was trying to do this on gentoo and ubuntu, both fail with the same
error.

To make long things short: opkg-cl is called like this:
$ opkg-cl -f /home/patulma/openembedded/build/tmp/staging/x86_64-linux/
etc/opkg.conf -o /home/patulma/openembedded/build/tmp/rootfs/console-
base-image -t /home/patulma/openembedded/build/tmp/rootfs/console-base-
image-tmp install task-base psplash-angstrom psplash-zap initscripts
udev sysvinit sysvinit-pidof tinylogin opkg-nogpg-nocurl angstrom-
version angstrom-feed-configs opkg-collateral

I run the command manually on command line and got the same error as
using openembedded: "opkg_install_cmd: Cannot install package
<xxx>." (Where <xxx> stands for all of the previously specified
arguments on the command line.)

I can not find out, where it fails; even using verbosity 5 doesn't
show anything strange.

Please find the three excerpts at the end of this message showing the
"call of bitbake", the log messages with the error and opkg-cl with -
V 5.

Maybe you are able to help me?

Thanks a lot,
Martin

Attachments:
1) Call of bitbake with one default recipe
2) Log messages
3) opkg-cl with -V 5

1) Call of bitbake with the recipe:
$ bitbake -b openembedded/recipes/images/console-base-image.bb
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 1 of 19 (ID: 6, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_setscene)
NOTE: Running task 2 of 19 (ID: 5, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_fetch)
NOTE: Running task 3 of 19 (ID: 0, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_unpack)
NOTE: Unpacking ../openembedded/recipes/images/console-base-image.bb
to tmp/work/at91sam9263ek-angstrom-linux-gnueabi/console-base-
image-1.0-r0/
NOTE: Running task 4 of 19 (ID: 1, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_patch)
NOTE: Running task 5 of 19 (ID: 7, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_configure)
NOTE: Running task 6 of 19 (ID: 8, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_qa_configure)
NOTE: Running task 7 of 19 (ID: 9, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_compile)
NOTE: Running task 8 of 19 (ID: 2, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_install)
NOTE: Running task 9 of 19 (ID: 13, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_package)
NOTE: Running task 10 of 19 (ID: 3, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb,
do_populate_staging)
NOTE: Running task 11 of 19 (ID: 17, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb,
do_package_write_ipk)
NOTE: Running task 12 of 19 (ID: 12, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_package_write)
NOTE: Running task 13 of 19 (ID: 16, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_package_stage)
NOTE: Running task 14 of 19 (ID: 18, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb,
do_package_update_index_ipk)
NOTE: Running task 15 of 19 (ID: 15, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb,
do_package_stage_all)
NOTE: Running task 16 of 19 (ID: 14, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb,
do_distribute_sources)
NOTE: Running task 17 of 19 (ID: 11, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_qa_staging)
NOTE: Running task 18 of 19 (ID: 10, /home/patulma/openembedded/
openembedded/recipes/images/console-base-image.bb, do_rootfs)
ERROR: function do_rootfs failed
ERROR: see log in /home/patulma/openembedded/build/tmp/work/
at91sam9263ek-angstrom-linux-gnueabi/console-base-image-1.0-r0/temp/
log.do_rootfs.16981
NOTE: Task failed: /home/patulma/openembedded/build/tmp/work/
at91sam9263ek-angstrom-linux-gnueabi/console-base-image-1.0-r0/temp/
log.do_rootfs.16981
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/patulma/openembedded/openembedded/recipes/images/
console-base-image.bb do_rootfs failed
ERROR: Task 10 (/home/patulma/openembedded/openembedded/recipes/images/
console-base-image.bb, do_rootfs) failed
NOTE: Tasks Summary: Attempted 17 tasks of which 0 didn't need to be
rerun and 1 failed.
ERROR: '/home/patulma/openembedded/openembedded/recipes/images/console-
base-image.bb' failed



2) Log messages:
+ rm -rf /home/patulma/openembedded/build/tmp/rootfs/console-base-
image
+ mkdir -p /home/patulma/openembedded/build/tmp/rootfs/console-base-
image
+ mkdir -p /home/patulma/openembedded/build/tmp/deploy/glibc/images/
at91sam9263ek
+ mkdir -p /home/patulma/openembedded/build/tmp/rootfs/console-base-
image/etc
+ '[' 0 '!=' 1 ']'
+ rm -rf /home/patulma/openembedded/build/tmp/rootfs/console-base-
image/etc/device_table
+ for devtable in /home/patulma/openembedded/openembedded/files/
device_table-minimal.txt
+ cat /home/patulma/openembedded/openembedded/files/device_table-
minimal.txt
+ makedevs -r /home/patulma/openembedded/build/tmp/rootfs/console-base-
image -D /home/patulma/openembedded/openembedded/files/device_table-
minimal.txt
+ rootfs_ipk_do_rootfs
+ set -x
+ package_generate_ipkg_conf
+ mkdir -p /home/patulma/openembedded/build/tmp/staging/x86_64-linux/
etc/
+ echo 'src oe file:/home/patulma/openembedded/build/tmp/deploy/glibc/
ipk'
+ echo 'src oe file:/home/patulma/openembedded/build/tmp/deploy/glibc/
ipk'
+ echo 'src oe file:/home/patulma/openembedded/build/tmp/deploy/glibc/
ipk'
+ ipkgarchs='all any noarch arm armv4 armv4t armv5te at91sam9263ek'
+ priority=1
+ for arch in '$ipkgarchs'
+ echo 'arch all 1'
+ echo 'arch x86_64-all-sdk 1'
+ echo 'arch x86_64-linux-sdk-all 1'
++ expr 1 + 5
+ priority=6
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/all/
Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
all-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-all/Packages ']'
+ for arch in '$ipkgarchs'
+ echo 'arch any 6'
+ echo 'arch x86_64-any-sdk 6'
+ echo 'arch x86_64-linux-sdk-any 6'
++ expr 6 + 5
+ priority=11
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/any/
Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
any-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-any/Packages ']'
+ for arch in '$ipkgarchs'
+ echo 'arch noarch 11'
+ echo 'arch x86_64-noarch-sdk 11'
+ echo 'arch x86_64-linux-sdk-noarch 11'
++ expr 11 + 5
+ priority=16
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/noarch/
Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
noarch-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-noarch/Packages ']'
+ for arch in '$ipkgarchs'
+ echo 'arch arm 16'
+ echo 'arch x86_64-arm-sdk 16'
+ echo 'arch x86_64-linux-sdk-arm 16'
++ expr 16 + 5
+ priority=21
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/arm/
Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
arm-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-arm/Packages ']'
+ for arch in '$ipkgarchs'
+ echo 'arch armv4 21'
+ echo 'arch x86_64-armv4-sdk 21'
+ echo 'arch x86_64-linux-sdk-armv4 21'
++ expr 21 + 5
+ priority=26
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/armv4/
Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
armv4-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-armv4/Packages ']'
+ for arch in '$ipkgarchs'
+ echo 'arch armv4t 26'
+ echo 'arch x86_64-armv4t-sdk 26'
+ echo 'arch x86_64-linux-sdk-armv4t 26'
++ expr 26 + 5
+ priority=31
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/armv4t/
Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
armv4t-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-armv4t/Packages ']'
+ for arch in '$ipkgarchs'
+ echo 'arch armv5te 31'
+ echo 'arch x86_64-armv5te-sdk 31'
+ echo 'arch x86_64-linux-sdk-armv5te 31'
++ expr 31 + 5
+ priority=36
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/armv5te/
Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
armv5te-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-armv5te/Packages ']'
+ for arch in '$ipkgarchs'
+ echo 'arch at91sam9263ek 36'
+ echo 'arch x86_64-at91sam9263ek-sdk 36'
+ echo 'arch x86_64-linux-sdk-at91sam9263ek 36'
++ expr 36 + 5
+ priority=41
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/
at91sam9263ek/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
at91sam9263ek-sdk/Packages ']'
+ '[' -e /home/patulma/openembedded/build/tmp/deploy/glibc/ipk/x86_64-
linux-sdk-at91sam9263ek/Packages ']'
+ mkdir -p /home/patulma/openembedded/build/tmp/work/at91sam9263ek-
angstrom-linux-gnueabi/console-base-image-1.0-r0/temp
+ mkdir -p /home/patulma/openembedded/build/tmp/rootfs/console-base-
image-tmp
+ mkdir -p /home/patulma/openembedded/build/tmp/rootfs/console-base-
image/usr/lib/opkg/
+ mkdir -p /home/patulma/openembedded/build/tmp/rootfs/console-base-
image/var/lib/opkg/opkg
+ STATUS=/home/patulma/openembedded/build/tmp/rootfs/console-base-
image/usr/lib/opkg/status
+ opkg-cl -f /home/patulma/openembedded/build/tmp/staging/x86_64-linux/
etc/opkg.conf -o /home/patulma/openembedded/build/tmp/rootfs/console-
base-image -t /home/patulma/openembedded/build/tmp/rootfs/console-base-
image-tmp update
Downloading file:/home/patulma/openembedded/build/tmp/deploy/glibc/ipk/
Packages.
Updated list of available packages in /home/patulma/openembedded/build/
tmp/rootfs/console-base-image//var/lib/opkg/opkg/lists/oe.
+ '[' xlinux-gnueabi = xlinux ']'
+ '[' xlinux-gnueabi = xlinux-gnueabi ']'
+ '[' '!' -z '' ']'
+ '[' '!' -z 'task-base psplash-angstrom psplash-zap initscripts udev
sysvinit sysvinit-pidof tinylogin opkg-nogpg-nocurl angstrom-version
angstrom-feed-configs opkg-collateral' ']'
+ opkg-cl -f /home/patulma/openembedded/build/tmp/staging/x86_64-linux/
etc/opkg.conf -o /home/patulma/openembedded/build/tmp/rootfs/console-
base-image -t /home/patulma/openembedded/build/tmp/rootfs/console-base-
image-tmp install task-base psplash-angstrom psplash-zap initscripts
udev sysvinit sysvinit-pidof tinylogin opkg-nogpg-nocurl angstrom-
version angstrom-feed-configs opkg-collateral
Collected errors:
* opkg_install_cmd: Cannot install package task-base.
* opkg_install_cmd: Cannot install package psplash-angstrom.
* opkg_install_cmd: Cannot install package psplash-zap.
* opkg_install_cmd: Cannot install package initscripts.
* opkg_install_cmd: Cannot install package udev.
* opkg_install_cmd: Cannot install package sysvinit.
* opkg_install_cmd: Cannot install package sysvinit-pidof.
* opkg_install_cmd: Cannot install package tinylogin.
* opkg_install_cmd: Cannot install package opkg-nogpg-nocurl.
* opkg_install_cmd: Cannot install package angstrom-version.
* opkg_install_cmd: Cannot install package angstrom-feed-configs.
* opkg_install_cmd: Cannot install package opkg-collateral.



3) $ opkg-cl -V 5 -f /home/patulma/openembedded/build/tmp/staging/
x86_64-linux/etc/opkg.conf -o /home/patulma/openembedded/build/tmp/
rootfs/console-base-image -t /home/patulma/openembedded/build/tmp/
rootfs/console-base-image-tmp install task-base psplash-angstrom
psplash-zap initscripts udev sysvinit sysvinit-pidof tinylogin opkg-
nogpg-nocurl angstrom-version angstrom-feed-configs opkg-collateral
opkg_conf_parse_file: Loading conf file /home/patulma/openembedded/
build/tmp/staging/x86_64-linux/etc/opkg.conf.
opkg_conf_parse_file: Supported arch all priority (1)
opkg_conf_parse_file: Supported arch any priority (6)
opkg_conf_parse_file: Supported arch noarch priority (11)
opkg_conf_parse_file: Supported arch arm priority (16)
opkg_conf_parse_file: Supported arch armv4 priority (21)
opkg_conf_parse_file: Supported arch armv4t priority (26)
opkg_conf_parse_file: Supported arch armv5te priority (31)
opkg_conf_parse_file: Supported arch at91sam9263ek priority (36)
pkg_hash_load_feeds:
pkg_hash_load_status_files:
opkg_install_cmd: task-base
opkg_install_cmd: psplash-angstrom
opkg_install_cmd: psplash-zap
opkg_install_cmd: initscripts
opkg_install_cmd: udev
opkg_install_cmd: sysvinit
opkg_install_cmd: sysvinit-pidof
opkg_install_cmd: tinylogin
opkg_install_cmd: opkg-nogpg-nocurl
opkg_install_cmd: angstrom-version
opkg_install_cmd: angstrom-feed-configs
opkg_install_cmd: opkg-collateral
pkg_info_preinstall_check: Updating file owner list.
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring
them...
write_status_files_if_changed: Nothing to be done.
hash_table: pkg-hash, 24576 bytes
n_buckets=1024, n_elements=0, n_collisions=0
max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
n_hits=0, n_misses=24
hash_table: file-hash, 24576 bytes
n_buckets=1024, n_elements=0, n_collisions=0
max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
n_hits=0, n_misses=0
hash_table: obs-file-hash, 1536 bytes
n_buckets=64, n_elements=0, n_collisions=0
max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
n_hits=0, n_misses=0
Collected errors:
* opkg_install_cmd: Cannot install package task-base.
* opkg_install_cmd: Cannot install package psplash-angstrom.
* opkg_install_cmd: Cannot install package psplash-zap.
* opkg_install_cmd: Cannot install package initscripts.
* opkg_install_cmd: Cannot install package udev.
* opkg_install_cmd: Cannot install package sysvinit.
* opkg_install_cmd: Cannot install package sysvinit-pidof.
* opkg_install_cmd: Cannot install package tinylogin.
* opkg_install_cmd: Cannot install package opkg-nogpg-nocurl.
* opkg_install_cmd: Cannot install package angstrom-version.
* opkg_install_cmd: Cannot install package angstrom-feed-configs.
* opkg_install_cmd: Cannot install package opkg-collateral.

--
You received this message because you are subscribed to the Google Groups "opkg-devel" group.
To post to this group, send email to opkg-...@googlegroups.com.
To unsubscribe from this group, send email to opkg-devel+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opkg-devel?hl=en.

Graham Gower

unread,
Apr 29, 2010, 2:56:31 AM4/29/10
to opkg-...@googlegroups.com
It looks like opkg cannot find any packages by the specified names.

What packages do you see when you list all packages? I.e.

opkg-cl -f /home/patulma/openembedded/build/tmp/staging/
x86_64-linux/etc/opkg.conf -o /home/patulma/openembedded/build/tmp/
rootfs/console-base-image -t /home/patulma/openembedded/build/tmp/
rootfs/console-base-image-tmp list


I'll add an extra error message in this case as it appears to be
missing, but I suspect something else has gone wrong with your
openembedded configuration. You may have more luck with their mailing
list.

-Graham

Koen Kooi

unread,
Apr 29, 2010, 4:49:46 PM4/29/10
to opkg-devel


On 28 apr, 19:23, Martin Ereth <martin.er...@googlemail.com> wrote:
> Hello,
>
> I was trying to build angstrom with openembedded. For those who do not
> know this: You can build an image for an embedded computer.
> OpenEmbedded uses opkg, that is the reason I am writing here.
>
> Openembedded uses several steps to build the root filesystem for the
> embedded linux. It uses recipes, so I only issue "bitbake -b
> name_of_recipe.bb" and it runs like it is written down in grandma's
> recipe ;-).

bitbake -b doesn't do dependency tracking, so that's probably why opkg
can't find some packages. If you build them in the wrong order the
shlib code can do renaming properly and will generate bogus deps.

regards,

Koen
Reply all
Reply to author
Forward
0 new messages