Bug 13423 - efivar fails to build on opensuse423 with musl
Summary: efivar fails to build on opensuse423 with musl
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.8 M2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-06-30 07:58 UTC by Richard Purdie
Modified: 2019-07-25 14:58 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2019-06-30 07:58:58 UTC
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 '/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/git/src'
| 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 'makeguids' failed
| make: *** [makeguids] Error 1
| make: Leaving directory '/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/efivar/37-r0/git/src'
| 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 'exit 1'
| 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
Comment 1 Ross Burton 2019-07-01 10:34:32 UTC
Using native compiler to build native tool.  I thought I fixed this already!
Comment 2 Ross Burton 2019-07-01 10:35:36 UTC
https://github.com/rhboot/efivar/issues/130 is the upstream bug I filed.
Comment 3 Ross Burton 2019-07-25 14:58:47 UTC
Fixed in oe-core f61e0676aabba9e006c32f0e53c69426368cd4f0.