All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai with µClibc
@ 2007-05-28  7:43 Perrine Martignoni
  2007-05-28  8:49 ` Philippe Gerum
  0 siblings, 1 reply; 50+ messages in thread
From: Perrine Martignoni @ 2007-05-28  7:43 UTC (permalink / raw)
  To: xenomai

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

Hello,

I just want to know if we can build Xenomai with the µClibc ?
And if API Posix run with µClibc too?

I have tried with the cross compiler EDLK with µClibc and it doesn't work.
When I build Xenomai, there is some errors. And after when I want to compile
a code with API Posix, the error is :
API Posix not available

Is there someone who succeeded ?
Thanks

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

^ permalink raw reply	[flat|nested] 50+ messages in thread
* Re: [Xenomai-help] Xenomai with µClibc
@ 2007-05-28 13:15 Fillod Stephane
  2007-05-28 13:38 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 50+ messages in thread
From: Fillod Stephane @ 2007-05-28 13:15 UTC (permalink / raw)
  To: Perrine Martignoni, xenomai

Perrine Martignoni wrote:
> Sorry for the details.
> I work on an ARM and I use the cross compiler ELDK version 4.1 (build : 2007-01-22-uclibc).
>
>When I compile sources of xenomai, I have this error message : 
>
> -Wl,shm_unlink -Wl,--wrap -Wl,mmap -Wl,--wrap -Wl,munmap cyclictest-cyclictest.o  ../../skins/posix/.libs/libpthread_rt.a -lpthread -lrt 
../../skins/posix/.libs/libpthread_rt.a(libpthread_rt_la-shm.o): In function `__wrap_shm_open':
shm.c:(.text+0x74): undefined reference to `shm_open'
../../skins/posix/.libs/libpthread_rt.a(libpthread_rt_la-shm.o): In function `__wrap_shm_unlink':
shm.c:(.text+0xdc): undefined reference to `shm_unlink'
collect2: ld returned 1 exit status
make[3]: *** [cyclictest] Erreur 1
make[3]: Leaving directory `/usr/src/xenomai-2.3.1/src/testsuite/cyclic'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/usr/src/xenomai-2.3.1/src/testsuite'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/usr/src/xenomai-2.3.1/src'
make: *** [all-recursive] Erreur 1

Fixed by this patch:
https://mail.gna.org/public/xenomai-core/2007-03/msg00104.html

You may also need this patch:

--- skins/native/task.c 20 Mar 2007 08:16:41 -0000      1.1.1.1
+++ skins/native/task.c 28 Mar 2007 13:53:03 -0000      1.2
@@ -135,7 +135,12 @@
        pthread_attr_setstacksize(&thattr, stksize);
        if (!(mode & T_JOINABLE))
                pthread_attr_setdetachstate(&thattr, PTHREAD_CREATE_DETACHED);
-       if (prio > 0) {
+       /* There's a limitation in libpthread
+        * that returns EPERM upon SCHED_FIFO
+        * for non priviledged users.
+        * So workaround this for now. FIXME (in uClibc/pthread).
+        */
+       if (prio > 0 && geteuid() == 0) {
                pthread_attr_setschedpolicy(&thattr, SCHED_FIFO);
                param.sched_priority = sched_get_priority_max(SCHED_FIFO);
        }

-- 
Stephane


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

end of thread, other threads:[~2007-06-01 14:46 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-28  7:43 [Xenomai-help] Xenomai with µClibc Perrine Martignoni
2007-05-28  8:49 ` Philippe Gerum
2007-05-28  9:03   ` Gilles Chanteperdrix
2007-05-28  9:12     ` Philippe Gerum
2007-05-28 12:57       ` Perrine Martignoni
2007-05-28 13:17         ` Philippe Gerum
2007-05-28 13:21         ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2007-05-28 13:15 Fillod Stephane
2007-05-28 13:38 ` Gilles Chanteperdrix
2007-05-28 13:51   ` Philippe Gerum
2007-05-29  8:30     ` Perrine Martignoni
2007-05-29  8:42       ` Gilles Chanteperdrix
2007-05-29 10:47         ` Perrine Martignoni
2007-05-29 16:58           ` Gilles Chanteperdrix
2007-05-29 17:27           ` Jan Kiszka
2007-05-29 18:18             ` Gilles Chanteperdrix
2007-05-30  5:57               ` Perrine Martignoni
2007-05-30  7:51                 ` Perrine Martignoni
2007-05-30  8:05                   ` Jan Kiszka
2007-05-30  9:10                     ` Perrine Martignoni
2007-05-30  9:21                       ` Daniel Schnell
2007-05-30  9:28                         ` Gilles Chanteperdrix
2007-05-30  9:40                           ` Daniel Schnell
2007-05-30  9:43                             ` Gilles Chanteperdrix
2007-05-31  9:08                       ` Gilles Chanteperdrix
2007-05-30 11:55                   ` Jan Kiszka
2007-05-31  9:04                     ` Jan Kiszka
2007-05-31 10:40                       ` Daniel Schnell
2007-05-31 12:58                         ` Perrine Martignoni
2007-05-31 13:04                           ` Jan Kiszka
2007-05-31 13:14                             ` Perrine Martignoni
2007-05-31 13:30                             ` Wolfgang Grandegger
2007-05-31 13:38                               ` Jan Kiszka
2007-05-31 13:45                                 ` Perrine Martignoni
2007-05-31 13:58                                   ` Jan Kiszka
2007-05-31 14:13                                 ` Wolfgang Grandegger
2007-05-31 14:58                                   ` Perrine Martignoni
2007-05-31 15:03                                     ` Gilles Chanteperdrix
2007-05-31 15:33                                       ` Perrine Martignoni
     [not found]                                         ` <465EEDC3.6040309@domain.hid>
2007-06-01  7:17                                           ` Perrine Martignoni
2007-06-01  7:30                                             ` Gilles Chanteperdrix
2007-06-01  8:26                                 ` Wolfgang Grandegger
2007-06-01  8:48                                   ` Jan Kiszka
2007-06-01  9:09                                     ` Wolfgang Grandegger
2007-06-01  9:11                                       ` Jan Kiszka
2007-06-01 14:46                                         ` Wolfgang Grandegger
2007-06-01 14:45                                           ` Jan Kiszka
2007-06-01  9:11                                       ` Perrine Martignoni
2007-05-31 13:04                           ` Gilles Chanteperdrix
2007-05-31 13:05                           ` Perrine Martignoni

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.