All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] micropython: fix build for MIPS64 n32
Date: Wed, 23 Sep 2015 08:02:42 +0100	[thread overview]
Message-ID: <56024E92.8070601@imgtec.com> (raw)
In-Reply-To: <1442991402-36922-1-git-send-email-Vincent.Riera@imgtec.com>

Maintainer, please:

On 23/09/15 07:56, Vicente Olivert Riera wrote:
> This patch applies an upstream patch to fix a compile error like this
> one:
>
> modffi.c: In function 'ffifunc_call':
> modffi.c:358:25: error: cast from pointer to integer of different size
> [-Werror=pointer-to-int-cast]
>               values[i] = (ffi_arg)a;
>
> This error can be highlighted when building micropython from MIPS64 n32

s/from/for/


Thanks in advance,

Vincent.

> because ffi_arg is 64-bit wide and the pointers on MIPS64 n32 are 32-bit
> wide, so it's trying to case an integer to a pointer (or vice versa) of
> a different size. We should cast first the pointer (or the integer) to a
> pointer sized integer (intptr_t) to fix that problem.
>
> This patch was merged upstream as a result of this pull request:
>
>    https://github.com/micropython/micropython/pull/1471
>
> Fixes:
>
>    http://autobuild.buildroot.net/results/e22/e2253de3f96e9a53e75b4cecaf56c1df2950803f/
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
>   package/micropython/micropython.mk |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/package/micropython/micropython.mk b/package/micropython/micropython.mk
> index f2ad5bf..b021988 100644
> --- a/package/micropython/micropython.mk
> +++ b/package/micropython/micropython.mk
> @@ -10,6 +10,7 @@ MICROPYTHON_LICENSE = MIT
>   MICROPYTHON_LICENSE_FILES = LICENSE
>   MICROPYTHON_DEPENDENCIES = host-pkgconf libffi
>   MICROPYTHON_PATCH = https://github.com/micropython/micropython/commit/8b4fb4fe140e9cf57fcfa258d0d2d6fe19090fc5.patch
> +MICROPYTHON_PATCH = https://github.com/micropython/micropython/commit/587914169cc6ff7f0513bd14c42dcbb275bf77bd.patch
>
>   # Use fallback implementation for exception handling on architectures that don't
>   # have explicit support.
>

  reply	other threads:[~2015-09-23  7:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23  6:56 [Buildroot] [PATCH] micropython: fix build for MIPS64 n32 Vicente Olivert Riera
2015-09-23  7:02 ` Vicente Olivert Riera [this message]
2015-09-23  8:33 ` Chris Packham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56024E92.8070601@imgtec.com \
    --to=vincent.riera@imgtec.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.