From patchwork Sun Aug 13 08:59:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 800971 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xVXk74Dh9z9sPr for ; Sun, 13 Aug 2017 18:59:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8B9B78698D; Sun, 13 Aug 2017 08:59:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wxw0cPKP-Lkl; Sun, 13 Aug 2017 08:59:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 27559859EB; Sun, 13 Aug 2017 08:59:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 43B141C0169 for ; Sun, 13 Aug 2017 08:59:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3C9462F714 for ; Sun, 13 Aug 2017 08:59:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id STr1o16uNjzS for ; Sun, 13 Aug 2017 08:59:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) by silver.osuosl.org (Postfix) with ESMTPS id 6534B2F417 for ; Sun, 13 Aug 2017 08:59:32 +0000 (UTC) Received: by helium.openadk.org (Postfix, from userid 1000) id 3126710146; Sun, 13 Aug 2017 10:59:27 +0200 (CEST) Date: Sun, 13 Aug 2017 10:59:26 +0200 From: Waldemar Brodkorb To: buildroot@buildroot.org Message-ID: <20170813085926.GA13312@waldemar-brodkorb.de> MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux 3.16.0-4-amd64 x86_64 User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [Buildroot] [PATCH] gpsd: fix compile for microblaze arch X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Disable O2 and add O0. The suggested flags in the gcc report are not enough for gcc >= 6. Fixes: http://autobuild.buildroot.net/results/368/3686cd3f3e7b6aee84f4377bd2dded1115321fb3/ Signed-off-by: Waldemar Brodkorb --- package/gpsd/0002-do-not-append-O2.patch | 18 ++++++++++++++++++ package/gpsd/gpsd.mk | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 package/gpsd/0002-do-not-append-O2.patch diff --git a/package/gpsd/0002-do-not-append-O2.patch b/package/gpsd/0002-do-not-append-O2.patch new file mode 100644 index 000000000..585c82835 --- /dev/null +++ b/package/gpsd/0002-do-not-append-O2.patch @@ -0,0 +1,18 @@ +Disable default O2 passing + +Signed-off-by: Waldemar Brodkorb + +diff -Nur gpsd-3.16.orig/SConstruct gpsd-3.16/SConstruct +--- gpsd-3.16.orig/SConstruct 2016-01-08 20:25:48.000000000 +0100 ++++ gpsd-3.16/SConstruct 2017-08-13 10:42:14.082794656 +0200 +@@ -330,9 +330,7 @@ + # Should we build with optimisation? + if env['debug'] or env['coveraging']: + env.Append(CCFLAGS=['-O0']) +- else: +- env.Append(CCFLAGS=['-O2']) +- ++# + # Get a slight speedup by not doing automatic RCS and SCCS fetches. + env.SourceCode('.', None) + diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk index 552d6d936..2b9c38a42 100644 --- a/package/gpsd/gpsd.mk +++ b/package/gpsd/gpsd.mk @@ -44,7 +44,7 @@ endif # A bug was reported to the gcc bug tracker: # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485 ifeq ($(BR2_microblaze),y) -GPSD_CFLAGS += -fno-expensive-optimizations -fno-schedule-insns +GPSD_CFLAGS += -O0 endif # Enable or disable Qt binding