From patchwork Wed Aug 28 22:36:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1154925 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=micronovasrl.com Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=micronovasrl.com header.i=@micronovasrl.com header.b="n4+JP+Jr"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46JgbP6rgbz9sNk for ; Thu, 29 Aug 2019 08:37:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 26DF988141; Wed, 28 Aug 2019 22:37:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id whyqn14oeTLw; Wed, 28 Aug 2019 22:36:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1A0DE8811F; Wed, 28 Aug 2019 22:36:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2491A1BF989 for ; Wed, 28 Aug 2019 22:36:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 20A6B87FD6 for ; Wed, 28 Aug 2019 22:36:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vHTEkil0+J+3 for ; Wed, 28 Aug 2019 22:36:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.micronovasrl.com (mail.micronovasrl.com [212.103.203.10]) by whitealder.osuosl.org (Postfix) with ESMTP id 5C06887FD4 for ; Wed, 28 Aug 2019 22:36:52 +0000 (UTC) Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id A0DF9B01741 for ; Thu, 29 Aug 2019 00:36:49 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=x-mailer:message-id:date:date:subject:subject:to:from:from; s=dkim; t=1567031808; x=1567895809; bh=eU1ZihqNHNQffhpuLNucTPHS Nc8e9BctUu6gjVjZd7M=; b=n4+JP+JrNsvckRQd9u5R7EDjW4pVEZ4/FmV7Vh2J R13U3c85/W5ou4/COWaMO4x9GBX3CYNG76YkjwLE1kUYbSNusMrnxyHx07Pkublo Jz1CZZ66hbPifYQTGvLpAsTxFlqbVqzXZfNblYbOD0xxOS/EJLJ8uPYkeQjNzcgD UDc= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wYXAbt4krj5K for ; Thu, 29 Aug 2019 00:36:48 +0200 (CEST) Received: from ubuntu.localdomain (88-149-228-83.v4.ngi.it [88.149.228.83]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 7A8D9B002F1; Thu, 29 Aug 2019 00:36:48 +0200 (CEST) From: Giulio Benetti To: buildroot@buildroot.org Date: Thu, 29 Aug 2019 00:36:45 +0200 Message-Id: <20190828223646.61333-1-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_91591 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas De Schampheleire , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" GCC fails building the dawgdic package for the Arc architecture: http://autobuild.buildroot.org/results/64706f96db793777de9d3ec63b0a47d776cf33fd/ The gcc bug was originally reported: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91591 This gcc bug no longer appears with gcc 9.x Signed-off-by: Giulio Benetti --- toolchain/Config.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index bd2c547ff1..d2c104c576 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -159,6 +159,12 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_90620 bool default y if BR2_microblaze +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91591 +config BR2_TOOLCHAIN_HAS_GCC_BUG_91591 + bool + default y if BR2_arc + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9 + config BR2_TOOLCHAIN_HAS_NATIVE_RPC bool From patchwork Wed Aug 28 22:36:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1154924 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=micronovasrl.com Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=micronovasrl.com header.i=@micronovasrl.com header.b="GpZcaqBx"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46JgbP4DXlz9sNC for ; Thu, 29 Aug 2019 08:37:03 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 758E487FED; Wed, 28 Aug 2019 22:36:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rS2IgaET0DfU; Wed, 28 Aug 2019 22:36:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 526BC87FD6; Wed, 28 Aug 2019 22:36:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 1696E1BF337 for ; Wed, 28 Aug 2019 22:36:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 133A087053 for ; Wed, 28 Aug 2019 22:36:53 +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 TKyQ7B1Y80wp for ; Wed, 28 Aug 2019 22:36:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.micronovasrl.com (mail.micronovasrl.com [212.103.203.10]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5C18A87051 for ; Wed, 28 Aug 2019 22:36:52 +0000 (UTC) Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 79722B0171D for ; Thu, 29 Aug 2019 00:36:50 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=references:in-reply-to:x-mailer:message-id:date:date:subject :subject:to:from:from; s=dkim; t=1567031809; x=1567895810; bh=xe ZI58lO4w9G91mh+dVLwq9VPI7HE1XMnVhERVgkp6E=; b=GpZcaqBx+G265qcqQp uQ/XGOdeBn1dZKciXwRhpxXyapmXzDhQy7XE1FKDNFOodFRf1ssgwUejW46ixj7q zP2fesBD921CMmFTdMX5xdrLaVZHR7uxEH0AA+crGyZQTSF7+5FeGmMm5L8Zmfp/ revvx4pL8tmZH7bi01Cc6XTv0= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id M1rqarGiFaeU for ; Thu, 29 Aug 2019 00:36:49 +0200 (CEST) Received: from ubuntu.localdomain (88-149-228-83.v4.ngi.it [88.149.228.83]) by mail.micronovasrl.com (Postfix) with ESMTPSA id C1E35B016D5; Thu, 29 Aug 2019 00:36:48 +0200 (CEST) From: Giulio Benetti To: buildroot@buildroot.org Date: Thu, 29 Aug 2019 00:36:46 +0200 Message-Id: <20190828223646.61333-2-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828223646.61333-1-giulio.benetti@micronovasrl.com> References: <20190828223646.61333-1-giulio.benetti@micronovasrl.com> Subject: [Buildroot] [PATCH 2/2] package/dawgdic: work around gcc bug 91591 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas De Schampheleire , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" With Arc Gcc version 8.x the build fails due to bug 91591: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91591. The bug shows up when building dawgdic with optimization but not when building with -O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_91591=y we force using -O0. Fixes: http://autobuild.buildroot.net/results/02f6e616631f05a4f15f31f2b2e67d65ba7afcb0/ Signed-off-by: Giulio Benetti --- package/dawgdic/dawgdic.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/dawgdic/dawgdic.mk b/package/dawgdic/dawgdic.mk index 443782c9f3..2706db95e4 100644 --- a/package/dawgdic/dawgdic.mk +++ b/package/dawgdic/dawgdic.mk @@ -11,4 +11,12 @@ DAWGDIC_LICENSE_FILES = COPYING DAWGDIC_AUTORECONF = YES DAWGDIC_INSTALL_STAGING = YES +DAWGDIC_CXXFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_91591),y) +DAWGDIC_CXXFLAGS += -O0 +endif + +DAWGDIC_CONF_ENV += CXXFLAGS="$(DAWGDIC_CXXFLAGS)" + $(eval $(autotools-package))