<?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>13423</bug_id>
          
          <creation_ts>2019-06-30 07:58:58 +0000</creation_ts>
          <short_desc>efivar fails to build on opensuse423 with musl</short_desc>
          <delta_ts>2019-07-25 14:58:47 +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>oe-core other</component>
          <version>2.7</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>randy.macleod</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>84345</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-30 07:58:58 +0000</bug_when>
    <thetext>musl build of efivar failed on opensuse423. For some reason it appears to be using the native compiler:

https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/766

ERROR: efivar-37-r0 do_compile: oe_runmake failed
ERROR: efivar-37-r0 do_compile: Function failed: do_compile (log file is located at /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/temp/log.do_compile.32301)
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/temp/log.do_compile.32301
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 16 CFLAGS=-isystem/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/recipe-sysroot-native/usr/include -O2 -pipe -C src makeguids
| make: Entering directory &apos;/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/git/src&apos;
| gcc  -isystem/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/recipe-sysroot-native/usr/include -O2 -pipe -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/git/src/include/   -specs=/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/git/gcc.specs  -L.  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now -fuse-ld=bfd -Wl,-z,muldefs     -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.c guid.c -ldl
| cc1: error: unrecognized command line option ‘-fstack-protector-strong’
| cc1: error: unrecognized command line option ‘-fstack-protector-strong’
| /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/git/Make.rules:13: recipe for target &apos;makeguids&apos; failed
| make: *** [makeguids] Error 1
| make: Leaving directory &apos;/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/git/src&apos;
| ERROR: oe_runmake failed
| WARNING: /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/temp/run.do_compile.32301:1 exit 1 from &apos;exit 1&apos;
| ERROR: Function failed: do_compile (log file is located at /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/temp/log.do_compile.32301)
NOTE: recipe efivar-37-r0: task do_compile: Failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84347</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-01 10:34:32 +0000</bug_when>
    <thetext>Using native compiler to build native tool.  I thought I fixed this already!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84348</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-01 10:35:36 +0000</bug_when>
    <thetext>https://github.com/rhboot/efivar/issues/130 is the upstream bug I filed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84491</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-25 14:58:47 +0000</bug_when>
    <thetext>Fixed in oe-core f61e0676aabba9e006c32f0e53c69426368cd4f0.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>