STATUS: FAILED BUILD: 1.6_M5_RC1:47ceed0d8d60a3ddc398738acafe3aabf4ab8c90 ENVIRONMENT: Ubuntu 13.10 x86_64 STEPS TO REPRODUCE: launch hob select one "Machine", for example, qemux86 in "Settings"->"Output", select deb for "packaging format" click "Save" and select one image, for example, "core-image-minimal" click "Just Bake" button and it should build recipes with deb format EXPECTED OUTCOME: Build image with deb package format. Actual Outcome: Hob stops during build and throws an error as below: NOTE: Running task 1778 of 1779 (ID: 7, /home/lucian/work/m5-rc1/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) ERROR: Index creation command 'cd /home/lucian/work/m5-rc1/poky/build/tmp/deploy/deb/all; /home/lucian/work/m5-rc1/poky/build/tmp/sysroots/x86_64-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' failed with return code 2: gzip: Packages does not exist -- skipping ERROR: Function failed: do_rootfs NOTE: recipe core-image-minimal-1.0-r0: task do_rootfs: Failed ERROR: Task 7 (/home/lucian/work/m5-rc1/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1' NOTE: Tasks Summary: Attempted 1778 tasks of which 1755 didn't need to be rerun and 1 failed.
With the same meta data, did you try build deb from the command line? And was is succesful?
Hello, Tried from command line and this is the output: NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: Index creation command 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' failed with return code 1: gzip: abort: write error on Packages.gz ERROR: Function failed: do_rootfs WARNING: Debian package install does not support BAD_RECOMMENDATIONS ERROR: Logfile of failure stored in: /home/lucian/work/poky/build/tmp/work/genericx86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.10336 ERROR: Task 7 (/home/lucian/work/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1' ERROR: Index creation command 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' failed with return code 1: gzip: abort: write error on Packages.gz ERROR: Function failed: do_rootfs ERROR: Logfile of failure stored in: /home/lucian/work/poky/build/tmp/work/genericx86-poky-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_rootfs.10341 ERROR: Task 141 (/home/lucian/work/poky/meta/recipes-core/images/core-image-minimal-initramfs.bb, do_rootfs) failed with exit code '1' In log file: DEBUG: Executing python function rootfs_deb_bad_recommendations DEBUG: Python function rootfs_deb_bad_recommendations finished DEBUG: Executing python function rootfs_process_ignore DEBUG: Python function rootfs_process_ignore finished DEBUG: Executing python function rootfs_runtime_mapping DEBUG: Python function rootfs_runtime_mapping finished DEBUG: Executing python function do_rootfs NOTE: ###### Generate rootfs ####### NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release >> Release' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/core2-32; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive packages > Packages' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/core2-32; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/genericx86; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive packages > Packages' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/core2-32; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release >> Release' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/genericx86; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/genericx86; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release >> Release' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive packages > Packages' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' ... NOTE: Executing 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release >> Release' ... ERROR: Index creation command 'cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz' failed with return code 1: gzip: abort: write error on Packages.gz
What are the permissions on that file / directory? Can you see anything that would indicate why there would be a "write error"?
Hello Paul, The file permissions are ok, and also switching to RPM or IPK worked.
So no clues as to why it would say "write error" then?
I am guessing that the gzip binary delivered is wrong. I see that it tries to archive the folder "Packages" into Packages.gz as it says in the log: "/home/lucian/work/m5-rc1/poky/build/tmp/sysroots/x86_64-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz" That is the line that throws the error. I have tried to zip it using OpenSuse's gzip and works, but using the gzip binary in the pigz-native folder that is being used, it fails saying that Packages.gz exists: lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all> rm Packages.gz lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all> /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c > Packages.gz Packages.gz exists -- overwrite (y/n)? n gzip: Packages.gz exists -- skipping lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all> gzip Packages -c > Packages.gz lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all>
Haven't seen this error in the latest builds.
(In reply to comment #7) > Haven't seen this error in the latest builds. If we can no longer reproduce this problem, can we mark the bug as resolved - works for me? Thanks!
Ok, setting to Resolved.
verified on master: ea562de57590c966cd5a75fda8defecd397e6436