From patchwork Fri Feb 6 14:45:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 437333 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 01EA6140145 for ; Sat, 7 Feb 2015 01:45:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 399A690DC6; Fri, 6 Feb 2015 14:45:51 +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 Y5Ts0Q6ppRV8; Fri, 6 Feb 2015 14:45:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BF44990D28; Fri, 6 Feb 2015 14:45:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 2C5A41C2284 for ; Fri, 6 Feb 2015 14:45:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 271C0A1834 for ; Fri, 6 Feb 2015 14:45:49 +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 ygsG0eUwjwQP for ; Fri, 6 Feb 2015 14:45:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (down.free-electrons.com [37.187.137.238]) by fraxinus.osuosl.org (Postfix) with ESMTP id 075EDA182B for ; Fri, 6 Feb 2015 14:45:47 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 0FCFF2D8; Fri, 6 Feb 2015 15:45:47 +0100 (CET) Received: from localhost (col31-4-88-188-83-94.fbx.proxad.net [88.188.83.94]) by mail.free-electrons.com (Postfix) with ESMTPSA id B365E22A; Fri, 6 Feb 2015 15:45:46 +0100 (CET) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Fri, 6 Feb 2015 15:45:44 +0100 Message-Id: <1423233944-1722-1-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.1.0 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH] mono: add patch to fix MIPS build issue 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" Since the bump to version 3.12 of Mono, it fails to build on MIPS. The patch added by this commit fixes this build failure, simply caused by a missing include. Fixes: http://autobuild.buildroot.org/results/6f5/6f5e20a4a99eb0db650430bf6285c844fd940711/ Submitted upstream at https://github.com/mono/mono/pull/1550. Signed-off-by: Thomas Petazzoni Reviewed-by: Vicente Olivert Riera Tested-by: Vicente Olivert Riera --- .../0003-mono-context.h-fix-build-on-MIPS.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/mono/0003-mono-context.h-fix-build-on-MIPS.patch diff --git a/package/mono/0003-mono-context.h-fix-build-on-MIPS.patch b/package/mono/0003-mono-context.h-fix-build-on-MIPS.patch new file mode 100644 index 0000000..dab22ce --- /dev/null +++ b/package/mono/0003-mono-context.h-fix-build-on-MIPS.patch @@ -0,0 +1,33 @@ +From 8f489c24e1770c2852efcaff9419d54bfadf0854 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Fri, 6 Feb 2015 14:56:10 +0100 +Subject: [PATCH] mono-context.h: fix build on MIPS + +The mono-context.h file uses definitions such as mips_fp and mips_sp, +which are defined in , but this file is +not included, leading to build failures. + +This fix is similar to 4437ecea91bab3fe68ba1c30521acf75052662cd (for +ARM). + +Signed-off-by: Thomas Petazzoni +--- + mono/utils/mono-context.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/mono/utils/mono-context.h b/mono/utils/mono-context.h +index d96eb75..ad56e2c 100755 +--- a/mono/utils/mono-context.h ++++ b/mono/utils/mono-context.h +@@ -464,6 +464,8 @@ mono_ia64_context_get_fp (MonoContext *ctx) + + #elif ((defined(__mips__) && !defined(MONO_CROSS_COMPILE)) || (defined(TARGET_MIPS))) && SIZEOF_REGISTER == 4 /* defined(__ia64__) */ + ++#include ++ + typedef struct { + mgreg_t sc_pc; + mgreg_t sc_regs [32]; +-- +2.1.0 +