From: "Mike Looijmans" <mike.looijmans@topic.nl>
To: Richard Leitner <richard.leitner@skidata.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-java] openjre8 fails to compile on aarch64
Date: Mon, 22 Mar 2021 16:04:50 +0100 [thread overview]
Message-ID: <26f25fd9-7943-1d75-13ef-e80d8f45f7cf@topic.nl> (raw)
In-Reply-To: <166EB1C4D79F83DA.5508@lists.openembedded.org>
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 69 69
E: mike.looijmans@topicproducts.com
W: www.topic.nl
Please consider the environment before printing this e-mail
On 22-03-2021 15:52, Mike Looijmans via lists.openembedded.org wrote:
> 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: mike.looijmans@topicproducts.com
> W: www.topic.nl
>
> Please consider the environment before printing this e-mail
> On 22-03-2021 13:36, Richard Leitner wrote:
>> 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: mike.looijmans@topicproducts.com
>>> 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: mike.looijmans@topicproducts.com
>>>>> W: www.topic.nl
>>>>>
>>>>> Please consider the environment before printing this e-mail
>>>
>>> --
>>> Mike Looijmans
>>>
>
>
>
>
--
Mike Looijmans
next prev parent reply other threads:[~2021-03-22 15:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.75f5ae13-2f0a-42dd-b164-bf1c3f2c0c91@emailsignatures365.codetwo.com>
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.74969f47-fd5f-43b1-b5f3-843bc6e03141@emailsignatures365.codetwo.com>
2021-03-22 9:43 ` [meta-java] openjre8 fails to compile on aarch64 Mike Looijmans
2021-03-22 11:53 ` [oe] " Richard Leitner
2021-03-22 12:15 ` Mike Looijmans
2021-03-22 12:36 ` Richard Leitner
2021-03-22 14:52 ` Mike Looijmans
[not found] ` <166EB1C4D79F83DA.5508@lists.openembedded.org>
2021-03-22 15:04 ` Mike Looijmans [this message]
[not found] ` <166EB26D9B0785E4.5508@lists.openembedded.org>
2021-03-22 15:36 ` Mike Looijmans
[not found] ` <166EB42E11D37A69.5508@lists.openembedded.org>
2021-03-22 15:45 ` Mike Looijmans
[not found] ` <166EA0EA5639ABCD.32074@lists.openembedded.org>
2021-03-23 15:09 ` Mike Looijmans
[not found] ` <166F014747987FB1.18754@lists.openembedded.org>
2021-03-24 7:28 ` Mike Looijmans
[not found] ` <166F36B0213D2F47.651@lists.openembedded.org>
2021-03-24 8:43 ` Mike Looijmans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26f25fd9-7943-1d75-13ef-e80d8f45f7cf@topic.nl \
--to=mike.looijmans@topic.nl \
--cc=openembedded-devel@lists.openembedded.org \
--cc=richard.leitner@skidata.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox