FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 06-05-2011, 06:29 PM
Hector Oron
 
Default Bug#629342: linux-2.6: FTBFS on armel

Package: linux-2.6
Version: 3.0.0~rc1
Severity: serious
Tags: experimental patch

Hello,

Your package fails to build from source on Debian autobuilders for armel architecture:

CC arch/arm/plat-iop/cp6.o
In file included from /build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/plat-iop/cp6.c:20:
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/include/asm/traps.h:12: warning: 'struct pt_regs' declared inside parameter list
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/include/asm/traps.h:12: warning: its scope is only this definition or declaration, which is probably not what you want
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/include/asm/traps.h:48: warning: 'struct pt_regs' declared inside parameter list
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/include/asm/traps.h:48: warning: 'struct task_struct' declared inside parameter list
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/plat-iop/cp6.c:22: warning: 'struct pt_regs' declared inside parameter list
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/plat-iop/cp6.c:42: error: 'MODE_MASK' undeclared here (not in a function)
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/plat-iop/cp6.c:43: error: 'SVC_MODE' undeclared here (not in a function)
/build/buildd-linux-2.6_3.0.0~rc1-1~experimental.1-armel-lHnfXZ/linux-2.6-3.0.0~rc1/debian/build/source_armel_none/arch/arm/plat-iop/cp6.c:44: warning: initialization from incompatible pointer type
make[6]: *** [arch/arm/plat-iop/cp6.o] Error 1

See full log at:
https://buildd.debian.org/status/fetch.php?pkg=linux-2.6&arch=armel&ver=3.0.0~rc1-1~experimental.1&stamp=1307098391

This bug is also revealed by Simtec autobuilder:
http://armlinux.simtec.co.uk/kautobuild/2.6.39-git11/iop32x_defconfig/zimage.log

The following patch fixes the build:


>From ace377ade6dce2e3cca400281f8be60398f0c04c Mon Sep 17 00:00:00 2001
From: Hector Oron <hector.oron@gmail.com>
Date: Sun, 5 Jun 2011 19:24:09 +0100
Subject: [PATCH] plat-iop: fixes fail to build from source

arch/arm/plat-iop/cp6.c:42: error: 'MODE_MASK' undeclared here (not in a function)
arch/arm/plat-iop/cp6.c:43: error: 'SVC_MODE' undeclared here (not in a function)

Signed-off-by: Hector Oron <hector.oron@gmail.com>
---
arch/arm/plat-iop/cp6.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-iop/cp6.c b/arch/arm/plat-iop/cp6.c
index 9612a87..bab73e2 100644
--- a/arch/arm/plat-iop/cp6.c
+++ b/arch/arm/plat-iop/cp6.c
@@ -18,6 +18,7 @@
*/
#include <linux/init.h>
#include <asm/traps.h>
+#include <asm/ptrace.h>

static int cp6_trap(struct pt_regs *regs, unsigned int instr)
{
--
1.7.4.1


Cheers,
-- Héctor Orón

-- System Information:
Debian Release: wheezy/sid
APT prefers stable
APT policy: (700, 'stable'), (600, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.37-1-686 (SMP w/2 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
 

Thread Tools




All times are GMT. The time now is 09:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org