| Summary: | Function 'BUILDSPEC' failed for libpthread-stubs | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jiajun Xu <jiajun.xu> |
| Component: | core | Assignee: | Dongxiao Xu <dongxiao.xu> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | dvhart, ke.yu, mark.hatle, meta.mr.watcher, meta.watcher, msm-oss, richard.purdie, sgw, shane.wang |
| Version: | unspecified | ||
| Target Milestone: | 1.2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Jiajun Xu
2011-08-03 20:07:07 UTC
I tried it locally, however could not reproduce this bug in my environment. bitbake libpthread-stubs works OK. Mark, any hints as to why this occurs randomly? Another case of this issue, with a different package ERROR: Function 'BUILDSPEC' failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/temp/log.do_package_write_rpm.4851 for further information) ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/temp/log.do_package_write_rpm.4851 Log data follows: | NOTE: Creating RPM package for base-files-doc | NOTE: Creating RPM package for base-files | NOTE: Creating RPM package for base-files | NOTE: Creating EMPTY RPM Package for base-files-dev | NOTE: Creating EMPTY RPM Package for base-files-dbg | ERROR: Function 'BUILDSPEC' failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/temp/log.do_package_write_rpm.4851 for further information) | Building target platforms: qemux86-poky-linux-gnu | Processing files: base-files-3.0.14-r69.qemux86 | Finding Provides: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/base-files.requires | Finding Requires: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/base-files.requires | Processing files: base-files-doc-3.0.14-r69.qemux86 | Finding Provides: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/base-files.requires | Finding Requires: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/base-files.requires | Processing files: base-files-dev-3.0.14-r69.qemux86 | Processing files: base-files-dbg-3.0.14-r69.qemux86 | Checking for unpackaged file(s): /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/lib/rpm/check-files /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/qemux86-poky-linux/base-files-3.0.14-r69/package | warning: Could not canonicalize hostname: autobuilder | error: Unable to open temp file. | | | RPM build errors: | Could not canonicalize hostname: autobuilder | Unable to open temp file. NOTE: package base-files-3.0.14-r69: task do_package_write_rpm: Failed ERROR: Task 658 (/srv/home/pokybuild/poky-slave/nightly-external/build/meta/recipes-core/base-files/base-files_3.0.14.bb, do_package_write_rpm) failed with exit code '1' Jiajin, we haven't been able to reproduce, have you seen this since reporting it? (In reply to comment #4) > Jiajin, we haven't been able to reproduce, have you seen this since reporting > it? I could not reproduce the bug on local machine with same M3 commit. Meanwhile, we do not find same issue on autobuilder. I suggest to mark the bug as "WORKSFORME". If we meet the issue again, we could reopen it. Verify the bug as WORKSFORME according the last comments. Occasionally I met this issue within my build, however rebuild it will pass.
Reopen this bug!
NOTE: Creating RPM package for update-rc.d-dbg
NOTE: Creating RPM package for update-rc.d
NOTE: Creating RPM package for update-rc.d
NOTE: Not creating empty RPM package for update-rc.d-doc
NOTE: Creating EMPTY RPM Package for update-rc.d-dev
NOTE: Not creating empty RPM package for update-rc.d-staticdev
NOTE: Not creating empty RPM package for update-rc.d-locale
Building target platforms: all-poky-linux
Processing files: update-rc.d-0.7-r4.all
Finding Provides: /distro/dongxiao/build-lib/tmp/work/all-poky-linux/update-rc.d-0.7-r4/update-rc.d.requires
Finding Requires: /distro/dongxiao/build-lib/tmp/work/all-poky-linux/update-rc.d-0.7-r4/update-rc.d.requires
Processing files: update-rc.d-dbg-0.7-r4.all
Finding Provides: /distro/dongxiao/build-lib/tmp/work/all-poky-linux/update-rc.d-0.7-r4/update-rc.d.requires
Finding Requires: /distro/dongxiao/build-lib/tmp/work/all-poky-linux/update-rc.d-0.7-r4/update-rc.d.requires
Processing files: update-rc.d-dev-0.7-r4.all
Checking for unpackaged file(s): /distro/dongxiao/build-lib/tmp/sysroots/x86_64-linux/usr/lib/rpm/check-files /distro/dongxiao/build-lib/tmp/work/all-poky-linux/update-rc.d-0.7-r4/package
error: Unable to open temp file.
RPM build errors:
Unable to open temp file.
ERROR: Function 'BUILDSPEC' failed (see /distro/dongxiao/build-lib/tmp/work/all-poky-linux/update-rc.d-0.7-r4/temp/log.do_package_write_rpm.16183 for further information)
I'm seeing this error too! I will note that it happens when my sstate-cache is being tested so a few things have taken place: 1) A lot of the recipes are built out of cache 2) The directory structure and paths have changed from the build environment where the sstate-cache was created Is there a way to see the spec file RPM is complaining about? Any thoughts on making this a higher priority bug? -M | RPM build errors: | Unable to open temp file. NOTE: package intltool-0.40.6-r5: task do_package_write_rpm: Failed ERROR: Function 'BUILDSPEC' failed (see /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/temp/log.do_package_write_rpm.15636 for further information) ERROR: Logfile of failure stored in: /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/temp/log.do_package_write_rpm.15636 Log data follows: | NOTE: Creating RPM package for automake-dbg | NOTE: Creating RPM package for automake | NOTE: Creating RPM package for automake | NOTE: Creating RPM package for automake-doc | NOTE: Creating EMPTY RPM Package for automake-dev | NOTE: Not creating empty RPM package for automake-staticdev | NOTE: Not creating empty RPM package for automake-locale | DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc-linux', 'powerpc32-linux', 'powerpc-linux-gnuspe', 'common'] | ERROR: Function 'BUILDSPEC' failed (see /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/temp/log.do_package_write_rpm.15636 for further information) | Building target platforms: ppce500v2-fsl-linux-gnuspe | Processing files: automake-1.11.1-r4.ppce500v2 | Finding Provides: /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/automake.provides | Finding Requires: /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/automake.requires | Requires(rpmlib): rpmlib(PartialHardlinkSets) <= 4.0.4-1 | Requires: /usr/bin/env /bin/sh | Requires(rpmlib): rpmlib(PartialHardlinkSets) <= 4.0.4-1 | Requires: /usr/bin/env /bin/sh | Processing files: automake-dbg-1.11.1-r4.ppce500v2 | Finding Provides: /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/automake.provides | Finding Requires: /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/automake.requires | Processing files: automake-doc-1.11.1-r4.ppce500v2 | Finding Provides: /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/automake.provides | Finding Requires: /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/automake.requires | Processing files: automake-dev-1.11.1-r4.ppce500v2 | Checking for unpackaged file(s): /opt/yocto/cache-test/build_mpc8572ds_release/tmp/sysroots/x86_64-linux/usr/lib/rpm/check-files /opt/yocto/cache-test/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/automake-1.11.1-r4/package | error: Unable to open temp file. The issue isn't in the specfile itself. The specfile doesn't control the creation of the tmp files that are executed by RPM. Inside of rpm when it processes various commands it generates shell scripts and executes them. I believe this is where the failure is coming from, but so far I've not been able to reproduce it. I suspect what we'll have to do is modify RPM to emit more debugging information about the failure when it occurs. |