From patchwork Thu Jun 6 09:09:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1110971 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="ZreMAPtP"; 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 45KKcn5lj8z9s3l for ; Thu, 6 Jun 2019 19:10:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C410F869C4; Thu, 6 Jun 2019 09:10:09 +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 CWNM5-FGH2YU; Thu, 6 Jun 2019 09:10:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7E01D8695B; Thu, 6 Jun 2019 09:10:06 +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 5043E1BF3D2 for ; Thu, 6 Jun 2019 09:10:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4B112204A8 for ; Thu, 6 Jun 2019 09:10:05 +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 MR1khKJa3k1e for ; Thu, 6 Jun 2019 09:10:04 +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 silver.osuosl.org (Postfix) with ESMTP id C823D20355 for ; Thu, 6 Jun 2019 09:10:03 +0000 (UTC) Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id F06F2B012AB for ; Thu, 6 Jun 2019 11:10:00 +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=1559812200; x=1560676201; bh=P3QCLFyftvI6ene0uVi+1cOT WhQTYD9f1Xka3I3Z8AA=; b=ZreMAPtP9BCvvJnPyjQXWcRYKPvdRxEqyjpNl/w9 HDIdVr/f3jhaGDtb1vO+BcDUBwp5KmOBT72GEgR2hdF9Od2DFUlPprSxr5lHp4Yw SWXARvL0d0fmLkcy1PBFzqBarpoSjOqYt9ZR8o0nDrvwlYsnxK+Iyow3DqS9bwWA w/s= 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 OASV8PZYPQGq for ; Thu, 6 Jun 2019 11:10:00 +0200 (CEST) Received: from ubuntu.localdomain (benettig-pc.dominio.micronovasrl.com [192.168.123.215]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 097FAB010B5; Thu, 6 Jun 2019 11:10:00 +0200 (CEST) From: Giulio Benetti To: buildroot@buildroot.org Date: Thu, 6 Jun 2019 11:09:59 +0200 Message-Id: <20190606090959.122857-1-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] package/snort: work around gcc bug 85180 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: Sergio Prado MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "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 snort 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/d24/d2412710f6cfbfc069e7858e507e28555baafa3e/ Signed-off-by: Giulio Benetti --- package/snort/snort.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/snort/snort.mk b/package/snort/snort.mk index c767d7c545..191ef673d7 100644 --- a/package/snort/snort.mk +++ b/package/snort/snort.mk @@ -20,6 +20,10 @@ SNORT_CONF_OPTS = \ --with-libpcap-includes=$(STAGING_DIR)/usr/include/pcap \ --disable-static-daq +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) +SNORT_CFLAGS += -O0 +endif + ifeq ($(BR2_PACKAGE_LIBTIRPC),y) SNORT_DEPENDENCIES += libtirpc host-pkgconf SNORT_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`