<?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>1417</bug_id>
          
          <creation_ts>2011-08-25 14:44:13 +0000</creation_ts>
          <short_desc>x32: libaio building fails</short_desc>
          <delta_ts>2011-12-15 09:15:23 +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>x86_64</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>
          
          <blocked>1579</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Nitin Kamble">nitin.a.kamble</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>hjl.tools</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>15782</commentid>
    <comment_count>0</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-08-25 14:44:13 +0000</bug_when>
    <thetext>ERROR: Function &apos;do_compile&apos; failed (see /disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/libaio-0.3.107-r0/temp/log.do_compile.6957 for further information)
ERROR: Logfile of failure stored in: /disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/libaio-0.3.107-r0/temp/log.do_compile.6957
Log data follows:
| NOTE: make -j 16 prefix=/usr includedir=/usr/include libdir=/usr/lib -e MAKEFLAGS=
| make[1]: Entering directory `/disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/libaio-0.3.107-r0/libaio-0.3.107/src&apos;
| ccache x86_64-poky-linux-gnux32-gcc   -mx32  --sysroot=/disk0/pokybuild/build-multilib-x32-qemu/tmp/sysroots/qemux86-64 -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC -c -o io_getevents.ol io_getevents.c
| In file included from syscall.h:16:0,
|                  from io_getevents.c:23:
| syscall-x86_64.h:1:0: warning: &quot;__NR_io_setup&quot; redefined [enabled by default]
| /disk0/pokybuild/build-multilib-x32-qemu/tmp/sysroots/qemux86-64/usr/include/asm/unistd_x32.h:477:0: note: this is the location of the previous definition
| syscall-x86_64.h:2:0: warning: &quot;__NR_io_destroy&quot; redefined [enabled by default]
| /disk0/pokybuild/build-multilib-x32-qemu/tmp/sysroots/qemux86-64/usr/include/asm/unistd_x32.h:479:0: note: this is the location of the previous definition
| syscall-x86_64.h:3:0: warning: &quot;__NR_io_getevents&quot; redefined [enabled by default]
| /disk0/pokybuild/build-multilib-x32-qemu/tmp/sysroots/qemux86-64/usr/include/asm/unistd_x32.h:481:0: note: this is the location of the previous definition
| syscall-x86_64.h:4:0: warning: &quot;__NR_io_submit&quot; redefined [enabled by default]
| /disk0/pokybuild/build-multilib-x32-qemu/tmp/sysroots/qemux86-64/usr/include/asm/unistd_x32.h:483:0: note: this is the location of the previous definition
| syscall-x86_64.h:5:0: warning: &quot;__NR_io_cancel&quot; redefined [enabled by default]
| /disk0/pokybuild/build-multilib-x32-qemu/tmp/sysroots/qemux86-64/usr/include/asm/unistd_x32.h:485:0: note: this is the location of the previous definition
| io_getevents.c: Assembler messages:
| io_getevents.c:25: Error: operand type mismatch for `movq&apos;
| io_getevents.c:25: Error: operand type mismatch for `movq&apos;
| make[1]: *** [io_getevents.ol] Error 1
| make[1]: Leaving directory `/disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/libaio-0.3.107-r0/libaio-0.3.107/src&apos;
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function &apos;do_compile&apos; failed (see /disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/libaio-0.3.107-r0/temp/log.do_compile.6957 for further information)
NOTE: package libaio-0.3.107-r0: task do_compile: Failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17466</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-12-01 15:19:20 +0000</bug_when>
    <thetext>I have a fix for this in my local branch, will push it soon,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17668</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-12-15 09:15:23 +0000</bug_when>
    <thetext>This commit on the master fixes the issue:

commit f5c071d93c9e6f57930bce56b1e4f009c160a826
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Fri Dec 2 12:20:08 2011 -0800

    libaio: patch source code for x32
    
    This Fixes bug: [YOCTO #1417]
    
    Properly load arguments 5 an 6 for x86-64 syscall
    Use asm (&quot;r10&quot;) and asm (&quot;r8&quot;) to load arguments 5 an 6 for x86-64
    syscall so that it works with both x32 and x86-64.
    
    (From OE-Core rev: 207e86ba12c15937845ace66206566cd11dac994)
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
    Signed-Off-By: H.J. Lu &lt;hjl.tools@gmail.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>