<?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>7421</bug_id>
          
          <creation_ts>2015-03-06 22:09:03 +0000</creation_ts>
          <short_desc>gummiboot fails to compile with x32 ABI</short_desc>
          <delta_ts>2017-04-19 15:24:01 +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>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Future</target_milestone>
          <dependson>10332</dependson>
          <blocked>3437</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>maxin.john</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>49279</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-03-06 22:09:03 +0000</bug_when>
    <thetext>Trying to compile gummiboot fails using x32.

| make --no-print-directory all-am
| x86_64-poky-linux-gnux32-gcc  -mx32 --sysroot=/home/mlopezva/poky/build/tmp/sysroots/qemux86-64 -std=gnu99 -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wno-unused-parameter -I/home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/include/blkid -I/home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/include/uuid  -O2 -pipe -g -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o gummiboot src/setup/gummiboot-setup.o src/setup/gummiboot-efivars.o -L/home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/libx32 -lblkid
| x86_64-poky-linux-gnux32-ld --sysroot=/home/mlopezva/poky/build/tmp/sysroots/qemux86-64  -m elf32_x86_64  -T /home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/libx32/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -znocombreloc -L /home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/libx32 /home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/libx32/crt0-efi-x86_64.o ./src/efi/util.o ./src/efi/console.o ./src/efi/graphics.o ./src/efi/gummiboot.o \
| 	-o src/efi/gummiboot.so -lefi -lgnuefi /home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/libx32/x86_64-poky-linux-gnux32/4.9.2/libgcc.a; \
| nm -D -u src/efi/gummiboot.so | grep &apos; U &apos; &amp;&amp; exit 1 || :
| x86_64-poky-linux-gnux32-ld: skipping incompatible /home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/libx32/libefi.a when searching for -lefi
| x86_64-poky-linux-gnux32-ld: cannot find -lefi
| x86_64-poky-linux-gnux32-ld: skipping incompatible /home/mlopezva/poky/build/tmp/sysroots/qemux86-64/usr/libx32/libgnuefi.a when searching for -lgnuefi
| x86_64-poky-linux-gnux32-ld: cannot find -lgnuefi
| nm: &apos;src/efi/gummiboot.so&apos;: No such file
| x86_64-poky-linux-gnux32-objcopy -j .text -j .sdata -j .data -j .dynamic \
|   -j .dynsym -j .rel -j .rela -j .reloc -j .eh_frame \
|   --target=efi-app-x86_64 src/efi/gummiboot.so gummibootx64.efi
| x86_64-poky-linux-gnux32-objcopy: &apos;src/efi/gummiboot.so&apos;: No such file
| make[1]: *** [gummibootx64.efi] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/gummiboot/43+gitAUTOINC+4062c51075-r0/temp/run.do_compile.14905: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/gummiboot/43+gitAUTOINC+4062c51075-r0/temp/log.do_compile.14905)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49998</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-03-31 17:42:20 +0000</bug_when>
    <thetext>I did a initial debug and the problem is related that gnu-efi don&apos;t have support for x32 ABI this cause the failure when try to link to static libraries provided by gnu-efi.

/usr/libx32/libefi.a
/usr/libx32/libgnuefi.a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69749</commentid>
    <comment_count>2</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-01-12 13:16:48 +0000</bug_when>
    <thetext>gummiboot will be removed from OE in near future:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10332</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69751</commentid>
    <comment_count>3</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-01-12 15:21:03 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; gummiboot will be removed from OE in near future:
&gt; https://bugzilla.yoctoproject.org/show_bug.cgi?id=10332

Mariano please close this bug when #10332 is fixed. I added the bug number as dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72661</commentid>
    <comment_count>4</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-04-19 15:24:01 +0000</bug_when>
    <thetext>Gummibot was removed on oe-core,

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a250452f5625ea0885f0983e61c1f64bcde55b98</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>