Skip to contentSkip to conversation

revision 3882 breaks compilation of xenomai

Xenomai-core Sebastian Smolorz 2 participants 3 messages May 26, 2008

lore
Share & tools
lore
#0 lore raw

Hello Gilles,

with your last commit:
Fix compilation with ucLibc

I cannot build xenomai userland any more (at least when taking glibc). cyclictest fails with the following error:

../../skins/posix/.libs/libpthread_rt.so: undefined reference to likely' ../../skins/posix/.libs/libpthread_rt.so: undefined reference to unlikely'
collect2: ld returned 1 exit status

Signature · 1 line
Sebastian
#1 lore raw
Quoted 11 lines · Sebastian Smolorz

Hello Gilles,

with your last commit:
Fix compilation with ucLibc

I cannot build xenomai userland any more (at least when taking glibc). cyclictest fails with the following error:

../../skins/posix/.libs/libpthread_rt.so: undefined reference to likely' ../../skins/posix/.libs/libpthread_rt.so: undefined reference to unlikely'
collect2: ld returned 1 exit status

Ok. Could you try to add a #include <nucleus/compiler.h> in ksrc/skins/posix/cb_lock.h ?

Signature · 1 line
 Gilles
#2 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Sebastian Smolorz

Hello Gilles,

with your last commit:
Fix compilation with ucLibc

I cannot build xenomai userland any more (at least when taking glibc). cyclictest fails with the following error:

Quoted 6 lines
Quoted 3 lines

../../skins/posix/.libs/libpthread_rt.so: undefined reference to likely' ../../skins/posix/.libs/libpthread_rt.so: undefined reference to unlikely'
collect2: ld returned 1 exit status

Ok. Could you try to add a #include <nucleus/compiler.h> in ksrc/skins/posix/cb_lock.h ?

Yes, that solves it.

Signature · 1 line
Sebastian