All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7
@ 2018-08-13 15:46 Richard Leitner
  2018-08-13 20:58 ` Richard Leitner
  2018-08-14  8:27 ` André Draszik
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Leitner @ 2018-08-13 15:46 UTC (permalink / raw)
  To: openembedded-devel

From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>

As no patch has been found in debian and hotspot repo for this issue we
just disable this warning which was introduced with GCC 7.

Also known as: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824

Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
---
Changes v2:
   + adapted by Richard Leitner to use the openjdk-build-helper class from
     André Draszik instead of our own in the java class.
    (Therefore it now depends on the "prepare for openjdk-8 build infra re-use"
     series from André)
---
 recipes-core/icedtea/icedtea7-native.inc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 30fb24a..796acb6 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -24,6 +24,12 @@ CFLAGS_append = " -fno-tree-dse"
 CXXFLAGS_append = " -fno-tree-dse"
 CXX_append = " -std=gnu++98"
 
+# Disable format-overflow error with host g++ >= 7.3.
+# This bug is known as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824
+FLAGS_GCC7 = " -Wno-error=format-overflow"
+BUILD_CFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
+BUILD_CXXFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
+
 inherit native java autotools pkgconfig
 inherit openjdk-build-helper
 
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7
  2018-08-13 15:46 [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7 Richard Leitner
@ 2018-08-13 20:58 ` Richard Leitner
  2018-08-14  8:27 ` André Draszik
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Leitner @ 2018-08-13 20:58 UTC (permalink / raw)
  To: Andreas Obergschwandtner; +Cc: openembedded-devel

Hi,
this is a note to let you know that I've just added this patch to the
master-next branch of the meta-java repository at
	git://git.yoctoproject.org/meta-java

As soon as it has gone through some more testing it will likely be
merged to the master branch.

If you have any questions, please let me know.

regards;Richard.L

On 08/13/2018 05:46 PM, Richard Leitner wrote:
> From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
> 
> As no patch has been found in debian and hotspot repo for this issue we
> just disable this warning which was introduced with GCC 7.
> 
> Also known as: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824
> 
> Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
> ---
> Changes v2:
>     + adapted by Richard Leitner to use the openjdk-build-helper class from
>       André Draszik instead of our own in the java class.
>      (Therefore it now depends on the "prepare for openjdk-8 build infra re-use"
>       series from André)
> ---
>   recipes-core/icedtea/icedtea7-native.inc | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
> index 30fb24a..796acb6 100644
> --- a/recipes-core/icedtea/icedtea7-native.inc
> +++ b/recipes-core/icedtea/icedtea7-native.inc
> @@ -24,6 +24,12 @@ CFLAGS_append = " -fno-tree-dse"
>   CXXFLAGS_append = " -fno-tree-dse"
>   CXX_append = " -std=gnu++98"
>   
> +# Disable format-overflow error with host g++ >= 7.3.
> +# This bug is known as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824
> +FLAGS_GCC7 = " -Wno-error=format-overflow"
> +BUILD_CFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
> +BUILD_CXXFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
> +
>   inherit native java autotools pkgconfig
>   inherit openjdk-build-helper
>   
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7
  2018-08-13 15:46 [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7 Richard Leitner
  2018-08-13 20:58 ` Richard Leitner
@ 2018-08-14  8:27 ` André Draszik
  2018-08-14 14:47   ` Richard Leitner
  1 sibling, 1 reply; 4+ messages in thread
From: André Draszik @ 2018-08-14  8:27 UTC (permalink / raw)
  To: openembedded-devel

On Mon, 2018-08-13 at 17:46 +0200, Richard Leitner wrote:
> From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
> 
> As no patch has been found in debian and hotspot repo for this issue we
> just disable this warning which was introduced with GCC 7.
> 
> Also known as: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824

Two points:

TBH, I'd be a bit wary of this considering the recent fallout from silencing
compiler warnings. Can you try to address this instead please?

E.g. OpenJDK-8 has very similar code, so should be possible?

Also, I have gcc 7.3, yet I don't see that error. Is there something else
happening?


Cheers,
Andre'



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7
  2018-08-14  8:27 ` André Draszik
@ 2018-08-14 14:47   ` Richard Leitner
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Leitner @ 2018-08-14 14:47 UTC (permalink / raw)
  To: André Draszik, openembedded-devel

Hi,

On 8/14/18 10:27 AM, André Draszik wrote:
> On Mon, 2018-08-13 at 17:46 +0200, Richard Leitner wrote:
>> From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
>>
>> As no patch has been found in debian and hotspot repo for this issue we
>> just disable this warning which was introduced with GCC 7.
>>
>> Also known as: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824
> 
> Two points:
> 
> TBH, I'd be a bit wary of this considering the recent fallout from silencing
> compiler warnings. Can you try to address this instead please?

I agree... Therefore I've removed the patch from master-next.

> 
> E.g. OpenJDK-8 has very similar code, so should be possible?
> 
> Also, I have gcc 7.3, yet I don't see that error. Is there something else
> happening?

We have already looked into it more deeply and will probably send a patch
for it next week. Although we are currently not entirely sure why the compiler
is complaining ;-)

regards;Richard.L


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-14 14:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 15:46 [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7 Richard Leitner
2018-08-13 20:58 ` Richard Leitner
2018-08-14  8:27 ` André Draszik
2018-08-14 14:47   ` Richard Leitner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.