Skip to contentSkip to conversation

failing compile of kernel-3.8 on arm

Xenomai Sagar Behere 2 participants 3 messages Jul 10, 2013 – Jul 11, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

I patched the vanilla linux-3.8 kernel sources with ipipe-core-3.8-arm-1.patch. The patch was applied cleanly, but while compiling the kernel, I get two problems

Problem 1: This is the same as http://www.mail-archive.com/[email protected]/msg02719.html

Problem 2: The compilation halts with

----

In file included from /home/sagar/kernels/linux-3.8/arch/arm/include/asm/xenomai/syscall.h:29,
from include/xenomai/nucleus/shadow.h:27,
from include/asm-generic/xenomai/system.h:42,
from
/home/sagar/kernels/linux-3.8/arch/arm/include/asm/xenomai/system.h:29,
from include/xenomai/nucleus/types.h:36,
from include/xenomai/nucleus/queue.h:24,
from include/xenomai/nucleus/heap.h:25,
from kernel/xenomai/nucleus/bufd.c:144:
include/asm-generic/xenomai/syscall.h: In function ‘__xn_safe_strncpy_from_user’:
include/asm-generic/xenomai/syscall.h:147: error: implicit declaration of function ‘__strncpy_from_user’ make[3]: *** [kernel/xenomai/nucleus/bufd.o] Error 1
make[2]: *** [kernel/xenomai/nucleus] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2

----

compiler is: arm-linux-gnueabi-gcc (Debian 4.4.5-8) 4.4.5

Any ideas how to fix these issues? I'll be running this kernel on the gumstix overo, if that matters..

Thanks and regards,
Sagar

#1 lore raw
Quoted 21 lines · Sagar Behere

Hello,

I patched the vanilla linux-3.8 kernel sources with ipipe-core-3.8-arm-1.patch. The patch was applied cleanly, but while compiling the kernel, I get two problems

Problem 1: This is the same as
http://www.mail-archive.com/[email protected]/msg02719.html

Problem 2: The compilation halts with

include/asm-generic/xenomai/syscall.h: In function ‘__xn_safe_strncpy_from_user’:
include/asm-generic/xenomai/syscall.h:147: error: implicit declaration of function ‘__strncpy_from_user’
make[3]: *** [kernel/xenomai/nucleus/bufd.o] Error 1 make[2]: *** [kernel/xenomai/nucleus] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2

Quoted 6 lines

----

compiler is: arm-linux-gnueabi-gcc (Debian 4.4.5-8) 4.4.5

Any ideas how to fix these issues? I'll be running this kernel on the gumstix overo, if that matters..

Please use xenomai git current head instead of xenomai 2.6.2.1 release. Xenomai 2.6.2.1 only supports I-pipe patches up to Linux 3.5 on ARM. (in general, the latest I-pipe patch supported by a Xenomai version is the one it ships with).

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 27 lines · Gilles Chanteperdrix
Quoted 25 lines · Sagar Behere

Hello,

I patched the vanilla linux-3.8 kernel sources with ipipe-core-3.8-arm-1.patch. The patch was applied cleanly, but while compiling the kernel, I get two problems

Problem 1: This is the same as
http://www.mail-archive.com/[email protected]/msg02719.html

Problem 2: The compilation halts with

include/asm-generic/xenomai/syscall.h: In function ‘__xn_safe_strncpy_from_user’:
include/asm-generic/xenomai/syscall.h:147: error: implicit declaration of function ‘__strncpy_from_user’
make[3]: *** [kernel/xenomai/nucleus/bufd.o] Error 1 make[2]: *** [kernel/xenomai/nucleus] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2

----

compiler is: arm-linux-gnueabi-gcc (Debian 4.4.5-8) 4.4.5

Quoted 8 lines
Quoted 2 lines

Any ideas how to fix these issues? I'll be running this kernel on the gumstix overo, if that matters..

Please use xenomai git current head instead of xenomai 2.6.2.1 release. Xenomai 2.6.2.1 only supports I-pipe patches up to Linux 3.5 on ARM. (in general, the latest I-pipe patch supported by a Xenomai version is the one it ships with).

Oh! I did not know that.

I now did: git clone git://git.xenomai.org/xenomai-head.git

and everything compiled properly in the subsequent steps.

Thanks,
Sagar