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
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
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
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
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:
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
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:
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
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
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++:
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
11 matches
Mail list logo