All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [meta-java] openjre-8 fmacro-prefix-map problem
@ 2020-02-26 18:30 Lennart Sorensen
  2020-03-01 11:14 ` Richard Leitner
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Sorensen @ 2020-02-26 18:30 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Sep 30, 2019, Vincent Prince wrote:
> 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?

I just hit this problem too, and found out why it isn't filtering.
TARGET_CFLAGS isn't actually exported so the build can't use it to filter.

Adding this to openjre-8_242.bb fixes the problem:

export TARGET_CFLAGS
export TARGET_CXXFLAGS

No more problem with the host gcc/g++ complaining about -fmacro-prefix-map
being unknown.

I suspect openjdk-8 would need to same fix but I didn't build that yet.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-java] openjre-8 fmacro-prefix-map problem
  2020-02-26 18:30 [meta-java] openjre-8 fmacro-prefix-map problem Lennart Sorensen
@ 2020-03-01 11:14 ` Richard Leitner
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Leitner @ 2020-03-01 11:14 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: openembedded-devel

Hi,

On Wed, Feb 26, 2020 at 01:30:11PM -0500, Lennart Sorensen wrote:
> On Mon, Sep 30, 2019, Vincent Prince wrote:
> > 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?
> 
> I just hit this problem too, and found out why it isn't filtering.
> TARGET_CFLAGS isn't actually exported so the build can't use it to filter.
> 
> Adding this to openjre-8_242.bb fixes the problem:
> 
> export TARGET_CFLAGS
> export TARGET_CXXFLAGS
> 
> No more problem with the host gcc/g++ complaining about -fmacro-prefix-map
> being unknown.

Thanks for the pointer. I'll take a look into it!

regards;rl

> 
> I suspect openjdk-8 would need to same fix but I didn't build that yet.
> 
> -- 
> Len Sorensen
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-java] openjre-8 fmacro-prefix-map problem
  2019-09-18  9:41 Vincent Prince
@ 2019-09-30 11:19 ` Vincent Prince
  0 siblings, 0 replies; 4+ messages in thread
From: Vincent Prince @ 2019-09-30 11:19 UTC (permalink / raw)
  To: richard.leitner, openembeded-devel, erkka.kaaria, Maxin B. John,
	Otavio Salvador

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@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
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [meta-java] openjre-8 fmacro-prefix-map problem
@ 2019-09-18  9:41 Vincent Prince
  2019-09-30 11:19 ` Vincent Prince
  0 siblings, 1 reply; 4+ messages in thread
From: Vincent Prince @ 2019-09-18  9:41 UTC (permalink / raw)
  To: richard.leitner, openembeded-devel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-01 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 18:30 [meta-java] openjre-8 fmacro-prefix-map problem Lennart Sorensen
2020-03-01 11:14 ` Richard Leitner
  -- strict thread matches above, loose matches on Subject: below --
2019-09-18  9:41 Vincent Prince
2019-09-30 11:19 ` Vincent Prince

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.