All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] unable to build xenomai-head
@ 2011-03-23 20:11 Jeff Weber
  2011-03-24  3:45 ` Gilles Chanteperdrix
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jeff Weber @ 2011-03-23 20:11 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]

I am unable to build the xenomai head. "make modules" gives

  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC [M]  kernel/xenomai/nucleus/registry.o
kernel/xenomai/nucleus/registry.c:226:8: warning: type defaults to ‘int’ in
declaration of ‘DECLARE_MUTEX’
kernel/xenomai/nucleus/registry.c:226:1: warning: parameter names (without
types) in function declaration
kernel/xenomai/nucleus/registry.c: In function ‘registry_proc_callback’:
kernel/xenomai/nucleus/registry.c:250:8: error: ‘export_mutex’ undeclared
(first use in this function)
kernel/xenomai/nucleus/registry.c:250:8: note: each undeclared identifier is
reported only once for each function it appears in
kernel/xenomai/nucleus/registry.c: At top level:
kernel/xenomai/nucleus/registry.c:226:8: warning: ‘DECLARE_MUTEX’ declared
‘static’ but never defined
make[3]: *** [kernel/xenomai/nucleus/registry.o] Error 1
make[2]: *** [kernel/xenomai/nucleus] Error 2
make[1]: *** [kernel/xenomai] Error 2
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....

this config:
linux=/usr/src/linux-2.6.37.3
xenomai= xenomai-head
adeos=adeos-ipipe-2.6.37-x86-2.9-00.patch
arch=x86 32-bit on SMP

I recently successfully build the same config using the released
xenomai-2.5.6 with no problems.
I'm  not yet experienced in git, but I obtained the xenomai-head branch by:

git clone git://xenomai.org/xenomai-head.git

Did I fetch the branch wrong, or does the xenomai-head branch currently not
build?
I need the CLOCK_HOST_REALTIME feature.

TIA,
Jeff

[-- Attachment #2: Type: text/html, Size: 2119 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] unable to build xenomai-head
  2011-03-23 20:11 [Xenomai-help] unable to build xenomai-head Jeff Weber
@ 2011-03-24  3:45 ` Gilles Chanteperdrix
  2011-03-24  7:37 ` Philippe Gerum
  2011-03-24  8:49 ` Philippe Gerum
  2 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2011-03-24  3:45 UTC (permalink / raw)
  To: Jeff Weber; +Cc: xenomai

Jeff Weber wrote:
> I am unable to build the xenomai head. "make modules" gives

Hi,

I am able to build xenomai head. The things which makes the difference
is probably the .config.

TIA,

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] unable to build xenomai-head
  2011-03-23 20:11 [Xenomai-help] unable to build xenomai-head Jeff Weber
  2011-03-24  3:45 ` Gilles Chanteperdrix
@ 2011-03-24  7:37 ` Philippe Gerum
  2011-03-24  8:49 ` Philippe Gerum
  2 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2011-03-24  7:37 UTC (permalink / raw)
  To: Jeff Weber; +Cc: xenomai

On Wed, 2011-03-23 at 15:11 -0500, Jeff Weber wrote:
> I am unable to build the xenomai head. "make modules" gives
> 
> 
>   CHK     include/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CALL    scripts/checksyscalls.sh
>   CC [M]  kernel/xenomai/nucleus/registry.o
> kernel/xenomai/nucleus/registry.c:226:8: warning: type defaults to
> ‘int’ in declaration of ‘DECLARE_MUTEX’
> kernel/xenomai/nucleus/registry.c:226:1: warning: parameter names
> (without types) in function declaration
> kernel/xenomai/nucleus/registry.c: In function
> ‘registry_proc_callback’:
> kernel/xenomai/nucleus/registry.c:250:8: error: ‘export_mutex’
> undeclared (first use in this function)
> kernel/xenomai/nucleus/registry.c:250:8: note: each undeclared
> identifier is reported only once for each function it appears in
> kernel/xenomai/nucleus/registry.c: At top level:
> kernel/xenomai/nucleus/registry.c:226:8: warning: ‘DECLARE_MUTEX’
> declared ‘static’ but never defined
> make[3]: *** [kernel/xenomai/nucleus/registry.o] Error 1
> make[2]: *** [kernel/xenomai/nucleus] Error 2
> make[1]: *** [kernel/xenomai] Error 2
> make: *** [kernel] Error 2
> make: *** Waiting for unfinished jobs....
> 

DECLARE_MUTEX vanished away in 2.6.37; the required compat wrapper was
merged into 2.5.x, but not to 2.6.x yet.

diff --git a/include/asm-generic/wrappers.h
b/include/asm-generic/wrappers.h
index e5b8c89..4f99fd5 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -622,4 +622,9 @@ static inline void wrap_proc_dir_entry_owner(struct
proc_dir_entry *entry)
 #define unlocked_ioctl ioctl
 #endif
 
+#ifndef DEFINE_SEMAPHORE
+/* Legacy DECLARE_MUTEX vanished in 2.6.37 */
+#define DEFINE_SEMAPHORE(sem) DECLARE_MUTEX(sem)
+#endif
+
 #endif /* _XENO_ASM_GENERIC_WRAPPERS_H */

> 
> this config:
> linux=/usr/src/linux-2.6.37.3
> xenomai= xenomai-head
> adeos=adeos-ipipe-2.6.37-x86-2.9-00.patch
> arch=x86 32-bit on SMP
> 
> 
> I recently successfully build the same config using the released
> xenomai-2.5.6 with no problems.
> I'm  not yet experienced in git, but I obtained the xenomai-head
> branch by:
> 
> 
> git clone git://xenomai.org/xenomai-head.git
> 
> 
> Did I fetch the branch wrong, or does the xenomai-head branch
> currently not build?
> I need the CLOCK_HOST_REALTIME feature.
> 
> 
> TIA,
> Jeff
> 
> 
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] unable to build xenomai-head
  2011-03-23 20:11 [Xenomai-help] unable to build xenomai-head Jeff Weber
  2011-03-24  3:45 ` Gilles Chanteperdrix
  2011-03-24  7:37 ` Philippe Gerum
@ 2011-03-24  8:49 ` Philippe Gerum
  2011-03-24 10:13   ` Gilles Chanteperdrix
  2 siblings, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2011-03-24  8:49 UTC (permalink / raw)
  To: Jeff Weber; +Cc: xenomai

On Wed, 2011-03-23 at 15:11 -0500, Jeff Weber wrote:
> I am unable to build the xenomai head. "make modules" gives
> 
> 
>   CHK     include/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CALL    scripts/checksyscalls.sh
>   CC [M]  kernel/xenomai/nucleus/registry.o
> kernel/xenomai/nucleus/registry.c:226:8: warning: type defaults to
> ‘int’ in declaration of ‘DECLARE_MUTEX’
> kernel/xenomai/nucleus/registry.c:226:1: warning: parameter names
> (without types) in function declaration
> kernel/xenomai/nucleus/registry.c: In function
> ‘registry_proc_callback’:
> kernel/xenomai/nucleus/registry.c:250:8: error: ‘export_mutex’
> undeclared (first use in this function)
> kernel/xenomai/nucleus/registry.c:250:8: note: each undeclared
> identifier is reported only once for each function it appears in
> kernel/xenomai/nucleus/registry.c: At top level:
> kernel/xenomai/nucleus/registry.c:226:8: warning: ‘DECLARE_MUTEX’
> declared ‘static’ but never defined
> make[3]: *** [kernel/xenomai/nucleus/registry.o] Error 1
> make[2]: *** [kernel/xenomai/nucleus] Error 2
> make[1]: *** [kernel/xenomai] Error 2
> make: *** [kernel] Error 2
> make: *** Waiting for unfinished jobs....
> 

-head should now be up-to-date wrt 2.5.x fixes. Please retry and report
any issue. TIA,

> 
> this config:
> linux=/usr/src/linux-2.6.37.3
> xenomai= xenomai-head
> adeos=adeos-ipipe-2.6.37-x86-2.9-00.patch
> arch=x86 32-bit on SMP
> 
> 
> I recently successfully build the same config using the released
> xenomai-2.5.6 with no problems.
> I'm  not yet experienced in git, but I obtained the xenomai-head
> branch by:
> 
> 
> git clone git://xenomai.org/xenomai-head.git
> 
> 
> Did I fetch the branch wrong, or does the xenomai-head branch
> currently not build?
> I need the CLOCK_HOST_REALTIME feature.
> 
> 
> TIA,
> Jeff
> 
> 
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] unable to build xenomai-head
  2011-03-24  8:49 ` Philippe Gerum
@ 2011-03-24 10:13   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2011-03-24 10:13 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
> On Wed, 2011-03-23 at 15:11 -0500, Jeff Weber wrote:
>> I am unable to build the xenomai head. "make modules" gives
>>
>>
>>   CHK     include/linux/version.h
>>   CHK     include/generated/utsrelease.h
>>   CALL    scripts/checksyscalls.sh
>>   CC [M]  kernel/xenomai/nucleus/registry.o
>> kernel/xenomai/nucleus/registry.c:226:8: warning: type defaults to
>> ‘int’ in declaration of ‘DECLARE_MUTEX’
>> kernel/xenomai/nucleus/registry.c:226:1: warning: parameter names
>> (without types) in function declaration
>> kernel/xenomai/nucleus/registry.c: In function
>> ‘registry_proc_callback’:
>> kernel/xenomai/nucleus/registry.c:250:8: error: ‘export_mutex’
>> undeclared (first use in this function)
>> kernel/xenomai/nucleus/registry.c:250:8: note: each undeclared
>> identifier is reported only once for each function it appears in
>> kernel/xenomai/nucleus/registry.c: At top level:
>> kernel/xenomai/nucleus/registry.c:226:8: warning: ‘DECLARE_MUTEX’
>> declared ‘static’ but never defined
>> make[3]: *** [kernel/xenomai/nucleus/registry.o] Error 1
>> make[2]: *** [kernel/xenomai/nucleus] Error 2
>> make[1]: *** [kernel/xenomai] Error 2
>> make: *** [kernel] Error 2
>> make: *** Waiting for unfinished jobs....
>>
> 
> -head should now be up-to-date wrt 2.5.x fixes. Please retry and report
> any issue. TIA,

Sorry, I forgot about that.

-- 
					    Gilles.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-24 10:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 20:11 [Xenomai-help] unable to build xenomai-head Jeff Weber
2011-03-24  3:45 ` Gilles Chanteperdrix
2011-03-24  7:37 ` Philippe Gerum
2011-03-24  8:49 ` Philippe Gerum
2011-03-24 10:13   ` Gilles Chanteperdrix

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.