<?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>219</bug_id>
          
          <creation_ts>2010-08-19 14:17:57 +0000</creation_ts>
          <short_desc>dpkg does not build properly</short_desc>
          <delta_ts>2010-12-21 06:09:41 +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>0.9</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>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>9336</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-08-19 14:17:57 +0000</bug_when>
    <thetext>I experienced a build failure when attempting to set my default package type to package_deb.  While building for a qemuppc machine type:

| checking for unistd.h... (cached) yes
| checking whether sys_siglist is declared... (cached) yes
| checking whether compiler supports __attribute__... yes
| checking for va_copy... configure: error: in `/.../git/poky/build/tmp/work/ppc603e-poky-linux/dpkg-1.14.19-r7/
dpkg-1.14.19&apos;:
| configure: error: cannot run test program while cross compiling
| See `config.log&apos; for more details.
| FATAL: oe_runconf failed
NOTE: package dpkg-1.14.19-r7: task do_configure: Failed

I assume this affects other architectures as well as PPC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9339</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-08-19 23:20:18 +0000</bug_when>
    <thetext>Mark, you may try adding below lines to meta/site/powerpc-common:

dpkg_cv_va_copy=${ac_cv_va_copy=yes}
dpkg_cv___va_copy=${ac_cv___va_copy=yes}

We can&apos;t run tests in cross-compile environment, and thus site files jump out to workaround them. Now va_copy is only set for x86 and arm, perhaps because they&apos;re only platform previously focused on

Having said that, I don&apos;t have idea whether &apos;yes&apos; or &apos;no&apos; should be set for powerpc platform. :/ For example, x86 sets va_copy to &apos;no&apos; while arm sets it to &apos;yes&apos;. I&apos;m not sure the efficient way to figure it out. You may need check ppc stdarg.h for decision

Richard may comment more here. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9471</commentid>
    <comment_count>2</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-08-30 22:28:15 +0000</bug_when>
    <thetext>Kevin&apos;s method could solve this configure error.
I&apos;m also interested in how to set the meta/site files for each platform.
Bug 243 also have similar setting problems. 

Richard, could you give some comments on it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9480</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-31 14:15:17 +0000</bug_when>
    <thetext>Adding entries to the site file is the correct answer. Sometimes you may know the answer and can add the entry. In other cases you can try building the application in a qemu sdk image and then take the correct result from there (or run a test on real hardware if you have it)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>