Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-24 Thread Mike Looijmans
Sent a patch that works around this issue. Then I get the exact same failure as in gatesgarth, the "unrecognized command line option ‘-fmacro-prefix-map" bug. Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-24 Thread Mike Looijmans
Been digging into this, something weird is going on with the TOPDIR environment. recipes-core/openjdk/openjdk-8-common.inc: do_configure_prepend () {     export TOPDIR=${S} } So TOPDIR should be set okay, but in the logging one can see that the autoconf tools do not expand it. Bluntly

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-23 Thread Mike Looijmans
In a desperate attempt to get openjre-8 to build, I just went to the current master, and that failed to build with lots of warnings about "inherit native". I noticed that those were fixed in master-next, so I switched to that instead. Still fails to build after a long time. (I replaced

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Mike Looijmans
But that yields something that doesn't work runtime: # java -version Error: dl failure on line 893 Error: failed /usr/lib/jvm/openjre-8/lib/aarch64/server/libjvm.so, because /usr/lib/jvm/openjre-8/lib/aarch64/server/libjvm.so: undefined symbol: _ZN17FloatRegisterImpl8as_VMRegEv Met

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Mike Looijmans
If I just bluntly set the CFLAGS and CXXFLAGS like in the attached patch, then the compile succeeds. 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:

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Mike Looijmans
In Line 72 of that makefile: # set flags for adlc compilation CXXFLAGS = $(SYSDEFS) $(INCLUDES) So that kills the patch I guess 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

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Mike Looijmans
Yes, the patch does get applied, I can see the extra lines in the work directory. But it somehow doesn't quite work... 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:

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Richard Leitner
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

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Mike Looijmans
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

Re: [oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Richard Leitner
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++:

[oe] [meta-java] openjre8 fails to compile on aarch64

2021-03-22 Thread Mike Looijmans
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