From patchwork Sun Sep 20 08:44:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 519976 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id C97441401E7 for ; Sun, 20 Sep 2015 18:45:14 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=YesquTLh; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 41B9D94FE6; Sun, 20 Sep 2015 08:45:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GsszJuouzN0m; Sun, 20 Sep 2015 08:45:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B21C094FDF; Sun, 20 Sep 2015 08:45:12 +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 D13F11CEE16 for ; Sun, 20 Sep 2015 08:45:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CA00930B7A for ; Sun, 20 Sep 2015 08:45:11 +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 hwkUl0pJpMQX for ; Sun, 20 Sep 2015 08:45:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by silver.osuosl.org (Postfix) with ESMTPS id 1FEB02ECD7 for ; Sun, 20 Sep 2015 08:45:11 +0000 (UTC) Received: by pacfv12 with SMTP id fv12so90459783pac.2 for ; Sun, 20 Sep 2015 01:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DbU1ead+Fpyi3sOXTa4ir+6/2EDuS007ufmcYsxuvWQ=; b=YesquTLh4RW2PyVFZG/PYWc+TsOroN0fJW54TU/YlSBdIpvTn74sButIx63G4HpDKR ycjowhGJ0UJoicFloHC6LD+QpsR+utLcC3iLr+qJ51mnUN2cEffmg8LGxp9rj2cNMgX7 d9kpkDEvw3MfBgd6tiv2rGOPCdS9uup+TWQFOjV1QkVx3lg4+7/8xBzH2DlrzwbAgJF1 WkqaGsekXqP2WMGmSqh7psnLWErmYaDjIfr1rvvKeVcj5h202ARs7KliPYn4x3sdW0Tr iFPUcohYVwHblgsbOuO4NuDi3TQ+2pyxBHGhYspipMLBbIvqX07uS0yl5NQUCsgV9ZjB 7Eww== X-Received: by 10.68.250.98 with SMTP id zb2mr17511529pbc.40.1442738710558; Sun, 20 Sep 2015 01:45:10 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by smtp.gmail.com with ESMTPSA id v6sm14444975pbs.40.2015.09.20.01.45.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Sep 2015 01:45:10 -0700 (PDT) From: Chris Packham To: buildroot@buildroot.org Date: Sun, 20 Sep 2015 20:44:35 +1200 Message-Id: <1442738675-5141-1-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 2.5.0 Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH] micropython: Add upstream patch to fix 64-bit builds X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes the following error when building for a 64-bit target ../py/objint_mpz.c:54:5: error: right shift count >= width of type [-Werror] (MP_SSIZE_MAX >> MPZ_DIG_SIZE * 4) & DIG_MASK, ^ ../py/objint_mpz.c:54:5: error: initializer element is not constant ../py/objint_mpz.c:54:5: error: (near initialization for 'maxsize_dig[4]') Signed-off-by: Chris Packham Reviewed-by: Vicente Olivert Riera Tested-by: Vicente Olivert Riera --- So this is the upstream patch that fixes the build problem and replaces http://lists.busybox.net/pipermail/buildroot/2015-September/139826.html package/micropython/micropython.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/micropython/micropython.mk b/package/micropython/micropython.mk index 6266882..f2ad5bf 100644 --- a/package/micropython/micropython.mk +++ b/package/micropython/micropython.mk @@ -9,6 +9,7 @@ MICROPYTHON_SITE = $(call github,micropython,micropython,$(MICROPYTHON_VERSION)) MICROPYTHON_LICENSE = MIT MICROPYTHON_LICENSE_FILES = LICENSE MICROPYTHON_DEPENDENCIES = host-pkgconf libffi +MICROPYTHON_PATCH = https://github.com/micropython/micropython/commit/8b4fb4fe140e9cf57fcfa258d0d2d6fe19090fc5.patch # Use fallback implementation for exception handling on architectures that don't # have explicit support.