From patchwork Fri Jul 2 17:07:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1500192 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.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=TwVwa/vj; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GGhNg0Lbdz9sRf for ; Sat, 3 Jul 2021 03:08:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 44586401CC; Fri, 2 Jul 2021 17:07:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oGFfWSmi9Z5c; Fri, 2 Jul 2021 17:07:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id A66FE401D6; Fri, 2 Jul 2021 17:07:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 934941BF5A6 for ; Fri, 2 Jul 2021 17:07:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 820E042293 for ; Fri, 2 Jul 2021 17:07:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b4yXcKVE-xsU for ; Fri, 2 Jul 2021 17:07:53 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by smtp4.osuosl.org (Postfix) with ESMTPS id 57DF842285 for ; Fri, 2 Jul 2021 17:07:53 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id l8so13229285wry.13 for ; Fri, 02 Jul 2021 10:07:53 -0700 (PDT) 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=SlWzMr6fVpF2VQLmc8L39WdA6muDCRP/myi6ZeEOy9g=; b=TwVwa/vjy+XtRIGKtw3uOWk4Ib/AIdwrhvNVodisqNh2JwNtIfDbzVEDxrTqqblL1G dInwVhiGnKCeESOnS4Kiim+YgWxu25Lh/vBUDqVaTzcW1Aulfxc+Xmnfw7nNdys8TeX5 ZcK989PILpvqdqsJ6m0QxufS4uECLFlUkjhBvhcFhVTHAYyBdKXXpjzx/mgk6S7KRrkt kYo8gxaKWLjbvC6+/vdNIQ3gXcFYrSEkaxWkmpvpleV946R63sN/dK7ZAXMIVQCyX7Kf LqVli64nU4rUrWXIMw4J/FQCJDlSz2Fw4gWnfLqAY+G9Y9tEuK1fhxrrWcs/MEEgcJEc NaEg== 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=SlWzMr6fVpF2VQLmc8L39WdA6muDCRP/myi6ZeEOy9g=; b=fDNt4af48ygjpPGRCFd3d6GYpJ9qu7TdokC6ztIziVUPuORY5CQnEwFRA5IBh7wIGj tyzwP3W/uijzq2iWkI1f1JP/QXeRyND4RpBwswiRW00VCpsd8Octxz95pBxBtwYVyhew gGS9T+LOH9fbrc5Z3ytkkbu6xVVObqiBixn74Z/yIgxVR4sJUMLGOL5PFsCbKC2zGJiK D3BTs/qmM+HhvckuvUErErVyp3t3ZzcDb+Ythut/2+0SLABU6iqlkcXta3yHOBE/ufq/ ZTA4vrqw9tWOsT8l08xKma+7Aobva8rH/55sZ3JQwpx+b0A1AnXw8QZt5lMPXBzPsjiy ilcw== X-Gm-Message-State: AOAM533V04TeiyiYYf7m17ukTCeC53rchKQIeoHYdTKF3xmTTOoJr1xY BYpV3ABLGbt5t02VSOBasPgIduHRQ/ZhoA== X-Google-Smtp-Source: ABdhPJyVmxX4p1L7R0LparWQEEID88uZlPG5UHl9eJWAqpuiwkBTPd+XBQO44sGtiigbQL0q0IAGRA== X-Received: by 2002:adf:fc4c:: with SMTP id e12mr717647wrs.412.1625245671283; Fri, 02 Jul 2021 10:07:51 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1383-171.w86-229.abo.wanadoo.fr. [86.229.230.171]) by smtp.gmail.com with ESMTPSA id q7sm1872233wmq.33.2021.07.02.10.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 10:07:50 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 2 Jul 2021 19:07:42 +0200 Message-Id: <20210702170742.891023-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/xen: fix build with -DNDEBUG 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: Alistair Francis , Matt Weber , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fix build failure with -DNDEBUG raised since commit 5a8c50fe05afacc3cbe8e7347e238da9f242fab0 Fixes: - http://autobuild.buildroot.org/results/66573ad0abc4244c0dfeac8b684a7bfcc31c0d4d Signed-off-by: Fabrice Fontaine Reviewed-by: Alistair Francis --- .../xen/0002-xen-Makefile-drop-Werror.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/xen/0002-xen-Makefile-drop-Werror.patch diff --git a/package/xen/0002-xen-Makefile-drop-Werror.patch b/package/xen/0002-xen-Makefile-drop-Werror.patch new file mode 100644 index 0000000000..f3f13dae8f --- /dev/null +++ b/package/xen/0002-xen-Makefile-drop-Werror.patch @@ -0,0 +1,38 @@ +From e87870cf2645a4dafeea6afce290c6e6574c37ea Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Fri, 2 Jul 2021 19:00:30 +0200 +Subject: [PATCH] xen/Makefile: drop -Werror + +Drop -Werror to avoid the following build failure with -DNDEBUG: + +In file included from :0:0: +/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/xen-4.14.2/xen/include/xen/config.h:94:0: error: "NDEBUG" redefined [-Werror] + #define NDEBUG + +:0:0: note: this is the location of the previous definition + +Fixes: + - http://autobuild.buildroot.org/results/66573ad0abc4244c0dfeac8b684a7bfcc31c0d4d + +Signed-off-by: Fabrice Fontaine +[Upstream status: sent to xen-devel@lists.xenproject.org] +--- + xen/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xen/Makefile b/xen/Makefile +index 89879fad4c..cf9f83b1fb 100644 +--- a/xen/Makefile ++++ b/xen/Makefile +@@ -210,7 +210,7 @@ CFLAGS += -fomit-frame-pointer + endif + + CFLAGS += -nostdinc -fno-builtin -fno-common +-CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith ++CFLAGS += -Wredundant-decls -Wno-pointer-arith + $(call cc-option-add,CFLAGS,CC,-Wvla) + CFLAGS += -pipe -D__XEN__ -include $(BASEDIR)/include/xen/config.h + CFLAGS-$(CONFIG_DEBUG_INFO) += -g +-- +2.30.2 +