From patchwork Wed Nov 13 19:05:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1194436 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qyV1/riM"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47CvFH12DVz9sPF for ; Thu, 14 Nov 2019 06:05:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 01ED0869F4; Wed, 13 Nov 2019 19:05:04 +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 a2uO6i-ZOOkv; Wed, 13 Nov 2019 19:05:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B6373869B8; Wed, 13 Nov 2019 19:05:00 +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 1CF321BF3E9 for ; Wed, 13 Nov 2019 19:04:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 195ED203B9 for ; Wed, 13 Nov 2019 19:04:59 +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 zBxLSX8Lx-Px for ; Wed, 13 Nov 2019 19:04:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by silver.osuosl.org (Postfix) with ESMTPS id F2F932001F for ; Wed, 13 Nov 2019 19:04:57 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id t26so3261323wmi.4 for ; Wed, 13 Nov 2019 11:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=94xbYdgwPadsZJv8SCAxXkSz1hKGl0M05XqRRrcvn0U=; b=qyV1/riMD4NQAMzetSdhnrDUEzHqGc41AwUoG24PF7CH+rVp/YAP14JIrKHyzQqPok xmvxZxH58+mhUtgTRn3C26762/ZAFX7XW946YgodgFFmvGGCAdWBs8ddfDVkYmeyWn59 /5jEWTUUUXyxKGzwzKK29cO72L2fhEJz+q7FvQdzZSTQgwTWR0F106oF+AYiuw8F5h27 J25IOo/ednrfLvbkiUOgCR6x0uZqjbWhJ4fy2qr7nOuOZOkgZCVX/hh8Tcg4LyCO0QUX V+MdLxzqeFJPVpCugtpga4W5GyvpQMTjqctkdfRDpX0g3In6FmkNUv81IjrRIhIwr9Qn OdjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=94xbYdgwPadsZJv8SCAxXkSz1hKGl0M05XqRRrcvn0U=; b=c3lLQBb7ZmBNJumkUYNFoIOPjM1R33UFlogOVBsvlr1BswO60xRGGAuAqvjL++rqYz 95XATEhFb9eN8queN0z7Gb+vL9VMnT8WFlGQg+638caw6IsPZmhkSSaXKCBwWMIBWxDL RTngoAsrKtQoGhc+x6bEeFLqESKwclIYvOU5BAW57fuFNA78CHIN84NKGKVyLph6c6yJ wBCGKTXs2UncY++AWHoQx12ofQ1Vqc5LPcdUTGkIryicT/FvoJLxHKCWwhsJOJS5LI8n 5xBk08SUEXmsoOWYhYqJTAiFH2sj7c/+qaSdA8Y2hFmh4WRRZchKqMD+GwfH3UYtEHwe Jh/A== X-Gm-Message-State: APjAAAWQw2aMw/yxUyaL+CwnN/sCONXiG0HbFWctMQ4ILHaOI8/7Uy81 2AIpQpU5dV5tt/ilYWtutwmD2owK X-Google-Smtp-Source: APXvYqzLgJs0lm6r0eXDqR26y2c3OQj7fJzUIm3xQ7kiJoxRrU756pIedherLAawNNKyZZxLyH8iPQ== X-Received: by 2002:a1c:4907:: with SMTP id w7mr4049572wma.62.1573671895892; Wed, 13 Nov 2019 11:04:55 -0800 (PST) Received: from kali.home (lfbn-1-3732-187.w86-229.abo.wanadoo.fr. [86.229.230.187]) by smtp.gmail.com with ESMTPSA id w12sm3232681wmi.17.2019.11.13.11.04.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 11:04:54 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Wed, 13 Nov 2019 20:05:32 +0100 Message-Id: <20191113190532.17744-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/ndisc6: needs c11 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: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" ndisc needs c11 because of alignas since version 1.0.4 and https://git.remlab.net/gitweb/?p=ndisc6.git;a=commit;h=d917e5172531dd72e896b317c07f64274e8024a1 https://git.remlab.net/gitweb/?p=ndisc6.git;a=commit;h=77a2efc350fdd52b76b1a4c874ec4029e722048b So replace -std=gnu99 by -std=c11 and add a dependency on gcc 4.7 This will fix build with gcc 8 Fixes: - http://autobuild.buildroot.org/results/1cab1e5f7c4250a153fd1ab758f818078833972f Signed-off-by: Fabrice Fontaine --- package/ndisc6/Config.in | 5 +++++ package/ndisc6/ndisc6.mk | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package/ndisc6/Config.in b/package/ndisc6/Config.in index 5531123851..287dc9199f 100644 --- a/package/ndisc6/Config.in +++ b/package/ndisc6/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_NDISC6 bool "ndisc6 tools" depends on BR2_USE_MMU # fork() + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # c11 help NDisc6 is a small collection of useful tools for IPv6 networking @@ -45,3 +46,7 @@ config BR2_PACKAGE_NDISC6_TCPSPRAY TCP/IP bandwidth measurement tool (Discard and Echo client). endif + +comment "ndisc6 needs a toolchain w/ gcc >= 4.7" + depends on BR2_USE_MMU + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 diff --git a/package/ndisc6/ndisc6.mk b/package/ndisc6/ndisc6.mk index 38eeb00567..9845aa2c9a 100644 --- a/package/ndisc6/ndisc6.mk +++ b/package/ndisc6/ndisc6.mk @@ -7,7 +7,7 @@ NDISC6_VERSION = 1.0.4 NDISC6_SOURCE = ndisc6-$(NDISC6_VERSION).tar.bz2 NDISC6_SITE = http://www.remlab.net/files/ndisc6 -NDISC6_CONF_ENV = CC="$(TARGET_CC) -std=gnu99" LIBS=$(TARGET_NLS_LIBS) +NDISC6_CONF_ENV = CC="$(TARGET_CC) -std=c11" LIBS=$(TARGET_NLS_LIBS) NDISC6_CONF_OPTS = --disable-rpath --disable-suid-install NDISC6_LICENSE = GPL-2.0 or GPL-3.0 NDISC6_LICENSE_FILES = COPYING