Hi,
Please see my comments in-line.
On 01/05/2020 00:17, Richard Leitner wrote:
Like this I should be able to retrieve the host gcc version dynamically and
be able to add and remove CFLAGS e.g. depending on the major version of the
host gcc.
If I understand you correctly we have something like this already [3].
Used for example at [4].
Or did I got something wrong?
I think this is along the lines of what I want.
... but ...
Why do we need to use "custom" meta-java stuff instead of what's already
available from OE out of the box?
HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".",
2)[0]}"
CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9',
'-Wno-error=format-overflow', '', d)}"
works for me.
... and ...
It looks like your and my build environment with gcc-9 (RH) and gcc-9
(UB) behave differently?
This is totally crazy. Not only do we have a host compiler dependency
with meta-java, but also 9.2 vs. 9.3 and maybe RH and UB hacked
different things there?
Also we are just turning off warnings/errors, in this case buffer
overflows, instead of fixing them, which is not good as well. So the
problem might also be in some library/header or so. But I guess with
OpenJDK to fix those it's another cup of tea.
... or ...
somewhere magic host CFLAGS are being added.
... one more thing ...
Do you think it should work on one of those distros out of the box, so I
can try to reproduce what you have on my end?
https://github.com/RobertBerger/yocto-dockerfiles/tree/master/dockerfiles
How is meta-java usually tested?
regards;rl
Regards,
Robert
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#84173):
https://lists.openembedded.org/g/openembedded-devel/message/84173
Mute This Topic: https://lists.openembedded.org/mt/72312277/21656
Group Owner: [email protected]
Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/leave/8024792/1994799631/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-