Bug 6088 - Error during DEB package build
Summary: Error during DEB package build
Status: VERIFIED WORKSFORME
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.7 M1
Assignee: Marius Avram
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-04-01 10:37 UTC by Lucian Musat
Modified: 2015-09-21 08:50 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucian Musat 2014-04-01 10:37:32 UTC
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.
Comment 1 Jessica 2014-04-02 05:29:09 UTC
With the same meta data, did you try build deb from the command line? And was is succesful?
Comment 2 Lucian Musat 2014-04-03 11:06:50 UTC
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
Comment 3 Paul Eggleton 2014-04-03 14:46:41 UTC
What are the permissions on that file / directory? Can you see anything that would indicate why there would be a "write error"?
Comment 4 Lucian Musat 2014-04-07 09:08:04 UTC
Hello Paul,

The file permissions are ok, and also switching to RPM or IPK worked.
Comment 5 Paul Eggleton 2014-04-07 09:20:06 UTC
So no clues as to why it would say "write error" then?
Comment 6 Lucian Musat 2014-04-08 10:51:13 UTC
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>
Comment 7 Lucian Musat 2014-04-14 16:11:07 UTC
Haven't seen this error in the latest builds.
Comment 8 Belen Barros Pena 2014-05-14 16:44:37 UTC
(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!
Comment 9 Lucian Musat 2014-05-15 08:55:53 UTC
Ok, setting to Resolved.
Comment 10 Alexandru Roman 2015-09-21 08:50:04 UTC
verified on master: ea562de57590c966cd5a75fda8defecd397e6436