[oe] [meta-oe][PATCH] poppler: compile with -fpermissive to workaround code diagnostics errors on armv5

Khem Raj raj.khem at gmail.com
Tue Aug 20 16:30:36 UTC 2019


On Tue, Aug 20, 2019 at 2:37 AM Hongxu Jia <hongxu.jia at windriver.com> wrote:
>
> Build on qemuarmv5 failed:
> ...
> |poppler-0.79.0/splash/SplashFont.h:69:36: error: passing '    const
> SplashCoord' {aka 'const FixedPoint'} as 'this' argument discards
> qualifiers [-fpermissive]
> ...

I wonder why this warning only shows up for armv5 and not for other
arm subarches or
non-arm arches.
>
> Compile with -fpermissive to workaround error with warning
>
> Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
> ---
>  meta-oe/recipes-support/poppler/poppler_0.79.0.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-support/poppler/poppler_0.79.0.bb b/meta-oe/recipes-support/poppler/poppler_0.79.0.bb
> index b285eec..7a5ec13 100644
> --- a/meta-oe/recipes-support/poppler/poppler_0.79.0.bb
> +++ b/meta-oe/recipes-support/poppler/poppler_0.79.0.bb
> @@ -28,6 +28,8 @@ inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)}
>
>  SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
>
> +CXXFLAGS_append_armv5 = " -fpermissive"
> +
>  EXTRA_OECMAKE += " \
>      -DENABLE_CMS=lcms2 \
>      -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
> --
> 2.7.4
>


More information about the Openembedded-devel mailing list