[Buildroot] [PATCH v2 04/12] package/ddrescue: fix BUG_85180 build timeout
Giulio Benetti
giulio.benetti at micronovasrl.com
Tue May 21 13:39:24 UTC 2019
With Microblaze Gcc version < 8.x build hangs on compiling first files.
This is due to bug 85180:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180
Bug shows up building ddrescue with optimization but not when building
with -O0.
If BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y force using -O0 passing it to
CXXFLAGS.
Fixes:
http://autobuild.buildroot.net/results/2af/2af69401acb76be3d3fd427d1c58fed3af33bf9b/
Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
---
package/ddrescue/ddrescue.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/ddrescue/ddrescue.mk b/package/ddrescue/ddrescue.mk
index 9432e7a16d..b746e4a416 100644
--- a/package/ddrescue/ddrescue.mk
+++ b/package/ddrescue/ddrescue.mk
@@ -18,8 +18,12 @@ define DDRESCUE_CONFIGURE_CMDS
)
endef
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
+DDRESCUE_CXXFLAGS += $(TARGET_CXXFLAGS) -O0
+endif
+
define DDRESCUE_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
+ $(TARGET_MAKE_ENV) $(MAKE) CXXFLAGS="$(DDRESCUE_CXXFLAGS)" -C $(@D)
endef
define DDRESCUE_INSTALL_TARGET_CMDS
--
2.17.1
More information about the buildroot
mailing list