<?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>7419</bug_id>
          
          <creation_ts>2015-03-06 20:52:35 +0000</creation_ts>
          <short_desc>kexec-tools fails to compile with x32 ABI</short_desc>
          <delta_ts>2015-05-27 10:46:27 +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>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</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.9</target_milestone>
          
          <blocked>3437</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>cristina-danielax.agurida</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</qa_contact>
          <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>49277</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-03-06 20:52:35 +0000</bug_when>
    <thetext>Trying to compile kexec-tools fails using x32.

| x86_64-poky-linux-gnux32-gcc  -mx32 --sysroot=/home/mlopezva/poky/build/tmp/sysroots/qemux86-64 -O2 -pipe -g -feliminate-unused-debug-types -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -mcmodel=large -Os -fno-builtin -ffreestanding -mcmodel=large -I/home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/kexec-tools-2.0.9/purgatory/include -I/home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/kexec-tools-2.0.9/purgatory/arch/x86_64/include -I/home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/kexec-tools-2.0.9/util_lib/include -I/home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/kexec-tools-2.0.9/include -Iinclude -I/home/mlopezva/poky/build/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux-gnux32/gcc/x86_64-poky-linux-gnux32/4.9.2/include  -c -MD -o purgatory/string.o /home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/kexec-tools-2.0.9/purgatory/string.c
| make: *** [purgatory/purgatory.o] Error 1
| make: *** Waiting for unfinished jobs....
| /home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/kexec-tools-2.0.9/purgatory/printf.c:1:0: error: code model &apos;large&apos; not supported in x32 mode
|  #include &lt;stdarg.h&gt;
|  ^
| /home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/kexec-tools-2.0.9/purgatory/string.c:1:0: error: code model &apos;large&apos; not supported in x32 mode
|  #include &lt;stddef.h&gt;
lines 1-40ERROR: Task 6 (/home/mlopezva/poky/meta/recipes-kernel/kexec/kexec-tools_2.0.9.bb, do_compile) failed with exit code &apos;1&apos;
|  ^
| make: *** [purgatory/printf.o] Error 1
| make: *** [purgatory/string.o] Error 1
| make: *** wait: No child processes.  Stop.
| ERROR: oe_runmake failed
| WARNING: /home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/temp/run.do_compile.45642:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/kexec-tools/2.0.9-r1/temp/log.do_compile.45642)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49429</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-03-12 17:44:22 +0000</bug_when>
    <thetext>Partial solution was implement to provide support in autoconf for detect when build is x32,

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=alimon/kexec-tools-x32-abi

Some issues still exist when try to exec:

# kexec -l vmlinux

These issues are related to ELF read&apos;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50273</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-04-13 18:33:10 +0000</bug_when>
    <thetext>Merged at,

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7ab461cc3ed0c1761d095fb423305424d1ed071e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51253</commentid>
    <comment_count>3</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-05-26 09:10:30 +0000</bug_when>
    <thetext>Can you provide me the steps for testing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51290</commentid>
    <comment_count>4</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-05-27 10:46:27 +0000</bug_when>
    <thetext>Verified on master: 5170177719a93a69cc6c7c1218b3f26eed82d6e0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>