Bug 14803

Summary: GCC12: gcc-runtime in do_configure fails when using newlib
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Naveen Saini <naveen.kumar.saini>
Component: devtools / tool chainAssignee: Jon Mason <jon.mason>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, raj.khem, randy.macleod, richard.purdie, ross.burton
Version: 4.0   
Target Milestone: 4.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
log.do_configure
none
libstdc++-v3 log none

Description Naveen Saini 2022-05-18 04:10:50 UTC
Created attachment 4867 [details]
log.do_configure

GCC 12.1.0
Poky: Master
MACHINE = "qemux86-64"
TCLIBC = "newlib"

Error log:
checking link.h presence... no
checking for link.h... no
checking for fcntl... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
WARNING: exit code 1 from a shell command.
Comment 1 Richard Purdie 2022-05-26 14:42:36 UTC
Breaks meta-zephyr so high priority
Comment 2 Jon Mason 2022-05-26 16:39:37 UTC
Created attachment 4870 [details]
libstdc++-v3 log
Comment 3 Richard Purdie 2022-05-27 17:07:36 UTC
As an experiment:

EXTRA_OECONF:append:pn-gcc-runtime = " ac_cv_func_fcntl=no  ac_cv_func_getexecname=no"

in local.conf did let the build succeed for me
Comment 4 Randy MacLeod 2022-06-02 15:07:34 UTC
There is a work-around so lower to M+
Comment 5 Jon Mason 2022-09-13 13:01:56 UTC
This has been fixed