]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
perl: Fix build with gcc-12
authorMingli Yu <mingli.yu@windriver.com>
Thu, 2 Jun 2022 05:46:40 +0000 (13:46 +0800)
committerSteve Sakoman <steve@sakoman.com>
Mon, 6 Jun 2022 15:32:51 +0000 (05:32 -1000)
commit4eb85dbace4d6d2cccdeed96b4aee80a8fc24e37
treeae83c6e01fd46004c600f63ccb6c27a99e608b20
parentbe70f51806d66daf1994a492dc446062838c0e21
perl: Fix build with gcc-12

Fix the build failure when debug build is enabled.
Add DEBUG_BUILD = "1" in conf/local.conf.
 $ bitbake perl
  | In function 'dynprep',
    inlined from 'S_sortsv_flags_impl' at pp_sort.c:358:20,
    inlined from 'sortsv_amagic_i_ncmp' at pp_sort.c:572:5:
  |  pp_sort.c:1232:1: error: inlining failed in call to 'always_inline' 'S_amagic_i_ncmp': function not considered for inlining
  | 1232 | S_amagic_i_ncmp(pTHX_ SV *const a, SV *const b)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 880296e68cfd92cfd4c9474972c8d8e6f21a2a40)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/perl/files/0001-Fix-build-with-gcc-12.patch [new file with mode: 0644]
meta/recipes-devtools/perl/perl_5.34.1.bb