error: package update-rc.d is not installed when using ros-meta with yocto dora

677 views
Skip to first unread message

Markus Eich

unread,
Mar 10, 2014, 6:20:29 AM3/10/14
to meta...@googlegroups.com
Dear all,


I have a problem baking my ros image with dora. The build process looks good, until the install process starts. The last output was

 164:Installing roslaunch       ######################################## [100%]
|                         python-xmlrpc
|   libgpg-error0                          rosclean
|   libkmod2                               rosconsole
|   liblog4cxx10                           roscpp
|   liblzma5                               roscpp-serialization
|   libmount1                              rosgraph
|   libmpc3                                rosgraph-msgs
|   libmpfr4                               roslaunch
|   libncursesw5                           roslib
|   libpam                                 rosmaster
|   libpam-runtime                         rosout
|   libpython2.7-1.0                       rospack
|   libreadline6                           rosparam
|   libssl1.0.0                            rospy
|   libstdc++6                             rostime
|   libsystemd-daemon0                     run-postinsts
|   libsystemd-id128-0                     shadow
|   libsystemd-journal0                    shadow-securetty
|   libtasn1-6                             std-msgs
|   libtinfo5                              systemd
|   libtinyxml2.6.2                        systemd-binfmt
|   libudev1                               systemd-compat-units
|   libuuid1                               systemd-serialgetty
|   libwrap0                               udev
|   libx11-6                               udev-hwdb
|   libxau6                                udev-utils
|   libxcb1                                update-alternatives-cworth
|   libxdmcp6                              update-rc.d
|   libz1                                  util-linux-agetty
|   make                                   util-linux-fsck
|   ncurses-terminfo-base                  util-linux-mount
|   netbase                                xmlrpcpp
|
| 46.0MB of package files are needed. 119.9MB will be used.
|
|
| Saving cache...



 Running intercept scripts:
| WARNING: The license listed MIT was not in the licenses collected for packagegroup-core-boot
| log_check: Using /home/eich/yocto/gumstix_ros_build/tmp/work/overo-poky-linux-gnueabi/core-image-ros-roscore/1.0-r0/temp/log.do_rootfs.26010 as logfile
| Logfile is clean
| error: package update-rc.d is not installed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_rootfs (log file is located at /home/eich/yocto/gumstix_ros_build/tmp/work/overo-poky-linux-gnueabi/core-image-ros-roscore/1.0-r0/temp/log.do_rootfs.26010)
ERROR: Task 7 (/home/eich/yocto/poky/meta-ros/recipes-core/images/core-image-ros-roscore.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3030 tasks of which 3027 didn't need to be rerun and 1 failed.
No currently running tasks (3029 of 3031)


It seems that update-rc,d is not installed.

But when I look into tmp/deploy/rpm/all it is there

update-rc.d-0.7-r5.all.rpm
update-rc.d-dbg-0.7-r5.all.rpm
update-rc.d-dev-0.7-r5.all.rpm


When I bitbake e.g. gumstix-console-image it finishes successfully.

When I run

bitbake core-image-ros-roscore

it produces the error stated above


my bblayers.conf looks like

LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
  /home/eich/yocto/poky/meta \
  /home/eich/yocto/poky/meta-yocto \
  /home/eich/yocto/poky/meta-openembedded/meta-gnome \
  /home/eich/yocto/poky/meta-openembedded/meta-oe \
  /home/eich/yocto/poky/meta-openembedded/meta-xfce \
  /home/eich/yocto/poky/meta-openembedded/meta-systemd \
  /home/eich/yocto/poky/meta-openembedded/meta-networking \
  /home/eich/yocto/poky/meta-openembedded/meta-multimedia \
  /home/eich/yocto/poky/meta-gumstix \
  /home/eich/yocto/poky/meta-gumstix-extras \
  /home/eich/yocto/poky/meta-ros \
  "


My versions:

poky Dora @d0e55dd
meta @d0e55dd
meta-openembedded @40e0f37
meta-gumstix @ 1d5ef1f
meta-gumstix-extras  @ 457a584
meta-ros @ master


Any ideas on this issue?


Cheers,

Markus









Stefan Herbrechtsmeier

unread,
Mar 10, 2014, 7:04:21 AM3/10/14
to meta...@googlegroups.com
Please search the log for more details regarding the update-rc.d package.

Have you cherry-pick some patches from the meta master and have you try
a clean build?

Markus Eich

unread,
Mar 10, 2014, 9:00:50 AM3/10/14
to meta...@googlegroups.com

Yes. It is a clean build.

I printed the last log below. I used the repositories given at https://github.com/gumstix/Gumstix-YoctoProject-Repo/blob/dev/default.xml

I only added meta-ros to the build and added it to the recipies. Tried also bitbake -c clean update-rc.d. after calling again
bitbake core-image-ros-roscore the build fails. but the package update-rc.d-0.7-r5.all.rpm is generated.

Log below



====begin log ====

NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.20.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.10"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "overo"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5.1"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta             
meta-yocto        = "(detachedfromyocto/dora):d0e55dd0ef92fef31976edfb920a021c313fa14e"
meta-gnome       
meta-oe          
meta-xfce        
meta-systemd     
meta-networking  
meta-multimedia   = "(detachedfrom40e0f37):40e0f371f3eb1628655c484feac0cebf810737b4"
meta-gumstix      = "(detachedfrom1d5ef1f):1d5ef1f64ad876c9a0aa7c1fce792a682166d97b"
meta-gumstix-extras = "(detachedfrom457a584):457a5842cb5831fd68184f5d2a7805759076f548"
meta-ros          = "master:097668a6dc955511b58f20ef12fcea96ac333874"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Running setscene task 1134 of 1137 (/home/eich/yocto/poky/meta/recipes-devtools/python/python_2.7.3.bb, do_populate_sysroot_setscene)
NOTE: Running setscene task 1135 of 1137 (/home/eich/yocto/poky/meta/recipes-devtools/python/python_2.7.3.bb, do_package_write_rpm_setscene)
NOTE: recipe python-2.7.3-r0.3: task do_populate_sysroot_setscene: Started
NOTE: recipe python-2.7.3-r0.3: task do_package_write_rpm_setscene: Started
NOTE: recipe python-2.7.3-r0.3: task do_package_write_rpm_setscene: Succeeded
NOTE: Running setscene task 1136 of 1137 (/home/eich/yocto/poky/meta/recipes-devtools/python/python_2.7.3.bb, do_packagedata_setscene)
NOTE: recipe python-2.7.3-r0.3: task do_packagedata_setscene: Started
NOTE: recipe python-2.7.3-r0.3: task do_packagedata_setscene: Succeeded
NOTE: Running setscene task 1137 of 1137 (/home/eich/yocto/poky/meta/recipes-devtools/python/python_2.7.3.bb, do_package_setscene)
NOTE: recipe python-2.7.3-r0.3: task do_populate_sysroot_setscene: Succeeded
NOTE: recipe python-2.7.3-r0.3: task do_package_setscene: Started
NOTE: recipe python-2.7.3-r0.3: task do_package_setscene: Succeeded
NOTE: Executing RunQueue Tasks
NOTE: Running noexec task 1884 of 3031 (ID: 1010, /home/eich/yocto/poky/meta/recipes-devtools/python/python_2.7.3.bb, do_package_write)
NOTE: Running noexec task 2858 of 3031 (ID: 1013, /home/eich/yocto/poky/meta/recipes-devtools/python/python_2.7.3.bb, do_build)
NOTE: Running task 3029 of 3031 (ID: 7, /home/eich/yocto/poky/meta-ros/recipes-core/images/core-image-ros-roscore.bb, do_rootfs)
NOTE: recipe core-image-ros-roscore-1.0-r0: task do_rootfs: Started

ERROR: Function failed: do_rootfs (log file is located at /home/eich/yocto/gumstix_ros_build/tmp/work/overo-poky-linux-gnueabi/core-image-ros-roscore/1.0-r0/temp/log.do_rootfs.26010)
ERROR: Logfile of failure stored in: /home/eich/yocto/gumstix_ros_build/tmp/work/overo-poky-linux-gnueabi/core-image-ros-roscore/1.0-r0/temp/log.do_rootfs.26010
NOTE: recipe core-image-ros-roscore-1.0-r0: task do_rootfs: Failed

Stefan Herbrechtsmeier

unread,
Mar 10, 2014, 10:20:46 AM3/10/14
to meta...@googlegroups.com
Have you manually remove the tmp and sstate directory?



I printed the last log below.
Have you check the detail log: /home/eich/yocto/gumstix_ros_build/tmp/work/overo-poky-linux-gnueabi/core-image-ros-roscore/1.0-r0/temp/log.do_rootfs.26010
The meta-ros repository is only tested with the master branch.


I only added meta-ros to the build and added it to the recipies. Tried also bitbake -c clean update-rc.d. after calling again
bitbake core-image-ros-roscore the build fails. but the package update-rc.d-0.7-r5.all.rpm is generated.
Have you apply any patches or manually change something?

Markus Eich

unread,
Mar 10, 2014, 10:50:51 AM3/10/14
to meta...@googlegroups.com

Nope. It is just a clean setup. I have simply called . poky/oe-init-build-en gumstix_ros_build which should set all path. tmp and sstate-cache is where it should be.
maybe a version conflict with update-rc?



I printed the last log below.
Have you check the detail log: /home/eich/yocto/gumstix_ros_build/tmp/work/overo-poky-linux-gnueabi/core-image-ros-roscore/1.0-r0/temp/log.do_rootfs.26010

Yes. Posted here in pastebin

http://pastebin.com/ecbpfZdC

 

The meta-ros repository is only tested with the master branch.

I think there were problems with the old yocto/dylan branch? There was a reason I used yocto/dora

I only added meta-ros to the build and added it to the recipies. Tried also bitbake -c clean update-rc.d. after calling again
bitbake core-image-ros-roscore the build fails. but the package update-rc.d-0.7-r5.all.rpm is generated.
Have you apply any patches or manually change something?
Nope. Just pure checkout and build. I just added meta_ros.

Stefan Herbrechtsmeier

unread,
Mar 10, 2014, 11:09:19 AM3/10/14
to meta...@googlegroups.com
Am 10.03.2014 15:50, schrieb Markus Eich:
 
The meta-ros repository is only tested with the master branch.

I think there were problems with the old yocto/dylan branch? There was a reason I used yocto/dora
None of the yocto release branches are tested.

You could try to add packagegroup-core-boot to your image.

Markus Eich

unread,
Mar 10, 2014, 11:39:30 AM3/10/14
to meta...@googlegroups.com
Issue Solved!

The recipe I used was core-image-ros-roscore.bb

This contains the line

# remove not needed ipkg informations
ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files"

This causes the problem. I commented the line and now everything build fine.

Cheers,

Markus

Stefan Herbrechtsmeier

unread,
Mar 10, 2014, 11:58:22 AM3/10/14
to meta...@googlegroups.com
Am 10.03.2014 16:39, schrieb Markus Eich:
> The recipe I used was core-image-ros-roscore.bb
>
> This contains the line
>
> # remove not needed ipkg informations
> ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files"
>
> This causes the problem. I commented the line and now everything build
> fine.
Could you please open an issue on github. Maybe we could remove that line.

Reply all
Reply to author
Forward
0 new messages