If I get it right these flags should be filtered out by the adlc flags
patch [1].

Can you verify that it's getting applied?

Unfortunately I don't have a gcc-7 host machine available right now 😕

regards;rl

[1]https://git.yoctoproject.org/cgit/cgit.cgi/meta-java/tree/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-fix-adlc-flags.patch

On Mon, Mar 22, 2021 at 01:15:14PM +0100, Mike Looijmans wrote:
> Both "gatesgarth".
> 
> Issue seems to be that the build host (Ubuntu 18) has gcc 7 and the one used
> for cross-compiling is much newer. Apparently there's something wrong in the
> makefile that it uses host compiler flags for the build compiler.
> 
> 
> 
> 
> Met vriendelijke groet / kind regards,
> 
> Mike Looijmans
> System Expert
> 
> 
> TOPIC Embedded Products B.V.
> Materiaalweg 4, 5681 RJ Best
> The Netherlands
> 
> T: +31 (0) 499 33 69 69
> E: [email protected]
> W: www.topic.nl
> 
> Please consider the environment before printing this e-mail
> On 22-03-2021 12:53, Richard Leitner wrote:
> > Hi Mike,
> > 
> > which meta-java and oe-core branch are you using?
> > 
> > regards;rl
> > 
> > On Mon, Mar 22, 2021 at 10:43:53AM +0100, Mike Looijmans wrote:
> > > I cannot get openjre8 to compile. Any ideas what the real issue is?
> > > 
> > > Compile for 32-bit ARM is okay, but building for aarch64 fails:
> > > 
> > > ...
> > > | g++: error: unrecognized command line option 
> > > ‘-fmacro-prefix-map=/.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0=/usr/src/debug/openjre-8/272-r0’
> > > | g++: error: unrecognized command line option 
> > > ‘-fmacro-prefix-map=/.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0=/usr/src/debug/openjre-8/272-r0’
> > > | 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/jdk8u-shenandoah-aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/makefiles/adlc.make:228:
> > > recipe for target '../generated/adfiles/output_c.o' failed
> > > | make[6]: *** [../generated/adfiles/output_c.o] Error 1
> > > | 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/jdk8u-shenandoah-aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/makefiles/adlc.make:228:
> > > recipe for target '../generated/adfiles/main.o' failed
> > > | make[6]: *** [../generated/adfiles/main.o] Error 1
> > > | g++: error: unrecognized command line option 
> > > ‘-fmacro-prefix-map=/.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0=/usr/src/debug/openjre-8/272-r0’
> > > | 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/jdk8u-shenandoah-aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/makefiles/adlc.make:228:
> > > recipe for target '../generated/adfiles/output_h.o' failed
> > > | make[6]: *** [../generated/adfiles/output_h.o] Error 1
> > > | make[5]: *** [ad_stuff] Error 2
> > > | 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/jdk8u-shenandoah-aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/makefiles/top.make:91:
> > > recipe for target 'ad_stuff' failed
> > > | 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/jdk8u-shenandoah-aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/Makefile:284:
> > > recipe for target 'product' failed
> > > | make[4]: *** [product] Error 2
> > > | Makefile:230: recipe for target 'generic_build2' failed
> > > | make[3]: *** [generic_build2] Error 2
> > > | make[2]: *** [product] Error 2
> > > | Makefile:177: recipe for target 'product' failed
> > > | HotspotWrapper.gmk:44: recipe for target 
> > > '/.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/build/hotspot/_hotspot.timestamp'
> > > failed
> > > | make[1]: *** 
> > > [/.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/build/hotspot/_hotspot.timestamp]
> > > Error 2
> > > | 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/jdk8u-shenandoah-aarch64-shenandoah-jdk8u272-b10//make/Main.gmk:109:
> > > recipe for target 'hotspot-only' failed
> > > | make: *** [hotspot-only] Error 2
> > > | WARNING: 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/temp/run.do_compile.9267:189
> > > exit 1 from 'exit 1'
> > > | WARNING: Backtrace (BB generated script):
> > > |     #1: bbfatal_log, 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/temp/run.do_compile.9267,
> > > line 189
> > > |     #2: die, 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/temp/run.do_compile.9267,
> > > line 179
> > > |     #3: oe_runmake, 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/temp/run.do_compile.9267,
> > > line 168
> > > |     #4: autotools_do_compile, 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/temp/run.do_compile.9267,
> > > line 163
> > > |     #5: do_compile, 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/temp/run.do_compile.9267,
> > > line 158
> > > |     #6: main, 
> > > /.../build/tmp-glibc/work/cortexa72-oe-linux/openjre-8/272-r0/temp/run.do_compile.9267,
> > > line 202
> > > |
> > > | Backtrace (metadata-relative locations):
> > > |     #1: bbfatal_log, /.../oe-core/meta/classes/logging.bbclass, line 72
> > > |     #2: die, /.../oe-core/meta/classes/base.bbclass, line 56
> > > |     #3: oe_runmake, /.../oe-core/meta/classes/base.bbclass, line 65
> > > |     #4: autotools_do_compile, 
> > > /.../oe-core/meta/classes/autotools.bbclass,
> > > line 243
> > > |     #5: do_compile, autogenerated, line 2
> > > ERROR: Task
> > > (/.../meta-java/recipes-core/openjdk/openjre-8_272.bb:do_compile) failed
> > > with exit code '1'
> > > 
> > > -- 
> > > Mike Looijmans
> > > 
> > > 
> > > Met vriendelijke groet / kind regards,
> > > 
> > > Mike Looijmans
> > > System Expert
> > > 
> > > 
> > > TOPIC Embedded Products B.V.
> > > Materiaalweg 4, 5681 RJ Best
> > > The Netherlands
> > > 
> > > T: +31 (0) 499 33 69 69
> > > E: [email protected]
> > > W: www.topic.nl
> > > 
> > > Please consider the environment before printing this e-mail
> 
> 
> -- 
> Mike Looijmans
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#90255): 
https://lists.openembedded.org/g/openembedded-devel/message/90255
Mute This Topic: https://lists.openembedded.org/mt/81520404/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to