[oe] [meta-java] openjre-8 fmacro-prefix-map problem

Vincent Prince vincent.prince.fr at gmail.com
Mon Sep 30 11:19:12 UTC 2019


Hello again,

I see that there is a patch that should fix the problem:
https://git.yoctoproject.org/cgit/cgit.cgi/meta-java/tree/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-adlc-flags.patch
It is applied but it seems target compilation options are non filtered?

Regards,
Vincent

Le mer. 18 sept. 2019 à 11:41, Vincent Prince <vincent.prince.fr at gmail.com>
a écrit :

> Hi,
>
> I'm trying to build my image on Yocto master branch, and it fails to
> compile openjre-8 (It works fine on Warrior).
>
> Here's the error message:
>
> openjre-8-172b11-r0 do_compile: oe_runmake failed:
>
> g++ -DLINUX -D_GNU_SOURCE -DAMD64
> -I/yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/prims
> -I[skip...] -DASSERT -O2 -pipe -g -feliminate-unused-debug-types
> -fmacro-prefix-map=/yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0=/usr/src/debug/openjre-8/172b11-r0
>
> -fdebug-prefix-map=/yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0=/usr/src/debug/openjre-8/172b11-r0
>
> -fdebug-prefix-map=/yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0/recipe-sysroot=
>
> -fdebug-prefix-map=/yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0/recipe-sysroot-native=
>
> -Wno-error=deprecated-declarations -DTARGET_OS_FAMILY_linux
> -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86
> -DTARGET_OS_ARCH_MODEL_linux_x86_64
> -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1
> -DDONT_USE_PRECOMPILED_HEADER -fno-rtti -fno-exceptions -D_REENTRANT
> -fcheck-new -fvisibility=hidden -pipe -fno-strict-aliasing -g
> -fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86
> -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86
> -DTARGET_OS_ARCH_MODEL_linux_x86_64
> -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1
> -DDONT_USE_PRECOMPILED_HEADER -fno-rtti -fno-exceptions -D_REENTRANT
> -fcheck-new -fvisibility=hidden -pipe -fno-strict-aliasing -g
> -fno-omit-frame-pointer
> -isystem/yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0/recipe-sysroot-native/usr/include
> -O2 -pipe -Wno-error=deprecated-declarations -Werror
> -c -o ../generated/adfiles/adlparse.o
> /yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/adlc/adlparse.cpp
>
> g++: error: unrecognized command line option
> ‘-fmacro-prefix-map=/yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0=/usr/src/debug/openjre-8/172b11-r0’
>
> /yocto/build-vc/tmp/work/corei7-64-cb-linux/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/make/linux/makefiles/adlc.make:222:
> recipe for target '../generated/adfiles/adlparse.o' failed
>
> It seems Yocto master introduces new -fmacro-prefix-map compile flag that
> g++ does not recognize?
> Does it means I need to upgrade my gcc (5.4.0) version on build machine?
> (Ubuntu 16.04).
> If so, why it does not use -native package?
>
> Best regards,
> Vincent
>


More information about the Openembedded-devel mailing list