* [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485
@ 2019-06-25 6:44 Giulio Benetti
2019-06-29 15:28 ` Zoltan Gyarmati
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Giulio Benetti @ 2019-06-25 6:44 UTC (permalink / raw)
To: buildroot
The proj package exhibits gcc bug 68485 when built for the Microblaze
architecture with optimization enabled, which causes a build failure.
As done for other packages in Buildroot work around this gcc bug by
setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.
Fixes:
http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9cafea6f/
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
package/proj/proj.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/proj/proj.mk b/package/proj/proj.mk
index 0b239b2bbe..2969eb57ac 100644
--- a/package/proj/proj.mk
+++ b/package/proj/proj.mk
@@ -10,4 +10,12 @@ PROJ_LICENSE = MIT
PROJ_LICENSE_FILES = COPYING
PROJ_INSTALL_STAGING = YES
+PROJ_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
+PROJ_CFLAGS += -O0
+endif
+
+PROJ_CONF_ENV = CFLAGS="$(PROJ_CFLAGS)"
+
$(eval $(autotools-package))
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485
2019-06-25 6:44 [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485 Giulio Benetti
@ 2019-06-29 15:28 ` Zoltan Gyarmati
2019-08-01 13:36 ` Peter Korsgaard
2019-08-20 19:21 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Zoltan Gyarmati @ 2019-06-29 15:28 UTC (permalink / raw)
To: buildroot
On Dienstag, 25. Juni 2019 08:44:36 CEST Giulio Benetti wrote:
> The proj package exhibits gcc bug 68485 when built for the Microblaze
> architecture with optimization enabled, which causes a build failure.
>
> As done for other packages in Buildroot work around this gcc bug by
> setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.
>
> Fixes:
>
> http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9
> cafea6f/
>
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Tested-by: Zoltan Gyarmati <zgyarmati@zgyarmati.de>
Acked-by: Zoltan Gyarmati <zgyarmati@zgyarmati.de>
> ---
> package/proj/proj.mk | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/package/proj/proj.mk b/package/proj/proj.mk
> index 0b239b2bbe..2969eb57ac 100644
> --- a/package/proj/proj.mk
> +++ b/package/proj/proj.mk
> @@ -10,4 +10,12 @@ PROJ_LICENSE = MIT
> PROJ_LICENSE_FILES = COPYING
> PROJ_INSTALL_STAGING = YES
>
> +PROJ_CFLAGS = $(TARGET_CFLAGS)
> +
> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
> +PROJ_CFLAGS += -O0
> +endif
> +
> +PROJ_CONF_ENV = CFLAGS="$(PROJ_CFLAGS)"
> +
> $(eval $(autotools-package))
--
Zoltan Gyarmati
https://zgyarmati.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190629/4fa7e206/attachment.asc>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485
2019-06-25 6:44 [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485 Giulio Benetti
2019-06-29 15:28 ` Zoltan Gyarmati
@ 2019-08-01 13:36 ` Peter Korsgaard
2019-08-20 19:21 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2019-08-01 13:36 UTC (permalink / raw)
To: buildroot
>>>>> "Giulio" == Giulio Benetti <giulio.benetti@micronovasrl.com> writes:
> The proj package exhibits gcc bug 68485 when built for the Microblaze
> architecture with optimization enabled, which causes a build failure.
> As done for other packages in Buildroot work around this gcc bug by
> setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.
> Fixes:
> http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9cafea6f/
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485
2019-06-25 6:44 [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485 Giulio Benetti
2019-06-29 15:28 ` Zoltan Gyarmati
2019-08-01 13:36 ` Peter Korsgaard
@ 2019-08-20 19:21 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2019-08-20 19:21 UTC (permalink / raw)
To: buildroot
>>>>> "Giulio" == Giulio Benetti <giulio.benetti@micronovasrl.com> writes:
> The proj package exhibits gcc bug 68485 when built for the Microblaze
> architecture with optimization enabled, which causes a build failure.
> As done for other packages in Buildroot work around this gcc bug by
> setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.
> Fixes:
> http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9cafea6f/
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Committed to 2019.02.x and 2019.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-20 19:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 6:44 [Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485 Giulio Benetti
2019-06-29 15:28 ` Zoltan Gyarmati
2019-08-01 13:36 ` Peter Korsgaard
2019-08-20 19:21 ` Peter Korsgaard
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.