Bug 14803 - GCC12: gcc-runtime in do_configure fails when using newlib
Summary: GCC12: gcc-runtime in do_configure fails when using newlib
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 4.0
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.1 M2
Assignee: Jon Mason
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-05-18 04:10 UTC by Naveen Saini
Modified: 2022-09-13 13:01 UTC (History)
6 users (show)

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


Attachments
log.do_configure (32.92 KB, application/octet-stream)
2022-05-18 04:10 UTC, Naveen Saini
no flags Details
libstdc++-v3 log (606.25 KB, application/octet-stream)
2022-05-26 16:39 UTC, Jon Mason
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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