* [Buildroot] [PATCH] package/git: work around gcc bug 85180
@ 2019-06-25 7:02 Giulio Benetti
2019-08-01 13:37 ` Peter Korsgaard
2019-08-20 19:23 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Giulio Benetti @ 2019-06-25 7:02 UTC (permalink / raw)
To: buildroot
With Microblaze Gcc version < 8.x the build hangs due to gcc bug
85180: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. The bug
shows up when building git with optimization but not when building with
-O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y we force
using -O0.
Fixes:
http://autobuild.buildroot.net/results/7ad/7adff001631053ae5a3cb3e176d321f6a2d3cceb/
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
package/git/git.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/git/git.mk b/package/git/git.mk
index 1b4a1a51e9..55cdfbf13a 100644
--- a/package/git/git.mk
+++ b/package/git/git.mk
@@ -66,6 +66,14 @@ ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
GIT_MAKE_OPTS += NO_GETTEXT=1
endif
+GIT_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
+GIT_CFLAGS += -O0
+endif
+
+GIT_CONF_OPTS += CFLAGS="$(GIT_CFLAGS)"
+
GIT_INSTALL_TARGET_OPTS = $(GIT_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
# assume yes for these tests, configure will bail out otherwise
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/git: work around gcc bug 85180
2019-06-25 7:02 [Buildroot] [PATCH] package/git: work around gcc bug 85180 Giulio Benetti
@ 2019-08-01 13:37 ` Peter Korsgaard
2019-08-20 19:23 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-08-01 13:37 UTC (permalink / raw)
To: buildroot
>>>>> "Giulio" == Giulio Benetti <giulio.benetti@micronovasrl.com> writes:
> With Microblaze Gcc version < 8.x the build hangs due to gcc bug
> 85180: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. The bug
> shows up when building git with optimization but not when building with
> -O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y we force
> using -O0.
> Fixes:
> http://autobuild.buildroot.net/results/7ad/7adff001631053ae5a3cb3e176d321f6a2d3cceb/
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/git: work around gcc bug 85180
2019-06-25 7:02 [Buildroot] [PATCH] package/git: work around gcc bug 85180 Giulio Benetti
2019-08-01 13:37 ` Peter Korsgaard
@ 2019-08-20 19:23 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-08-20 19:23 UTC (permalink / raw)
To: buildroot
>>>>> "Giulio" == Giulio Benetti <giulio.benetti@micronovasrl.com> writes:
> With Microblaze Gcc version < 8.x the build hangs due to gcc bug
> 85180: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. The bug
> shows up when building git with optimization but not when building with
> -O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y we force
> using -O0.
> Fixes:
> http://autobuild.buildroot.net/results/7ad/7adff001631053ae5a3cb3e176d321f6a2d3cceb/
> 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] 3+ messages in thread
end of thread, other threads:[~2019-08-20 19:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 7:02 [Buildroot] [PATCH] package/git: work around gcc bug 85180 Giulio Benetti
2019-08-01 13:37 ` Peter Korsgaard
2019-08-20 19:23 ` 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.