<?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>5783</bug_id>
          
          <creation_ts>2014-02-01 11:30:07 +0000</creation_ts>
          <short_desc>x32 build of gmp fails</short_desc>
          <delta_ts>2014-02-12 10:36:21 +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>devtools / tool chain</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>VERIFIED</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.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40158</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-01 11:30:07 +0000</bug_when>
    <thetext>If you add to local.conf:

DEFAULTTUNE = &quot;x86-64-x32&quot;
baselib = &quot;${@d.getVar(&apos;BASE_LIB_tune-&apos; + (d.getVar(&apos;DEFAULTTUNE&apos;, True) or &apos;INVALID&apos;), True) or &apos;lib&apos;}&quot;
MACHINE = &quot;qemux86-64&quot;

(i.e. an x32 build) and then bitbake gmp, it fails with

| checking for assembler byte directive... .byte
| checking how to define a 32-bit word... .long
| checking if .align assembly directive is logarithmic... no
| checking if the .align directive accepts an 0x90 fill in .text... yes
| checking size of void *... (cached) 4
| checking size of unsigned short... (cached) 2
| checking size of unsigned... 4
| checking size of unsigned long... (cached) 4
| checking size of mp_limb_t... 4
| configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
| in this configuration expects 64 bits.
| You appear to have set $CFLAGS, perhaps you also need to tell GMP the
| intended ABI, see &quot;ABI and ISA&quot; in the manual.
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /media/build1/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/gmp/5.1.1-r0/temp/log.do_configure.13230)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40287</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2014-02-11 15:00:15 +0000</bug_when>
    <thetext>*** Bug 4529 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40292</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2014-02-12 10:34:19 +0000</bug_when>
    <thetext>Patch merged:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f7b44fe6db1895aa429962b47c0b9b1c9fecfd82</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40293</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-02-12 10:36:21 +0000</bug_when>
    <thetext>Verified on master branch.
Commit ID: b70a10ca3ee4a0add90d387e2c8288e531aaa47c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>