<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1326</bug_id>
          
          <creation_ts>2011-08-03 20:07:07 +0000</creation_ts>
          <short_desc>Function &apos;BUILDSPEC&apos; failed for libpthread-stubs</short_desc>
          <delta_ts>2011-11-24 11:05:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>dvhart</cc>
    
    <cc>ke.yu</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>msm-oss</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15198</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-08-03 20:07:07 +0000</bug_when>
    <thetext>Poky/Branch: master
Commit: 5fbac72eb8c3cddf10876cf007aff54180c7264e

Latest tree has BUILDSPEC failed for libpthread-stubs against qemux86 build.
The complete log is on http://autobuilder.pokylinux.org:8010/builders/nightly-external/builds/61/steps/shell_6/logs/stdio.

######
NOTE: Running task 3794 of 4668 (ID: 3890, /srv/home/pokybuild/poky-slave/nightly-external/build/meta/recipes-graphics/xcb/libxcb_1.7.bb, do_package_write_rpm)
NOTE: package libice-1_1.0.7-r0: task do_package_write_rpm: Started
ERROR: Function &apos;BUILDSPEC&apos; failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/libpthread-stubs-0.3-r0/temp/log.do_package_write_rpm.28367 for further information)
ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/libpthread-stubs-0.3-r0/temp/log.do_package_write_rpm.28367
Log data follows:
| NOTE: Creating RPM package for libpthread-stubs-dbg
| NOTE: Not creating empty RPM package for libpthread-stubs
| NOTE: Not creating empty RPM package for libpthread-stubs-doc
| NOTE: Creating RPM package for libpthread-stubs-dev
| NOTE: Not creating empty RPM package for libpthread-stubs-staticdev
| NOTE: Not creating empty RPM package for libpthread-stubs-locale
| ERROR: Function &apos;BUILDSPEC&apos; failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/libpthread-stubs-0.3-r0/temp/log.do_package_write_rpm.28367 for further information)
| Building target platforms: i586-poky-linux-gnu
| Processing files: libpthread-stubs-dbg-0.3-r0.i586
| Finding  Provides: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/libpthread-stubs-0.3-r0/libpthread-stubs.requires
| Finding  Requires: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/libpthread-stubs-0.3-r0/libpthread-stubs.requires
| Processing files: libpthread-stubs-dev-0.3-r0.i586
| Finding  Provides: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/libpthread-stubs-0.3-r0/libpthread-stubs.requires
| Finding  Requires: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/libpthread-stubs-0.3-r0/libpthread-stubs.requires
| Provides: pkgconfig(pthread-stubs) = 0.3
| Requires: pkgconfig(pthread-stubs) = 0.3
| Provides: pkgconfig(pthread-stubs) = 0.3
| Requires: pkgconfig(pthread-stubs) = 0.3
| 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/i586-poky-linux/libpthread-stubs-0.3-r0/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 libpthread-stubs-0.3-r0: task do_package_write_rpm: Failed
ERROR: Task 3980 (/srv/home/pokybuild/poky-slave/nightly-external/build/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb, do_package_write_rpm) failed with exit code &apos;1&apos;
NOTE: Running task 3795 of 4668 (ID: 3720, /srv/home/pokybuild/poky-slave/nightly-external/build/meta/recipes-support/libusb/libusb1_1.0.8.bb, do_package_write_rpm)
######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15202</commentid>
    <comment_count>1</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-08-04 01:42:25 +0000</bug_when>
    <thetext>I tried it locally, however could not reproduce this bug in my environment. bitbake libpthread-stubs works OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15262</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-05 08:03:44 +0000</bug_when>
    <thetext>Mark, any hints as to why this occurs randomly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15293</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-07 10:52:55 +0000</bug_when>
    <thetext>Another case of this issue, with a different package

ERROR: Function &apos;BUILDSPEC&apos; 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 &apos;BUILDSPEC&apos; 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 &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15414</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-08-11 15:27:55 +0000</bug_when>
    <thetext>Jiajin, we haven&apos;t been able to reproduce, have you seen this since reporting it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15454</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-08-15 00:42:09 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Jiajin, we haven&apos;t been able to reproduce, have you seen this since reporting
&gt; 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 &quot;WORKSFORME&quot;. If we meet the issue again, we could reopen it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15455</commentid>
    <comment_count>6</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-08-15 00:42:29 +0000</bug_when>
    <thetext>Verify the bug as WORKSFORME according the last comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15931</commentid>
    <comment_count>7</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-08-31 18:53:55 +0000</bug_when>
    <thetext>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 &apos;BUILDSPEC&apos; 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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16788</commentid>
    <comment_count>8</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-10-07 09:03:42 +0000</bug_when>
    <thetext>I&apos;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 &apos;BUILDSPEC&apos; 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 [&apos;endian-big&apos;, &apos;bit-32&apos;, &apos;powerpc-common&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;powerpc-linux&apos;, &apos;powerpc32-linux&apos;, &apos;powerpc-linux-gnuspe&apos;, &apos;common&apos;]
| ERROR: Function &apos;BUILDSPEC&apos; 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) &lt;= 4.0.4-1
| Requires: /usr/bin/env /bin/sh
| Requires(rpmlib): rpmlib(PartialHardlinkSets) &lt;= 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16825</commentid>
    <comment_count>9</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-10-10 07:30:10 +0000</bug_when>
    <thetext>The issue isn&apos;t in the specfile itself.  The specfile doesn&apos;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&apos;ve not been able to reproduce it.  I suspect what we&apos;ll have to do is modify RPM to emit more debugging information about the failure when it occurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17368</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-24 11:05:56 +0000</bug_when>
    <thetext>This was fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c2ce6387bd6e0a05a7e2b13741ccc20de96eaf49</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>