From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] ptpd2: fix bfin compile by avoiding gcc bug
Date: Mon, 21 Nov 2016 19:32:18 +0100 [thread overview]
Message-ID: <20161121183217.GA1046@waldemar-brodkorb.de> (raw)
Fixes:
http://autobuild.buildroot.net/results/cb967c8af006caa9272e800968f794ca018a7a27
http://autobuild.buildroot.net/results/9a046dc5ef390e562b89338f0afeaef14b945458
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
package/ptpd2/ptpd2.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/ptpd2/ptpd2.mk b/package/ptpd2/ptpd2.mk
index da6a106..43b59dc 100644
--- a/package/ptpd2/ptpd2.mk
+++ b/package/ptpd2/ptpd2.mk
@@ -24,6 +24,12 @@ else
PTPD2_CONF_OPTS += --disable-snmp
endif
+# GCC bug with Os/O1/O2/O3
+# internal compiler error: in gen_add2_insn, at optabs.c:4454
+ifeq ($(BR2_bfin),y)
+PTPD2_CONF_ENV += CFLAGS="-O0"
+endif
+
define PTPD2_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/ptpd2/S65ptpd2 \
$(TARGET_DIR)/etc/init.d/S65ptpd2
--
2.1.4
next reply other threads:[~2016-11-21 18:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-21 18:32 Waldemar Brodkorb [this message]
2016-11-21 21:04 ` [Buildroot] [PATCH] ptpd2: fix bfin compile by avoiding gcc bug Thomas Petazzoni
2016-11-22 10:12 ` Waldemar Brodkorb
2016-11-22 10:16 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161121183217.GA1046@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.