]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
ccache: Fix build with gcc-12
authorMingli Yu <mingli.yu@windriver.com>
Mon, 6 Jun 2022 10:50:59 +0000 (18:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Jun 2022 20:11:57 +0000 (21:11 +0100)
commit4f78045a62d562f2c682695329570faa36ce3e0c
tree3b54c13f299549634663b759d8e1143c092fc297
parentf077befd5f36ad88623aaf6a38b1a837ecb18650
ccache: Fix build with gcc-12

Fix the build failure when debug build is enabled.
Add DEBUG_BUILD = "1" in conf/local.conf.
 $ bitbake ccache
 | /buildarea/tmp/work/core2-64-poky-linux/ccache/4.6.1-r0/ccache-4.6.1/src/third_party/xxhash.h:3932:1: error: inlining failed in call to 'always_inline' 'XXH3_accumulate_512_sse2': function not considered for inlining
 3932 | XXH3_accumulate_512_sse2( void* XXH_RESTRICT acc,
      | ^~~~~~~~~~~~~~~~~~~~~~~~
 /buildarea/tmp/work/core2-64-poky-linux/ccache/4.6.1-r0/ccache-4.6.1/src/third_party/xxhash.h:4369:9: note: called from here
 4369 |         f_acc512(acc,
      |         ^~~~~~~~~~~~~
 4370 |                  in,
      |                  ~~~
 4371 |                  secret + n*XXH_SECRET_CONSUME_RATE);

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/ccache/ccache_4.6.1.bb
meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch [new file with mode: 0644]