* [Xenomai-help] Error in adapter.cc during the "make" of xenosim
@ 2009-03-25 3:35 Vandana Sasidharan
2009-03-26 15:11 ` Gilles Chanteperdrix
0 siblings, 1 reply; 6+ messages in thread
From: Vandana Sasidharan @ 2009-03-25 3:35 UTC (permalink / raw)
To: xenomai
Hi,
First of all sorry for mailing to Xenomai-core.
Can you please tell me whether I should switch to the older distribution of
xenosim, Linux or Tix, I am a bit confused regarding the same and it would
be be really great if you you could clarify it. In case if
it is Tix where can I get the download? Thanks in advance.
For those who dont know what error I am getting:-
an error occurs when I am trying to "MAKE" Xenosim- 2.4.7.
I have already installed Xenomai- 2.4.7 along with libelf -0.8.10 , Tcl
8.3.5, Tk 8.3.5 , Tix 4.1.0.007 and an adeos patch that is adeos-ipipe
-2.6.25-x86-2.0-08.patch on a linux kernel which we built which has a
version Linux 2.6.25.11.
after configuring Xenosim along with the gcc -2.95.3 tar .gz when I try to
"make" the xenosim I'm getting an error :
xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 65: error :too few
arguments
xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
arguments
Thanks
Vandana
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Error in adapter.cc during the "make" of xenosim
2009-03-25 3:35 [Xenomai-help] Error in adapter.cc during the "make" of xenosim Vandana Sasidharan
@ 2009-03-26 15:11 ` Gilles Chanteperdrix
0 siblings, 0 replies; 6+ messages in thread
From: Gilles Chanteperdrix @ 2009-03-26 15:11 UTC (permalink / raw)
To: Vandana Sasidharan; +Cc: xenomai
Vandana Sasidharan wrote:
>
> Hi,
>
> First of all sorry for mailing to Xenomai-core.
>
> Can you please tell me whether I should switch to the older distribution of
> xenosim, Linux or Tix, I am a bit confused regarding the same and it would
> be be really great if you you could clarify it. In case if
> it is Tix where can I get the download? Thanks in advance.
>
> For those who dont know what error I am getting:-
>
> an error occurs when I am trying to "MAKE" Xenosim- 2.4.7.
> I have already installed Xenomai- 2.4.7 along with libelf -0.8.10 , Tcl
> 8.3.5, Tk 8.3.5 , Tix 4.1.0.007 and an adeos patch that is adeos-ipipe
> -2.6.25-x86-2.0-08.patch on a linux kernel which we built which has a
> version Linux 2.6.25.11.
> after configuring Xenosim along with the gcc -2.95.3 tar .gz when I try to
> "make" the xenosim I'm getting an error :
>
> xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 65: error :too few
> arguments
> xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
> arguments
Hi,
I have some bad news about the simulator. It is currently a tool mainly
for the Xenomai project developer. As such:
- we only take care of making it work for trunk, not in the stable branches;
- we can not provide any support for it.
So, basically, you are on your own.
Regards.
--
Gilles.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Error in adapter.cc during the "make" of xenosim
@ 2009-03-26 7:27 Vandana Sasidharan
0 siblings, 0 replies; 6+ messages in thread
From: Vandana Sasidharan @ 2009-03-26 7:27 UTC (permalink / raw)
To: xenomai
Hi,
Thank you Bruno for your suggestion. After making changes in the Adapter.cc
as you had told and while re-compiling I got the following errors in
"queue.c and heap.c".
queue.c
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/queue.h:135:
prototype declaration
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/queue.c:360: `q'
undeclared (first use in this function)
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/queue.c:360:
(Each undeclared identifier is reported only once
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/queue.c:360: for
each function it appears in.)
make[2]: *** [queue.o] Error 1
make[2]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins'
make: *** [all-recursive] Error 1
int rt_queue_delete_inner(RT_QUEUE *q, void __user *mapaddr)
351 {
352 int err = 0;
353 spl_t s;
354
355 if (xnpod_asynch_p())
356 return -EPERM;
357
358 xnlock_get_irqsave(&nklock, s);
359
360 q = xeno_h2obj_validate(q, XENO_QUEUE_MAGIC, RT_QUEUE);
361
362 if (!q) {
363 err = xeno_handle_error(q, XENO_QUEUE_MAGIC,
RT_QUEUE);
364 xnlock_put_irqrestore(&nklock, s);
365 return err;
366 }
367
heap.c :
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:388:
syntax error before `*'
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c: In
function `rt_heap_delete_inner':
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:389:
number of arguments doesn't match prototype
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/heap.h:121:
prototype declaration
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:398:
`heap' undeclared (first use in this function)
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:398: (Each
undeclared identifier is reported only once
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:398: for
each function it appears in.)
make[2]: *** [heap.o] Error 1
make[2]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins'
make: *** [all-recursive] Error 1
int rt_heap_delete_inner(RT_HEAP *heap, void __user *mapaddr)
{
int err = 0;
spl_t s;
if (!xnpod_root_p())
return -EPERM;
xnlock_get_irqsave(&nklock, s);
heap = xeno_h2obj_validate(heap, XENO_HEAP_MAGIC, RT_HEAP);
if (!heap) {
err = xeno_handle_error(heap, XENO_HEAP_MAGIC, RT_HEAP);
xnlock_put_irqrestore(&nklock, s);
return err;
}
Please can you help and let me know what wrong I am doing.
Thank you in advance,
With regards,
Vandana
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Error in adapter.cc during the "make" of xenosim
2009-03-25 15:16 ` Bruno Rouchouse
@ 2009-03-25 21:41 ` Bruno Rouchouse
0 siblings, 0 replies; 6+ messages in thread
From: Bruno Rouchouse @ 2009-03-25 21:41 UTC (permalink / raw)
To: Vandana Sasidharan; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 5393 bytes --]
Hi,
I confirm, this compilation issue:
adapter/adapter.cc: 65: error :too few
> arguments
> xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
> arguments
is the one I ran into a while ago.
It seems already fixed in the trunk. You can try the patch below or directly
get the adapter.cc from there:
--- adapter.cc 2007-12-09 11:46:39.000000000 +0100
+++ adapter.cc.trunk 2009-03-25 22:24:04.000000000 +0100
@@ -36,6 +36,12 @@
extern "C" {
+static inline int get_denormalized_prio(xnthread_t *t, int coreprio)
+{
+ return t->ops && t->ops->get_denormalized_prio
+ ? t->ops->get_denormalized_prio(t, coreprio) : coreprio;
+}
+
static const char *mvm_get_thread_mode (void *tcbarg)
{
@@ -62,9 +68,9 @@
modeString.append("asr");
if (kthread->state & XNBOOST)
-
modeString.append(CString().format("boost=%d",kthread->ops->get_denormalized_prio(kthread)));
+
modeString.append(CString().format("boost=%d",get_denormalized_prio(kthread,
kthread->cprio)));
else
-
modeString.append(CString().format("prio=%d",kthread->ops->get_denormalized_prio(kthread)));
+
modeString.append(CString().format("prio=%d",get_denormalized_prio(kthread,
kthread->cprio)));
return modeString;
}
--Bruno
2009/3/25 Bruno Rouchouse <brouchouse@domain.hid>
> Hi,
>
> sorry, my previous answer was misleading wrt your problem I think. Tix has
> probably nothing to do in your current issue but I'll check. I got confused
> since I answered from the top of my head without having the code base at
> hand.
>
> My advice still applies though: build the latest xenosim release on an
> older Linux host distribution (Debian/Sarge, FC5 or an equivalent
> distribution) may help you to get quicker results.
>
> If you have a powerful host hardware platform (core 2 Duo for instance),
> installing this older Linux distribution into a qemu or virtualbox may be a
> good solution, at least for a first try in order to get through the whole
> build process.
>
> PS : I think I stumbled over the adapter.cc compilation issue at one point.
> I'll check later on today and will give you an update later on...
>
> --BR
>
> 2009/3/25 Vandana Sasidharan <vandana.sasidharan@domain.hid>
>
>
>> HI,
>>
>> Following the below query posted yesterday,
>> I tried using previous versions of xenosim(as per the reply), but still
>> could not resolve the below errors in adapter.cc.
>> Just to go forward I commented the lines in adapter.cc where I found
>> errors.
>>
>> Further when I started recompiling, I got errors in queue.h and heap.h in
>> under native skin,
>> This is what I am getting:
>>
>> 2.4.7/../include/nucleus/pod.h:34,
>>
>> from
>> /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:31:
>> /usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that
>> defines no instances
>> In file included
>> from
>> /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:44:
>> /usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/queue.h:136: syntax
>> error before `*'
>> In file included
>> from
>> /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:45:
>> /usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/heap.h:122: syntax
>> error before `*'
>> make[2]: *** [module.o] Error 1
>> make[2]: Leaving directory
>> `/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
>> make[1]: *** [all-recursive] Error 1
>>
>>
>> Please can you help and let me know where I am going wrong?
>>
>> Thanks & regards,
>> Vandana
>>
>>
>> ---------------------------------------------------------------------------
>>
>> Hi,
>>
>> First of all sorry for mailing to Xenomai-core.
>>
>> Can you please tell me whether I should switch to the older distribution
>> of
>> xenosim, Linux or Tix, I am a bit confused regarding the same and it would
>> be be really great if you you could clarify it. In case if
>> it is Tix where can I get the download? Thanks in advance.
>>
>> For those who dont know what error I am getting:-
>>
>> an error occurs when I am trying to "MAKE" Xenosim- 2.4.7.
>> I have already installed Xenomai- 2.4.7 along with libelf -0.8.10 , Tcl
>> 8.3.5, Tk 8.3.5 , Tix 4.1.0.007 and an adeos patch that is adeos-ipipe
>> -2.6.25-x86-2.0-08.patch on a linux kernel which we built which has a
>> version Linux 2.6.25.11.
>> after configuring Xenosim along with the gcc -2.95.3 tar .gz when I try to
>> "make" the xenosim I'm getting an error :
>>
>> xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 65: error :too few
>> arguments
>> xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
>> arguments
>>
>> Kind Regards,
>> Vandana.
>>
>> =====-----=====-----=====
>> Notice: The information contained in this e-mail
>> message and/or attachments to it may contain
>> confidential or privileged information. If you are
>> not the intended recipient, any dissemination, use,
>> review, distribution, printing or copying of the
>> information contained in this e-mail message
>> and/or attachments to it are strictly prohibited. If
>> you have received this communication in error,
>> please notify us by reply e-mail or telephone and
>> immediately and permanently delete the message
>> and any attachments. Thank you
>>
>>
>>
>>
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
>>
>
>
[-- Attachment #2: Type: text/html, Size: 6745 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Error in adapter.cc during the "make" of xenosim
2009-03-25 14:18 Vandana Sasidharan
@ 2009-03-25 15:16 ` Bruno Rouchouse
2009-03-25 21:41 ` Bruno Rouchouse
0 siblings, 1 reply; 6+ messages in thread
From: Bruno Rouchouse @ 2009-03-25 15:16 UTC (permalink / raw)
To: Vandana Sasidharan; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 3955 bytes --]
Hi,
sorry, my previous answer was misleading wrt your problem I think. Tix has
probably nothing to do in your current issue but I'll check. I got confused
since I answered from the top of my head without having the code base at
hand.
My advice still applies though: build the latest xenosim release on an older
Linux host distribution (Debian/Sarge, FC5 or an equivalent distribution)
may help you to get quicker results.
If you have a powerful host hardware platform (core 2 Duo for instance),
installing this older Linux distribution into a qemu or virtualbox may be a
good solution, at least for a first try in order to get through the whole
build process.
PS : I think I stumbled over the adapter.cc compilation issue at one point.
I'll check later on today and will give you an update later on...
--BR
2009/3/25 Vandana Sasidharan <vandana.sasidharan@domain.hid>
>
> HI,
>
> Following the below query posted yesterday,
> I tried using previous versions of xenosim(as per the reply), but still
> could not resolve the below errors in adapter.cc.
> Just to go forward I commented the lines in adapter.cc where I found
> errors.
>
> Further when I started recompiling, I got errors in queue.h and heap.h in
> under native skin,
> This is what I am getting:
>
> 2.4.7/../include/nucleus/pod.h:34,
>
> from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:31:
> /usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that
> defines no instances
> In file included
> from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:44:
> /usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/queue.h:136: syntax
> error before `*'
> In file included
> from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:45:
> /usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/heap.h:122: syntax
> error before `*'
> make[2]: *** [module.o] Error 1
> make[2]: Leaving directory
> `/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
> make[1]: *** [all-recursive] Error 1
>
>
> Please can you help and let me know where I am going wrong?
>
> Thanks & regards,
> Vandana
>
> ---------------------------------------------------------------------------
>
> Hi,
>
> First of all sorry for mailing to Xenomai-core.
>
> Can you please tell me whether I should switch to the older distribution of
> xenosim, Linux or Tix, I am a bit confused regarding the same and it would
> be be really great if you you could clarify it. In case if
> it is Tix where can I get the download? Thanks in advance.
>
> For those who dont know what error I am getting:-
>
> an error occurs when I am trying to "MAKE" Xenosim- 2.4.7.
> I have already installed Xenomai- 2.4.7 along with libelf -0.8.10 , Tcl
> 8.3.5, Tk 8.3.5 , Tix 4.1.0.007 and an adeos patch that is adeos-ipipe
> -2.6.25-x86-2.0-08.patch on a linux kernel which we built which has a
> version Linux 2.6.25.11.
> after configuring Xenosim along with the gcc -2.95.3 tar .gz when I try to
> "make" the xenosim I'm getting an error :
>
> xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 65: error :too few
> arguments
> xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
> arguments
>
> Kind Regards,
> Vandana.
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
[-- Attachment #2: Type: text/html, Size: 4743 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Xenomai-help] Error in adapter.cc during the "make" of xenosim
@ 2009-03-25 14:18 Vandana Sasidharan
2009-03-25 15:16 ` Bruno Rouchouse
0 siblings, 1 reply; 6+ messages in thread
From: Vandana Sasidharan @ 2009-03-25 14:18 UTC (permalink / raw)
To: xenomai
HI,
Following the below query posted yesterday,
I tried using previous versions of xenosim(as per the reply), but still
could not resolve the below errors in adapter.cc.
Just to go forward I commented the lines in adapter.cc where I found
errors.
Further when I started recompiling, I got errors in queue.h and heap.h in
under native skin,
This is what I am getting:
2.4.7/../include/nucleus/pod.h:34,
from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:31:
/usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that
defines no instances
In file included
from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:44:
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/queue.h:136: syntax
error before `*'
In file included
from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:45:
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/heap.h:122: syntax
error before `*'
make[2]: *** [module.o] Error 1
make[2]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
make[1]: *** [all-recursive] Error 1
Please can you help and let me know where I am going wrong?
Thanks & regards,
Vandana
---------------------------------------------------------------------------
Hi,
First of all sorry for mailing to Xenomai-core.
Can you please tell me whether I should switch to the older distribution of
xenosim, Linux or Tix, I am a bit confused regarding the same and it would
be be really great if you you could clarify it. In case if
it is Tix where can I get the download? Thanks in advance.
For those who dont know what error I am getting:-
an error occurs when I am trying to "MAKE" Xenosim- 2.4.7.
I have already installed Xenomai- 2.4.7 along with libelf -0.8.10 , Tcl
8.3.5, Tk 8.3.5 , Tix 4.1.0.007 and an adeos patch that is adeos-ipipe
-2.6.25-x86-2.0-08.patch on a linux kernel which we built which has a
version Linux 2.6.25.11.
after configuring Xenosim along with the gcc -2.95.3 tar .gz when I try to
"make" the xenosim I'm getting an error :
xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 65: error :too few
arguments
xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
arguments
Kind Regards,
Vandana.
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-03-26 15:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25 3:35 [Xenomai-help] Error in adapter.cc during the "make" of xenosim Vandana Sasidharan
2009-03-26 15:11 ` Gilles Chanteperdrix
2009-03-25 14:18 Vandana Sasidharan
2009-03-25 15:16 ` Bruno Rouchouse
2009-03-25 21:41 ` Bruno Rouchouse
2009-03-26 7:27 Vandana Sasidharan
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.