All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>, MAHAVIRA@gmx.net
Subject: Re: [Xenomai-help] Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’
Date: Fri, 09 Nov 2007 14:52:29 +0100	[thread overview]
Message-ID: <4734661D.4010705@domain.hid> (raw)
In-Reply-To: <473442D8.809@domain.hid>

Jan Kiszka wrote:
> Please take care of all CCs.
> 
> MAHAVIRA@gmx.net wrote:
>> -------- Original-Nachricht --------
>>> Datum: Thu, 08 Nov 2007 17:14:08 +0100
>>> Von: Jan Kiszka <jan.kiszka@domain.hid>
>>> An: MAHAVIRA@gmx.net
>>> CC: xenomai@xenomai.org
>>> Betreff: Re: [Xenomai-help] Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’
>>> MAHAVIRA@gmx.net 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.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?
>>> 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.patch
>>
>> the error above disappears, but there is another error now:
>>
>>   CC      arch/i386/xenomai/hal.o
>> arch/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 once
>> arch/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
>>
>> 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:

--- include/asm-i386/hal.h~	2007-10-27 15:43:15.000000000 +0200
+++ include/asm-i386/hal.h	2007-11-09 14:50:23.000000000 +0100
@@ -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>


-- 
Philippe.


  reply	other threads:[~2007-11-09 13:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-08 15:56 [Xenomai-help] Error during make, error: ‘struct tss_struct’ has no member named ‘io_bitmap_base’ MAHAVIRA
2007-11-08 16:14 ` Jan Kiszka
2007-11-09 10:43   ` Matthias Frauendorf
     [not found]   ` <20071109104334.244480@domain.hid>
2007-11-09 11:22     ` Jan Kiszka
2007-11-09 13:52       ` Philippe Gerum [this message]
2007-11-09 14:40         ` Matthias Frauendorf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4734661D.4010705@domain.hid \
    --to=rpm@xenomai.org \
    --cc=MAHAVIRA@gmx.net \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.