Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’
Hello,
i get an error during make of the new linux kernel with xenomai support. i use/usr/src/linux-2.6.23 /usr/src/adeos-ipipe-2.6.23-i386-1.10-11.patch /usr/src/xenomai-2.3.4
i patched the kernel-source with ./prepare-kernel.sh and copy a config file from my old kernel (2.6.22-14-generic) to .config, use make menuconfig and sudo make. i receive this error:
CC kernel/xenomai/arch/generic/hal.o
In file included from include/asm/xenomai/hal.h:40,
from kernel/xenomai/arch/generic/hal.c:42:include/asm/xenomai/wrappers.h: In function ‘wrap_switch_iobitmap’:include/asm/xenomai/wrappers.h:86: error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’ include/asm/xenomai/wrappers.h:96: error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’ make[4]: *** [kernel/xenomai/arch/generic/hal.o] Error 1
make[3]: *** [kernel/xenomai/arch/generic] Error 2
make[2]: *** [kernel/xenomai/arch] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2
any help?
thanks
Karl Meier
Signature · 2 lines
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
Quoted 24 lines · [email protected] wrote:
Hello,
i get an error during make of the new linux kernel with xenomai support. i use
/usr/src/linux-2.6.23/usr/src/adeos-ipipe-2.6.23-i386-1.10-11.patch/usr/src/xenomai-2.3.4i patched the kernel-source with ./prepare-kernel.sh and copy a config file from my old kernel (2.6.22-14-generic) to .config, use make menuconfig and sudo make. i receive this error:
CC
kernel/xenomai/arch/generic/hal.o
In file included frominclude/asm/xenomai/hal.h:40,
fromkernel/xenomai/arch/generic/hal.c:42:include/asm/xenomai/wrappers.h: In function ‘wrap_switch_iobitmap’:include/asm/xenomai/wrappers.h:86: error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’include/asm/xenomai/wrappers.h:96: error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’ make[4]: *** [kernel/xenomai/arch/generic/hal.o] Error 1
make[3]: *** [kernel/xenomai/arch/generic] Error 2
make[2]: *** [kernel/xenomai/arch] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2
Quoted 1 line
any help?
Use Xenomai 2.4-rc5. Regarding i386, Xenomai 2.3.x only supports kernels up to 2.6.20.x.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
-------- Original-Nachricht --------
Quoted 44 lines
Datum: Thu, 08 Nov 2007 17:14:08 +0100
Von: Jan Kiszka <[email protected]>
An: [email protected]
CC: [email protected]
Betreff: Re: [Xenomai-help] Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’Quoted 10 lines · [email protected] wrote:
Hello,
i get an error during make of the new linux kernel with xenomai support. i use
/usr/src/linux-2.6.23/usr/src/adeos-ipipe-2.6.23-i386-1.10-11.patch/usr/src/xenomai-2.3.4i patched the kernel-source with ./prepare-kernel.sh and copy a config file from my old kernel (2.6.22-14-generic) to .config, use make
menuconfig
Quoted 7 lines
and sudo make. i receive this error:
CC
kernel/xenomai/arch/generic/hal.o
In file included frominclude/asm/xenomai/hal.h:40,
fromkernel/xenomai/arch/generic/hal.c:42:include/asm/xenomai/wrappers.h: In function ‘wrap_switch_iobitmap’:include/asm/xenomai/wrappers.h:86: error: ‘struct tss_struct’ has nomember named ‘io_bitmap_base’
Quoted 1 line
include/asm/xenomai/wrappers.h:96: error: ‘struct tss_struct’ has nomember named ‘io_bitmap_base’
Quoted 7 lines
make[4]: *** [
kernel/xenomai/arch/generic/hal.o] Error 1 make[3]: *** [kernel/xenomai/arch/generic] Error 2 make[2]: *** [kernel/xenomai/arch] Error 2 make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2any help?
Use Xenomai 2.4-rc5. Regarding i386, Xenomai 2.3.x only supports kernels up to 2.6.20.x.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Signature · 2 lines
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Please take care of all CCs.
Quoted 63 lines · [email protected] wrote:
-------- Original-Nachricht --------
Quoted 34 lines
Datum: Thu, 08 Nov 2007 17:14:08 +0100
Von: Jan Kiszka <[email protected]>
An: [email protected]
CC: [email protected]
Betreff: Re: [Xenomai-help] Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’Quoted 10 lines · [email protected] wrote:
Hello,
i get an error during make of the new linux kernel with xenomai support. i use
/usr/src/linux-2.6.23/usr/src/adeos-ipipe-2.6.23-i386-1.10-11.patch/usr/src/xenomai-2.3.4i patched the kernel-source with ./prepare-kernel.sh and copy a config file from my old kernel (2.6.22-14-generic) to .config, use make
menuconfig
Quoted 7 lines
and sudo make. i receive this error:
CC
kernel/xenomai/arch/generic/hal.o
In file included frominclude/asm/xenomai/hal.h:40,
fromkernel/xenomai/arch/generic/hal.c:42:include/asm/xenomai/wrappers.h: In function ‘wrap_switch_iobitmap’:include/asm/xenomai/wrappers.h:86: error: ‘struct tss_struct’ has nomember named ‘io_bitmap_base’
Quoted 1 line
include/asm/xenomai/wrappers.h:96: error: ‘struct tss_struct’ has nomember named ‘io_bitmap_base’
Quoted 6 lines
make[4]: *** [
kernel/xenomai/arch/generic/hal.o] Error 1 make[3]: *** [kernel/xenomai/arch/generic] Error 2 make[2]: *** [kernel/xenomai/arch] Error 2 make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2Quoted 5 lines
Quoted 1 line
any help?
Use Xenomai 2.4-rc5. Regarding i386, Xenomai 2.3.x only supports kernels up to 2.6.20.x.
Jan
ok, i use now
linux-2.6.23
xenomai-2.4-rc5
adeos-ipipe-2.6.23-i386-1.10-11.patchthe error above disappears, but there is another error now:
CC
arch/i386/xenomai/hal.oarch/i386/xenomai/hal.c: In function ‘rthal_setup_8254_tsc’:arch/i386/xenomai/hal.c:551: error: ‘PIT_MODE’ undeclared (first use in this function)arch/i386/xenomai/hal.c:551: error: (Each undeclared identifier is reported only oncearch/i386/xenomai/hal.c:551: error: for each function it appears in.)arch/i386/xenomai/hal.c:552: error: ‘PIT_CH0’ undeclared (first use in this function)arch/i386/xenomai/hal.c:555: error: ‘PIT_CH2’ undeclared (first use in this function)arch/i386/xenomai/hal.c: In function ‘rthal_get_8254_tsc’:arch/i386/xenomai/hal.c:573: error: ‘PIT_MODE’ undeclared (first use in this function)arch/i386/xenomai/hal.c:574: error: ‘PIT_CH2’ undeclared (first use in this function) make[1]: *** [arch/i386/xenomai/hal.o] Error 1
make: *** [arch/i386/xenomai] Error 2
Quoted 1 line
any idea?
The above looks like a real build issue of latest Xenomai with oldish CPU setups. Thanks for reporting, queued for a closer look later.
In the meantime you could select a CPU type that is closer to your hardware, thus avoiding to use that suboptimal TSC emulation.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Quoted 64 lines · Jan Kiszka
Please take care of all CCs.
Quoted 61 lines · [email protected] wrote:
-------- Original-Nachricht --------
Quoted 33 lines
Datum: Thu, 08 Nov 2007 17:14:08 +0100
Von: Jan Kiszka <[email protected]>
An: [email protected]
CC: [email protected]
Betreff: Re: [Xenomai-help] Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’Quoted 10 lines · [email protected] wrote:
Hello,
i get an error during make of the new linux kernel with xenomai support. i use
/usr/src/linux-2.6.23/usr/src/adeos-ipipe-2.6.23-i386-1.10-11.patch/usr/src/xenomai-2.3.4i patched the kernel-source with ./prepare-kernel.sh and copy a config file from my old kernel (2.6.22-14-generic) to .config, use make
menuconfig
Quoted 7 lines
and sudo make. i receive this error:
CC
kernel/xenomai/arch/generic/hal.o
In file included frominclude/asm/xenomai/hal.h:40,
fromkernel/xenomai/arch/generic/hal.c:42:include/asm/xenomai/wrappers.h: In function ‘wrap_switch_iobitmap’:include/asm/xenomai/wrappers.h:86: error: ‘struct tss_struct’ has nomember named ‘io_bitmap_base’
Quoted 1 line
include/asm/xenomai/wrappers.h:96: error: ‘struct tss_struct’ has nomember named ‘io_bitmap_base’
Quoted 6 lines
make[4]: *** [
kernel/xenomai/arch/generic/hal.o] Error 1 make[3]: *** [kernel/xenomai/arch/generic] Error 2 make[2]: *** [kernel/xenomai/arch] Error 2 make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2Quoted 5 lines
Quoted 1 line
any help?
Use Xenomai 2.4-rc5. Regarding i386, Xenomai 2.3.x only supports kernels up to 2.6.20.x.
Jan
ok, i use now
linux-2.6.23
xenomai-2.4-rc5
adeos-ipipe-2.6.23-i386-1.10-11.patchthe error above disappears, but there is another error now:
CC
arch/i386/xenomai/hal.oarch/i386/xenomai/hal.c: In function ‘rthal_setup_8254_tsc’:arch/i386/xenomai/hal.c:551: error: ‘PIT_MODE’ undeclared (first use in this function)arch/i386/xenomai/hal.c:551: error: (Each undeclared identifier is reported only oncearch/i386/xenomai/hal.c:551: error: for each function it appears in.)arch/i386/xenomai/hal.c:552: error: ‘PIT_CH0’ undeclared (first use in this function)arch/i386/xenomai/hal.c:555: error: ‘PIT_CH2’ undeclared (first use in this function)arch/i386/xenomai/hal.c: In function ‘rthal_get_8254_tsc’:arch/i386/xenomai/hal.c:573: error: ‘PIT_MODE’ undeclared (first use in this function)arch/i386/xenomai/hal.c:574: error: ‘PIT_CH2’ undeclared (first use in this function) make[1]: *** [arch/i386/xenomai/hal.o] Error 1
make: *** [arch/i386/xenomai] Error 2
Quoted 7 lines
Quoted 1 line
any idea?
The above looks like a real build issue of latest Xenomai with oldish CPU setups. Thanks for reporting, queued for a closer look later.
In the meantime you could select a CPU type that is closer to your hardware, thus avoiding to use that suboptimal TSC emulation.
non-TSC + X86_LOCAL_APIC combination:
asm-i386/hal.h renamed from asm-i386/hal.h~ +1 -2
@@ -64,11 +64,10 @@#ifdef CONFIG_X86_LOCAL_APIC #include <asm/fixmap.h> #include <asm/apic.h> -#else +#endif /* CONFIG_X86_LOCAL_APIC */ #if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,23 )#include <asm/i8253.h> #endif -#endif /* CONFIG_X86_LOCAL_APIC */ #include <asm/msr.h> #include <asm/xenomai/atomic.h> #include <asm/xenomai/smi.h>
Signature · 1 line
Philippe.
-------- Original-Nachricht --------
Quoted 112 lines
Datum: Fri, 09 Nov 2007 14:52:29 +0100
Von: Philippe Gerum <[email protected]>
An: Jan Kiszka <[email protected]>
CC: xenomai-help <[email protected]>, [email protected]
Betreff: Re: [Xenomai-help] Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’Quoted 9 lines · Jan Kiszka
Please take care of all CCs.
Quoted 6 lines · [email protected] wrote:
-------- Original-Nachricht --------
Quoted 5 lines
Datum: Thu, 08 Nov 2007 17:14:08 +0100
Von: Jan Kiszka <[email protected]>
An: [email protected]
CC: [email protected]
Betreff: Re: [Xenomai-help] Error during make, error: ‘structtss_struct’ has no member named ‘io_bitmap_base’
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines · [email protected] wrote:
Hello,
i get an error during make of the new linux kernel with xenomai support. i use
/usr/src/linux-2.6.23/usr/src/adeos-ipipe-2.6.23-i386-1.10-11.patch/usr/src/xenomai-2.3.4i patched the kernel-source with ./prepare-kernel.sh and copy a
config
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
file from my old kernel (2.6.22-14-generic) to .config, use make
menuconfig
Quoted 6 lines
and sudo make. i receive this error:
CC
kernel/xenomai/arch/generic/hal.o
In file included frominclude/asm/xenomai/hal.h:40,
fromkernel/xenomai/arch/generic/hal.c:42:include/asm/xenomai/wrappers.h: In function‘wrap_switch_iobitmap’:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
include/asm/xenomai/wrappers.h:86: error: ‘struct tss_struct’ hasno
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
member named ‘io_bitmap_base’
Quoted 1 line
include/asm/xenomai/wrappers.h:96: error: ‘struct tss_struct’ hasno
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
member named ‘io_bitmap_base’
Quoted 7 lines
make[4]: *** [
kernel/xenomai/arch/generic/hal.o] Error 1 make[3]: *** [kernel/xenomai/arch/generic] Error 2 make[2]: *** [kernel/xenomai/arch] Error 2 make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2any help?
Use Xenomai 2.4-rc5. Regarding i386, Xenomai 2.3.x only supports
kernels
Quoted 10 lines
Quoted 10 lines
Quoted 3 lines
up to 2.6.20.x.
Jan
ok, i use now
linux-2.6.23
xenomai-2.4-rc5
adeos-ipipe-2.6.23-i386-1.10-11.patchQuoted 5 lines
Quoted 5 lines
the error above disappears, but there is another error now:
CC
arch/i386/xenomai/hal.oarch/i386/xenomai/hal.c: In function ‘rthal_setup_8254_tsc’:arch/i386/xenomai/hal.c:551: error: ‘PIT_MODE’ undeclared (firstuse in this function)
Quoted 1 line
Quoted 1 line
arch/i386/xenomai/hal.c:551: error: (Each undeclared identifier isreported only once
Quoted 2 lines
Quoted 2 lines
arch/i386/xenomai/hal.c:551: error: for each function it appears in.)arch/i386/xenomai/hal.c:552: error: ‘PIT_CH0’ undeclared (first usein this function)
Quoted 1 line
Quoted 1 line
arch/i386/xenomai/hal.c:555: error: ‘PIT_CH2’ undeclared (first usein this function)
Quoted 2 lines
Quoted 2 lines
arch/i386/xenomai/hal.c: In function ‘rthal_get_8254_tsc’:arch/i386/xenomai/hal.c:573: error: ‘PIT_MODE’ undeclared (firstuse in this function)
Quoted 1 line
Quoted 1 line
arch/i386/xenomai/hal.c:574: error: ‘PIT_CH2’ undeclared (first usein this function)
Quoted 10 lines
Quoted 4 lines
make[1]: *** [
arch/i386/xenomai/hal.o] Error 1
make: *** [arch/i386/xenomai] Error 2any idea?
The above looks like a real build issue of latest Xenomai with oldish CPU setups. Thanks for reporting, queued for a closer look later.
In the meantime you could select a CPU type that is closer to your hardware, thus avoiding to use that suboptimal TSC emulation.
non-TSC +
X86_LOCAL_APICcombination:asm-i386/hal.h renamed from asm-i386/hal.h~ +1
-2@@ -64,11 +64,10 @@#ifdef CONFIG_X86_LOCAL_APIC #include <asm/fixmap.h> #include <asm/apic.h> -#else +#endif /* CONFIG_X86_LOCAL_APIC */ #if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,23 )#include <asm/i8253.h> #endif -#endif /* CONFIG_X86_LOCAL_APIC */ #include <asm/msr.h> #include <asm/xenomai/atomic.h> #include <asm/xenomai/smi.h> Signature · 2 lines
-- Philippe.
hi, we do so, but unfortunately a new error appears:
with: hal.h
#ifndef __cplusplus
#include <asm/system.h>
#include <asm/io.h>
#include <asm/timex.h>
#include <asm/processor.h>
#include <io_ports.h>
#ifdef CONFIG_X86_LOCAL_APIC
#include <asm/fixmap.h>
#include <asm/apic.h>
//#else
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
#include <asm/i8253.h>
#endif
//#endif /* CONFIG_X86_LOCAL_APIC */
CC kernel/xenomai/arch/generic/hal.o
In file included from kernel/xenomai/arch/generic/hal.c:47:include/asm/xenomai/hal.h:2: error: stray ‘@’ in programinclude/asm/xenomai/hal.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hal’ include/asm/xenomai/hal.h:3: error: stray ‘@’ in programinclude/asm/xenomai/hal.h:7: error: stray ‘\’ in programinclude/asm/xenomai/hal.h:8: error: expected identifier or ‘(’ before numeric constant include/asm/xenomai/hal.h:8: error: stray ‘\’ in programinclude/asm/xenomai/hal.h:9: error: expected identifier or ‘(’ before numeric constant include/asm/xenomai/hal.h:9: error: stray ‘\’ in program include/asm/xenomai/hal.h:10: error: expected identifier or ‘(’ before numeric constant include/asm/xenomai/hal.h:10: error: stray ‘\’ in program include/asm/xenomai/hal.h:13: error: stray ‘\’ in program include/asm/xenomai/hal.h:14: error: expected identifier or ‘(’ before numeric constant include/asm/xenomai/hal.h:15: error: stray ‘\’ in program include/asm/xenomai/hal.h:16: error: expected identifier or ‘(’ before numeric constant include/asm/xenomai/hal.h:17: error: stray ‘\’ in program include/asm/xenomai/hal.h:18: error: expected identifier or ‘(’ before numeric constant include/asm/xenomai/hal.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘can’ In file included from kernel/xenomai/arch/generic/hal.c:47:include/asm/xenomai/hal.h:23:19: error: invalid digit "9" in octal constant include/asm/xenomai/hal.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘version’ include/asm/xenomai/hal.h:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘even’ include/asm/xenomai/hal.h:32: error: expected identifier or ‘(’ before ‘if’
make[4]: *** [kernel/xenomai/arch/generic/hal.o] Error 1
make[3]: *** [kernel/xenomai/arch/generic] Error 2
make[2]: *** [kernel/xenomai/arch] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2
new idea?
Karl+Mat
Signature · 2 lines
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail