Skip to contentSkip to conversation

issue with -Wno-unknown-warning

DISCUSSION robert.berger.oe.devel 1 participant 1 message Mar 5, 2020

lore
Share & tools
lore
#0 lore raw

Hi Richard,

Sorry for coming back after such a long time, but I am pretty busy;)

Anyhow, I tried what you suggested in some off-list e-mail:

Quoted 9 lines
Quoted 3 lines

1.2) You need 2 patches [2][3]

[2] https://github.com/RobertBerger/meta-java/commit/898a0ae33c9102387aae2e3427a007e3935e663e

That's basically fine, but in case of icedtea7-native this restricts the host compilers to >= gcc9. Therefore you should also add "-Wno-unknown-warning".

Furthermore please remove the "old" line instead of adding it as a comment.

Here is what I did as per your suggestion:

https://github.com/RobertBerger/meta-java/commit/3d8ae5afb639ec7abcc48f15c74b42b373863c57

Quoted 6 lines
Quoted 4 lines

[3] https://github.com/RobertBerger/meta-java/commit/213b40c25602d23d00366149a778d2e53779b018

Looks good.

... but it does not build:

https://pastebin.com/B1nxHcPH

cc1plus: error: unrecognized command line option ‘-Wno-unknown-warning’ [-Werror]

That's my host gcc:

pokyuser@3a469e7032d9:/workdir$ gcc --version
gcc (Ubuntu 9.2.1-17ubuntu1~16.04) 9.2.1 20191102
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pokyuser@3a469e7032d9:/workdir$

Please advise.

Regards,

Robert