Richard Purdie <richard.purdie@linuxfoundation.org> escreveu no dia terça, 1/03/2022 à(s) 07:50:
On Mon, 2022-02-28 at 20:17 -0800, Khem Raj wrote:
> this is fixing more than the workaround, e.g. see the patch I sent to
> fix libical, where these flags are not passed to git compiler when
> using cmake
> I am not sure how many such fallouts there will be through out.

The error Khem mentions is here:

https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/4839/steps/11/logs/stdio

with multiple other failures in that build in libical. I'm worried about other
failures resulting from this change.

Thanks for the link, I can reproduce it on my side and it fails when the gobject-introspection is enabled
and as I said to Khem I think that it's not related to cmake.
However I will try to build more cmake on oe-core to see if there are more issues.

Without this patch none of the following variables makes much sense:

OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CFLAGS}"
OECMAKE_CXX_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CXXFLAGS}"
OECMAKE_C_LINK_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CPPFLAGS} ${LDFLAGS}"
OECMAKE_CXX_LINK_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CXXFLAGS} ${LDFLAGS}"

Jose


Cheers,

Richard



--
Best regards,

José Quaresma