Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/openmpi: fix build failure due to Gcc Bug 68485
@ 2019-05-30 13:23 Giulio Benetti
  2019-05-31 20:53 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Giulio Benetti @ 2019-05-30 13:23 UTC (permalink / raw)
  To: buildroot

Package openmpi manifests Microblaze Gcc Bug 68485 resulting in a build
failure due to an Internal Compiler Error.

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/8f3/8f334427e7475154d69469f8ee4efab6df80e403/

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
 package/openmpi/openmpi.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/openmpi/openmpi.mk b/package/openmpi/openmpi.mk
index 8d9eafd631..b682e6e74e 100644
--- a/package/openmpi/openmpi.mk
+++ b/package/openmpi/openmpi.mk
@@ -38,4 +38,12 @@ else
 OPENMPI_CONF_OPTS += --enable-mpi-fortran=no
 endif
 
+OPENMPI_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
+OPENMPI_CFLAGS += -O0
+endif
+
+OPENMPI_CONF_ENV = CFLAGS="$(OPENMPI_CFLAGS)"
+
 $(eval $(autotools-package))
-- 
2.17.1

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

* [Buildroot] [PATCH] package/openmpi: fix build failure due to Gcc Bug 68485
  2019-05-30 13:23 [Buildroot] [PATCH] package/openmpi: fix build failure due to Gcc Bug 68485 Giulio Benetti
@ 2019-05-31 20:53 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-05-31 20:53 UTC (permalink / raw)
  To: buildroot

On Thu, 30 May 2019 15:23:41 +0200
Giulio Benetti <giulio.benetti@micronovasrl.com> wrote:

> Package openmpi manifests Microblaze Gcc Bug 68485 resulting in a build
> failure due to an Internal Compiler Error.
> 
> 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/8f3/8f334427e7475154d69469f8ee4efab6df80e403/
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
> ---
>  package/openmpi/openmpi.mk | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2019-05-31 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-30 13:23 [Buildroot] [PATCH] package/openmpi: fix build failure due to Gcc Bug 68485 Giulio Benetti
2019-05-31 20:53 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox