From patchwork Thu Aug 13 21:32:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1344455 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.a=rsa-sha256 header.s=20161025 header.b=AluMIY8c; 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 4BSKYd5xTCz9sPf for ; Fri, 14 Aug 2020 07:33:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 51EF78723B; Thu, 13 Aug 2020 21:33:08 +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 szwhf4WcJ8k4; Thu, 13 Aug 2020 21:33:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 79A4D87209; Thu, 13 Aug 2020 21:33:05 +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 7C78F1BF3A0 for ; Thu, 13 Aug 2020 21:33:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 464A025D1D for ; Thu, 13 Aug 2020 21:33:03 +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 il+cP3Z9a8o7 for ; Thu, 13 Aug 2020 21:33:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by silver.osuosl.org (Postfix) with ESMTPS id 5051525C89 for ; Thu, 13 Aug 2020 21:33:01 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id p20so6595036wrf.0 for ; Thu, 13 Aug 2020 14:33:01 -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=kqqAeGVniqS3v9Ief/jYFGOiMov2vaRaky3cTklJJbE=; b=AluMIY8cNNBk/p6KWjYnipbsHyQnGjTM8bpqmrjbVMsyLLsnkCpgEaWSEA0FGy/9wa 0JvrYE3o6snzX9zfi04cSEQiLvKS/wPMeY6AK/2fg2Mwqi+aTlWk7+2rOuCMK/dM2jdQ QwIX7pY6gRDC1AEqXhRabPFONcjAPsF06icinxHcxHrl1uf82VdXme6sxOMXDF8DwRhe Ns1qBV0ujI6uaMsVpoDNPHxHVI2Sfs/0y73vX9wk3ki6p4IvTS5EJvbks5JmB8tzFgZY V/NFqQSP1vxLGXyWQUYKCvJVZS+N44/oyFrc7trPfC5A26iZBG/IKYE+Z26MXZFVFjqI LQPw== 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=kqqAeGVniqS3v9Ief/jYFGOiMov2vaRaky3cTklJJbE=; b=TgE1ukI6SH39ZDtdvFQLFtZfuR/GEV38UPXZoTMsE5RGAsNy3xcaxm8lipYx1x0rR6 heZhz7yZHoeUZc1Brr6ZoNAGyomL2uoox0dAXE3o8EOQj+XpzuehruL4TU/now1QIoA/ bQ7oR1yluq3NXxFvH8WgJ52Xbs2vG2YJXEqSgfNHmoW+MYWSegPGT8g+UUBXDqEZcGC/ 1fddhXZerPYXqssBkGZnOBJKsCjo8/QCC+In5CnHp+Hys4TOHMbTqrMUDebZTTnVEFhd HSq3kzOiALHTXT90/hltHyWHeFF5g79+8Ig+HzEK5SLRP27KeQDDy2otIHCQNWh0hI/b TDJw== X-Gm-Message-State: AOAM530XFxlJNSnUeECOof4dvy/OQ5QGvc3rE4Y3cNSnlNHVJZhswdKY zIBcCNuN/8GaT/y+AlitaRgREN+W X-Google-Smtp-Source: ABdhPJz7Q+dFA6kHxEpwnyTKMJVjBq+waqVcAldZEAwIPUO7H/es668iIuoC9B6hZIwTR+veSbfTDQ== X-Received: by 2002:a5d:56c9:: with SMTP id m9mr5600336wrw.311.1597354379374; Thu, 13 Aug 2020 14:32:59 -0700 (PDT) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id p17sm12732096wra.81.2020.08.13.14.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 14:32:58 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Thu, 13 Aug 2020 23:32:47 +0200 Message-Id: <20200813213247.526099-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/18xx-ti-utils: fix build with gcc 10 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" Fixes: - http://autobuild.buildroot.org/results/df2d04de4b2e5003f3fc56c9e84db5054bd4d499 Signed-off-by: Fabrice Fontaine --- .../0001-plt.h-fix-build-with-gcc-10.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/18xx-ti-utils/0001-plt.h-fix-build-with-gcc-10.patch diff --git a/package/18xx-ti-utils/0001-plt.h-fix-build-with-gcc-10.patch b/package/18xx-ti-utils/0001-plt.h-fix-build-with-gcc-10.patch new file mode 100644 index 0000000000..36480dfccb --- /dev/null +++ b/package/18xx-ti-utils/0001-plt.h-fix-build-with-gcc-10.patch @@ -0,0 +1,38 @@ +From 12d3b3c01b0ec28d45427754541a8156939346d9 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Thu, 13 Aug 2020 23:24:05 +0200 +Subject: [PATCH] plt.h: fix build with gcc 10 + +Drop EFUSE_PARAMETER_TYPE_ENM to fix the following build failure with +gcc 10: + +/home/buildroot/autobuild/run/instance-3/output-1/host/bin/arm-buildroot-linux-gnueabihf-gcc -L/home/buildroot/autobuild/run/instance-3/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/lib nvs.o misc_cmds.o calibrator.o plt.o wl18xx_plt.o ini.o -lm -lnl-3 -lnl-genl-3 -o calibrator +/home/buildroot/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: misc_cmds.o:(.bss+0x0): multiple definition of `EFUSE_PARAMETER_TYPE_ENM'; nvs.o:(.bss+0x0): first defined here +/home/buildroot/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: calibrator.o: in function `.LANCHOR0': +calibrator.c:(.bss+0xc): multiple definition of `EFUSE_PARAMETER_TYPE_ENM'; nvs.o:(.bss+0x0): first defined here + +Fixes: + - http://autobuild.buildroot.org/results/df2d04de4b2e5003f3fc56c9e84db5054bd4d499 + +Signed-off-by: Fabrice Fontaine +[Upstream status: sent to sudharshan ] +--- + plt.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plt.h b/plt.h +index 8b534a9..43d5dbc 100644 +--- a/plt.h ++++ b/plt.h +@@ -399,7 +399,7 @@ enum EFUSE_PARAMETER_TYPE_ENMT { + TX_BIP_PD_BUFFER_VBIAS_ERROR_E, + EFUSE_NUMBER_OF_PARAMETERS_E, + EFUSE_LAST_PARAMETER_E = (EFUSE_NUMBER_OF_PARAMETERS_E - 1) +-} EFUSE_PARAMETER_TYPE_ENM; ++}; + + int get_mac_addr(int ifc_num, unsigned char *mac_addr); + +-- +2.27.0 +