[asterisk-embedded] Zaptel on ARM
Mathieu Roger
Mathieu.Roger at iut-valence.fr
Tue Jun 10 03:44:31 CDT 2008
Hi,
> autoconf's settings do not affect the kernel (Kbuild).
i don't understand what you want to say.
I have a new error while compiling :
Here is a (long) trace.
$ make KVERS=2.6.25.3
KSRC=/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.3
CC=arm-linux-gcc LD=arm-linux-ld CPP=arm-linux-cpp ARCH=arm
make[1]: entrant dans le répertoire «
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11
»
make -C
/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.3
ARCH=arm
SUBDIRS=/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel
HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="pciradio.o tor2.o torisa.o wcfxo.o
wct1xxp.o wctdm.o wcte11xp.o wcusb.o zaptel.o ztd-eth.o ztd-loc.o
ztdummy.o ztdynamic.o zttranscode.o wct4xxp/ wctc4xxp/ xpp/ wctdm24xxp/
wcte12xp/" modules
make[2]: entrant dans le répertoire «
/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.3
»
CC [M]
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.o
In file included from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:46:
include/linux/kernel.h:181: warning: 'regparm' attribute directive ignored
include/linux/kernel.h:183: warning: 'regparm' attribute directive ignored
In file included from include/asm/vm86.h:148,
from include/asm/processor.h:7,
from include/linux/prefetch.h:14,
from include/linux/list.h:8,
from include/linux/module.h:9,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:48:
include/asm/ptrace.h: In function 'user_mode':
include/asm/ptrace.h:160: error: 'SEGMENT_RPL_MASK' undeclared (first use
in this function)
include/asm/ptrace.h:160: error: (Each undeclared identifier is reported
only once
include/asm/ptrace.h:160: error: for each function it appears in.)
include/asm/ptrace.h:160: error: 'USER_RPL' undeclared (first use in this
function)
include/asm/ptrace.h: In function 'user_mode_vm':
include/asm/ptrace.h:169: error: 'SEGMENT_RPL_MASK' undeclared (first use
in this function)
include/asm/ptrace.h:170: error: 'USER_RPL' undeclared (first use in this
function)
In file included from include/asm/thread_info.h:2,
from include/linux/thread_info.h:35,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:48:
include/asm/thread_info_32.h: At top level:
include/asm/thread_info_32.h:88: error: invalid register name for
'current_stack_pointer'
In file included from include/asm/smp_32.h:12,
from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/asm/desc.h:8,
from include/asm/elf.h:88,
from include/linux/elf.h:7,
from include/linux/module.h:14,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:48:
include/asm/mpspec.h:7:25: error: mach_mpspec.h: No such file or directory
In file included from include/asm/smp_32.h:12,
from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/asm/desc.h:8,
from include/asm/elf.h:88,
from include/linux/elf.h:7,
from include/linux/module.h:14,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:48:
include/asm/mpspec.h:9: error: 'MAX_MP_BUSSES' undeclared here (not in a
function)
include/asm/mpspec.h:37: error: 'MAX_IRQ_SOURCES' undeclared here (not in
a function)
In file included from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/asm/desc.h:8,
from include/asm/elf.h:88,
from include/linux/elf.h:7,
from include/linux/module.h:14,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:48:
include/asm/smp_32.h:148:28: error: mach_apicdef.h: No such file or directory
In file included from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/asm/desc.h:8,
from include/asm/elf.h:88,
from include/linux/elf.h:7,
from include/linux/module.h:14,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:48:
include/asm/smp_32.h: In function 'hard_smp_processor_id':
include/asm/smp_32.h:152: error: implicit declaration of function
'GET_APIC_ID'
In file included from include/linux/rwsem.h:24,
from include/linux/notifier.h:14,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:569,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from include/linux/percpu.h:5,
from include/asm/local.h:4,
from include/linux/module.h:19,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:48:
include/asm/rwsem.h: At top level:
include/asm/rwsem.h:48: warning: 'regparm' attribute directive ignored
include/asm/rwsem.h:50: warning: 'regparm' attribute directive ignored
include/asm/rwsem.h:52: warning: 'regparm' attribute directive ignored
include/asm/rwsem.h:54: warning: 'regparm' attribute directive ignored
In file included from include/asm/semaphore.h:2,
from include/linux/device.h:23,
from include/linux/pci.h:52,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:51:
include/asm/semaphore_32.h:86: warning: 'regparm' attribute directive ignored
include/asm/semaphore_32.h:87: warning: 'regparm' attribute directive ignored
include/asm/semaphore_32.h:88: warning: 'regparm' attribute directive ignored
include/asm/semaphore_32.h:89: warning: 'regparm' attribute directive ignored
In file included from include/linux/smp_lock.h:5,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:52:
include/linux/sched.h:245: warning: 'regparm' attribute directive ignored
include/linux/sched.h:331: warning: 'regparm' attribute directive ignored
In file included from include/asm/irq.h:2,
from include/linux/irq.h:23,
from include/asm/hardirq_32.h:5,
from include/asm/hardirq.h:2,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:52:
include/asm/irq_32.h:15:25: error: irq_vectors.h: No such file or directory
In file included from include/asm/irq.h:2,
from include/linux/irq.h:23,
from include/asm/hardirq_32.h:5,
from include/asm/hardirq.h:2,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:52:
include/asm/irq_32.h:49: error: 'NR_VECTORS' undeclared here (not in a
function)
In file included from include/asm/hardirq_32.h:5,
from include/asm/hardirq.h:2,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:52:
include/linux/irq.h:180: error: 'NR_IRQS' undeclared here (not in a function)
In file included from include/linux/interrupt.h:11,
from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:52:
include/linux/hardirq.h:40:27: warning: "NR_IRQS" is not defined
In file included from
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.c:52:
include/linux/interrupt.h:272: warning: 'regparm' attribute directive ignored
make[3]: ***
[/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel/pciradio.o]
Erreur 1
make[2]: ***
[_module_/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11/kernel]
Erreur 2
make[2]: quittant le répertoire «
/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.3
»
make[1]: *** [modules] Erreur 2
make[1]: quittant le répertoire «
/home/octera/Bureau/Stage/Telesurveillance/platineARM/zaptel/zaptel-1.4.11
»
make: *** [all] Erreur 2
> On Wed, Jun 04, 2008 at 11:07:39AM +0200, Mathieu Roger wrote:
>> Hi all
>> I trying to compile zaptel for ARM
>> so I make:
>> ./configure --host=arm-linux
>> make KVERS=2.6.25.3 KSRC=/home/octera/kernel/linux-2.6.25.3/
>>
>> I have an error while compiling menuselect, so I compile this with gcc
>> and
>> not arm-linux-gcc => it's works
>>
>> But I got many error after like:
>> include/linux/calc64.h:25: erreur: «__LINUX_ARM_ARCH__» undeclared
>> (first use in this function)
>>
>> Can you tell me how correct this?
>
> autoconf's settings do not affect the kernel (Kbuild).
>
> --
> Tzafrir Cohen
> icq#16849755 jabber:tzafrir.cohen at xorcom.com
> +972-50-7952406 mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-embedded mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-embedded
>
--
Mathieu Roger
IUT de Valence
More information about the asterisk-embedded
mailing list