From patchwork Sun May 17 07:33:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1292048 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.138; helo=whitealder.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.a=rsa-sha256 header.s=20161025 header.b=WO90psxf; 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 49Pv6G1fshz9sTD for ; Sun, 17 May 2020 17:34:14 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B22AA87D05; Sun, 17 May 2020 07:34:12 +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 e8pHAjBMxyvp; Sun, 17 May 2020 07:34:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1D3C487D54; Sun, 17 May 2020 07:34:12 +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 8271A1BF362 for ; Sun, 17 May 2020 07:34:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7F34F87CE4 for ; Sun, 17 May 2020 07:34:11 +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 K3CG2Biw3dfq for ; Sun, 17 May 2020 07:34:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 88AE187CBE for ; Sun, 17 May 2020 07:34:10 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id y3so8121719wrt.1 for ; Sun, 17 May 2020 00:34:10 -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=TVCzWeZQutXNIMTi8ZpnlSQ5ehlLB4JNJJ7IRcr87AY=; b=WO90psxflnTDULF0rX/KklG295ROrIGd6hTZGswH21QKkXsS1uKWCXYiMtGq0LY8g2 ZiRM4ccn1wOwz7Zk0vOIsU8PmO2YKOh26v/z1S/wHNXUWFWeFzDwRmtWll/sNcn0WDFp g9EtW9hxmZoXaFlM7Xi4WT7JyfLDtZBDnLwjmcdZvCRwHrE6Iz+Eix/6xo17XJ0LCuoG 9kSUl6ixwE9WomrW7D/oUKJ33mhOTJhEyniXL0kEpewXsqPrYwD8+YwD4Oc0zCeu76A3 8/hcdr55UsrLMm/vdFXzcMRaYEd9SiGBORXI842YyDrwP4m8bSS9tiQMAcy7Ky5djBYy rFzw== 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=TVCzWeZQutXNIMTi8ZpnlSQ5ehlLB4JNJJ7IRcr87AY=; b=otuPjs5z4zIXtkVfDd8z7tYyqdFetQvriuJFvJn0HIpkwnpuLvgf16uH/dXgQbmzA8 pFnAHdl/X4Olpx40FhmuRgpluSe+QiDjCtazPNQEdkoDdRqSKo+GDnpW7mCrOTI0btqF htqrJshtLYU7/nWQe07rUtcFkvD2Ur6qKjmrZo121qZyO0FgcIabxAnLj2CCeMDoap0n mYYZjNSndrzAQDKmHvl1KW/WxFH5DFMBad46GjJvwtPPZ4qPxfanvaq2XUyJMW9sTDLQ gQbVcmILwcg7h/b1McNOor56Q0AwTcR+a6AkRDh2dOS/PHMruzp1dn6M2GUEp5N/tg9C PKSw== X-Gm-Message-State: AOAM531J38Uj5Rey9nFUgCpmYVbejCGXm/7Ew7L+rApyKsch1SD2G8oV gVBnzFVkiTsVbOoNImOzHYPiiGcD X-Google-Smtp-Source: ABdhPJyptNUerPTwO/ikP20VQbbDNzp+OhuO7bcpcV1l1o6MGfM+xD+2oo0q2OeOTVRmG15exCvzgg== X-Received: by 2002:adf:a4d5:: with SMTP id h21mr13692583wrb.288.1589700848753; Sun, 17 May 2020 00:34:08 -0700 (PDT) Received: from t450s.fritz.box (ip5b426f84.dynamic.kabel-deutschland.de. [91.66.111.132]) by smtp.gmail.com with ESMTPSA id q2sm10494526wmq.23.2020.05.17.00.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 00:34:08 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Sun, 17 May 2020 09:33:40 +0200 Message-Id: <20200517073338.27034-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/openocd: fix -fno-common build failure 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: Heiko Thiery , Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Added upstream patch for fixing build failure when using GCC10 as a host compiler (-fno-common is now default) Fixes: http://autobuild.buildroot.org/results/0fc/0fcb11a40bcff78e8084335114af390d2fac31e1 Cc: Romain Naour Signed-off-by: Heiko Thiery --- .../0003-bitbang-Fix-FTBFS-with-GCC-10.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/openocd/0003-bitbang-Fix-FTBFS-with-GCC-10.patch diff --git a/package/openocd/0003-bitbang-Fix-FTBFS-with-GCC-10.patch b/package/openocd/0003-bitbang-Fix-FTBFS-with-GCC-10.patch new file mode 100644 index 0000000000..cf83515247 --- /dev/null +++ b/package/openocd/0003-bitbang-Fix-FTBFS-with-GCC-10.patch @@ -0,0 +1,37 @@ +From c60252ac2b636c4d99b766a574b9df0966151696 Mon Sep 17 00:00:00 2001 +From: Andreas Fritiofson +Date: Fri, 17 Apr 2020 13:49:28 +0200 +Subject: [PATCH] bitbang: Fix FTBFS with GCC 10 + +GCC 10 defaults to -fno-common which breaks the sharing of bitbang_swd +struct between bitbang drivers due to a missing extern. + +Change-Id: I2b4122f7939cec91a72284006748f99a23548324 +Signed-off-by: Andreas Fritiofson +Reviewed-on: http://openocd.zylin.com/5592 +Tested-by: jenkins +Reviewed-by: Antonio Borneo +Reviewed-by: Jonathan McDowell + +Patch taken from upstream: https://github.com/ntfreak/openocd/commit/c60252ac2b636c4d99b766a574b9df0966151696 +Signed-off-by: Heiko Thiery +--- + src/jtag/drivers/bitbang.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h +index edb779ca..bbbc693d 100644 +--- a/src/jtag/drivers/bitbang.h ++++ b/src/jtag/drivers/bitbang.h +@@ -56,7 +56,7 @@ struct bitbang_interface { + void (*swdio_drive)(bool on); + }; + +-const struct swd_driver bitbang_swd; ++extern const struct swd_driver bitbang_swd; + + extern bool swd_mode; + +-- +2.20.1 +