* [Xenomai-help] undefined symbols in xeno_nucleus
@ 2009-12-04 13:35 Peter Soetens
2009-12-04 13:41 ` Peter Soetens
2009-12-04 14:25 ` Jan Kiszka
0 siblings, 2 replies; 3+ messages in thread
From: Peter Soetens @ 2009-12-04 13:35 UTC (permalink / raw)
To: xenomai-help
When compiling xenomai-head (master) from today with vanilla Linux
2.6.31.1 for amd64/smp, most of xenomai compiled as modules, I get at
the end of the build process this:
Building modules, stage 2.
MODPOST 2169 modules
ERROR: "per_cpu__cpu_tlbstate"
[kernel/xenomai/nucleus/xeno_nucleus.ko] undefined!
ERROR: "per_cpu__irq_stack_union"
[kernel/xenomai/nucleus/xeno_nucleus.ko] undefined!
WARNING: modpost: Found 12 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[2]: *** [__modpost] Error 1
And grepping for them gives:
$ wcgrep per_cpu__cpu_tlbstate
./System.map:154:000000000001e100 D per_cpu__cpu_tlbstate
./.tmp_System.map:154:000000000001e100 D per_cpu__cpu_tlbstate
$ vader ~/src/xenomai/linux-2.6.31.1 $ wcgrep per_cpu__irq_stack_union
./System.map:3:0000000000000000 D per_cpu__irq_stack_union
./System.map:42431:ffffffff81774000 A init_per_cpu__irq_stack_union
./.tmp_System.map:3:0000000000000000 D per_cpu__irq_stack_union
./.tmp_System.map:42431:ffffffff81774000 A init_per_cpu__irq_stack_union
./arch/x86/kernel/asm-offsets.s:18246: .string "per_cpu__irq_stack_union"
./arch/x86/kernel/vmlinux.lds.S:382:. = ASSERT((per_cpu__irq_stack_union == 0),
./arch/x86/kernel/vmlinux.lds:573:init_per_cpu__irq_stack_union =
per_cpu__irq_stack_union + __per_cpu_load;
./arch/x86/kernel/vmlinux.lds:579:. = ASSERT((per_cpu__irq_stack_union == 0),
Any idea what went wrong ?
Also, I hit the 'sparse irqs' issue where ipipe.h complains about
CONFIG_NR_IRQS being too high but the true cause is another option.
Maybe the #error in ipipe.h should be:
#error "CONFIG_NR_CPUS is too large, please lower it or disable
CONFIG_SPARSE_IRQ."
Peter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] undefined symbols in xeno_nucleus
2009-12-04 13:35 [Xenomai-help] undefined symbols in xeno_nucleus Peter Soetens
@ 2009-12-04 13:41 ` Peter Soetens
2009-12-04 14:25 ` Jan Kiszka
1 sibling, 0 replies; 3+ messages in thread
From: Peter Soetens @ 2009-12-04 13:41 UTC (permalink / raw)
To: xenomai-help
On Fri, Dec 4, 2009 at 14:35, Peter Soetens <peter@domain.hid> wrote:
> When compiling xenomai-head (master) from today with vanilla Linux
> 2.6.31.1 for amd64/smp, most of xenomai compiled as modules, I get at
> the end of the build process this:
>
> Building modules, stage 2.
> MODPOST 2169 modules
> ERROR: "per_cpu__cpu_tlbstate"
> [kernel/xenomai/nucleus/xeno_nucleus.ko] undefined!
> ERROR: "per_cpu__irq_stack_union"
> [kernel/xenomai/nucleus/xeno_nucleus.ko] undefined!
> WARNING: modpost: Found 12 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
> make[2]: *** [__modpost] Error 1
This goes away when compiling xeno_nucleus into the kernel.
Peter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] undefined symbols in xeno_nucleus
2009-12-04 13:35 [Xenomai-help] undefined symbols in xeno_nucleus Peter Soetens
2009-12-04 13:41 ` Peter Soetens
@ 2009-12-04 14:25 ` Jan Kiszka
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2009-12-04 14:25 UTC (permalink / raw)
To: Peter Soetens; +Cc: xenomai-help
Peter Soetens wrote:
> When compiling xenomai-head (master) from today with vanilla Linux
> 2.6.31.1 for amd64/smp, most of xenomai compiled as modules, I get at
> the end of the build process this:
>
> Building modules, stage 2.
> MODPOST 2169 modules
> ERROR: "per_cpu__cpu_tlbstate"
> [kernel/xenomai/nucleus/xeno_nucleus.ko] undefined!
This is only exported by I-pipe for 32-bit.
> ERROR: "per_cpu__irq_stack_union"
> [kernel/xenomai/nucleus/xeno_nucleus.ko] undefined!
This not exported at all.
Likely both issues require a new I-pipe patch - unless we can remove the
need for them.
> WARNING: modpost: Found 12 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
> make[2]: *** [__modpost] Error 1
>
> And grepping for them gives:
>
> $ wcgrep per_cpu__cpu_tlbstate
> ./System.map:154:000000000001e100 D per_cpu__cpu_tlbstate
> ./.tmp_System.map:154:000000000001e100 D per_cpu__cpu_tlbstate
>
> $ vader ~/src/xenomai/linux-2.6.31.1 $ wcgrep per_cpu__irq_stack_union
> ./System.map:3:0000000000000000 D per_cpu__irq_stack_union
> ./System.map:42431:ffffffff81774000 A init_per_cpu__irq_stack_union
> ./.tmp_System.map:3:0000000000000000 D per_cpu__irq_stack_union
> ./.tmp_System.map:42431:ffffffff81774000 A init_per_cpu__irq_stack_union
> ./arch/x86/kernel/asm-offsets.s:18246: .string "per_cpu__irq_stack_union"
> ./arch/x86/kernel/vmlinux.lds.S:382:. = ASSERT((per_cpu__irq_stack_union == 0),
> ./arch/x86/kernel/vmlinux.lds:573:init_per_cpu__irq_stack_union =
> per_cpu__irq_stack_union + __per_cpu_load;
> ./arch/x86/kernel/vmlinux.lds:579:. = ASSERT((per_cpu__irq_stack_union == 0),
>
> Any idea what went wrong ?
>
> Also, I hit the 'sparse irqs' issue where ipipe.h complains about
> CONFIG_NR_IRQS being too high but the true cause is another option.
> Maybe the #error in ipipe.h should be:
>
> #error "CONFIG_NR_CPUS is too large, please lower it or disable
> CONFIG_SPARSE_IRQ."
Removing this limitation is on our agenda.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-04 14:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 13:35 [Xenomai-help] undefined symbols in xeno_nucleus Peter Soetens
2009-12-04 13:41 ` Peter Soetens
2009-12-04 14:25 ` Jan Kiszka
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.