All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [sim] ... doesn't build
@ 2006-05-27 15:13 Jan Kiszka
  2006-05-27 15:24 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2006-05-27 15:13 UTC (permalink / raw)
  To: xenomai-core

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

Hi,

I just tried to get the simulator from trunk built but failed here:

In file included from ../../../../xenomai/sim/../include/posix/posix.h:29,
                 from
../../../../xenomai/sim/../ksrc/skins/posix/internal.h:24,
                 from
../../../../xenomai/sim/../ksrc/skins/posix/thread.h:23,
                 from
../../../../xenomai/sim/../ksrc/skins/posix/sched.c:48:
../../../../xenomai/sim/../include/posix/pthread.h:246: conflicting
types for `pthread_attr_getaffinity_np'
/usr/include/pthread.h:383: previous declaration of
`pthread_attr_getaffinity_np'
../../../../xenomai/sim/../include/posix/pthread.h:249: conflicting
types for `pthread_attr_setaffinity_np'
/usr/include/pthread.h:377: previous declaration of
`pthread_attr_setaffinity_np'

Looks like glibc-2.4 (that one comes with my opensuse 10.1) now also
knows get/setaffinity. Prototypes of glibc:

extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
                                        size_t __cpusetsize,
                                        __const cpu_set_t *__cpuset)
__THROW;
extern int pthread_attr_getaffinity_np (__const pthread_attr_t *__attr,
                                        size_t __cpusetsize,
                                        cpu_set_t *__cpuset) __THROW;

Moreover, I get tons of this warning:

/usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that
defines no instances

But this is an "imported" issue, isn't it? Likely due to some picky gcc
switch during the simulator build.

Jan


PS: I already committed this tiny fix to make gcc-4.1 happy:

--- sim/vm/interrupt.h  (Revision 1140)
+++ sim/vm/interrupt.h  (Arbeitskopie)
@@ -145,7 +145,7 @@ public:
        return currentIrq;
     }

-    int MvmIrqManager::onHandlerP () {
+    int onHandlerP () {
        return !!getCurrentIrq();
     }


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

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

end of thread, other threads:[~2006-05-27 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-27 15:13 [Xenomai-core] [sim] ... doesn't build Jan Kiszka
2006-05-27 15:24 ` Gilles Chanteperdrix
2006-05-27 15:34   ` Jan Kiszka
2006-05-27 15:49     ` Gilles Chanteperdrix
2006-05-27 16:06       ` Jan Kiszka

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.