All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Errors while compiling the testsuite
@ 2008-07-21 12:54 Christian Volk
  2008-07-25 16:30 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Volk @ 2008-07-21 12:54 UTC (permalink / raw)
  To: xenomai

Hi all,

while building xenomai, i get an "unresolved reference error" in clocktest.c
Here are the appropriate lines from the output:

Making all in clocktest
make[3]: Entering directory `/home/develop/Download/xenomai-2.4.4/src/testsuite/clocktest'
/opt/powerpc-linux-uclibc/bin/powerpc-generic-linux-uclibc-gcc-4.2.3 -DHAVE_CONFIG_H -I. -I../../../src/include  -I../../../include/posix -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes -I../../../include    -MT clocktest-clocktest.o -MD -MP -MF .deps/clocktest-clocktest.Tpo -c -o clocktest-clocktest.o `test -f 'clocktest.c' || echo './'`clocktest.c
clocktest.c: In function 'check_time_warps':
clocktest.c:129: warning: implicit declaration of function 'pthread_spin_lock'
clocktest.c:133: warning: implicit declaration of function 'pthread_spin_unlock'
clocktest.c: In function 'main':
clocktest.c:203: warning: implicit declaration of function 'pthread_spin_init'
mv -f .deps/clocktest-clocktest.Tpo .deps/clocktest-clocktest.Po
/bin/sh ../../../libtool --tag=CC   --mode=link /opt/powerpc-linux-uclibc/bin/powerpc-generic-linux-uclibc-gcc-4.2.3   -Wl,@/home/develop/Download/xenomai-2.4.4/src/skins/posix/posix.wrappers   -o clocktest clocktest-clocktest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt
mkdir .libs
/opt/powerpc-linux-uclibc/bin/powerpc-generic-linux-uclibc-gcc-4.2.3 -Wl,@/home/develop/Download/xenomai-2.4.4/src/skins/posix/posix.wrappers -o .libs/clocktest clocktest-clocktest.o  ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,--rpath -Wl,/usr/xenomai/lib
clocktest-clocktest.o: In function `main':
clocktest.c:(.text+0x10c): undefined reference to `pthread_spin_init'
clocktest-clocktest.o: In function `check_time_warps':
clocktest.c:(.text+0x36c): undefined reference to `pthread_spin_lock'
clocktest.c:(.text+0x3b8): undefined reference to `pthread_spin_unlock'
clocktest.c:(.text+0x3c8): undefined reference to `pthread_spin_lock'
clocktest.c:(.text+0x3f0): undefined reference to `pthread_spin_unlock'
clocktest.c:(.text+0x44c): undefined reference to `pthread_spin_unlock'
collect2: ld returned 1 exit status
make[3]: *** [clocktest] Fehler 1
make[3]: Leaving directory `/home/develop/Download/xenomai-2.4.4/src/testsuite/clocktest'

This happens when I try to compile for powerpc with uclibc.

Can anyone tell me where to search for the error??

The second question I have is, while configuring i need to specify --build and --host. The --host option means the architecture I'm compiling Xenomai for and --build means the system I'm building on. But what are the values I have to specify there??
Could someone pleas give me an example??

Thanks in advance.

regards,

Christian 



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

* Re: [Xenomai-help] Errors while compiling the testsuite
  2008-07-21 12:54 [Xenomai-help] Errors while compiling the testsuite Christian Volk
@ 2008-07-25 16:30 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2008-07-25 16:30 UTC (permalink / raw)
  To: Christian Volk; +Cc: xenomai

Christian Volk wrote:
> Hi all,
> 
> while building xenomai, i get an "unresolved reference error" in clocktest.c
> Here are the appropriate lines from the output:
> 
> Making all in clocktest
> make[3]: Entering directory `/home/develop/Download/xenomai-2.4.4/src/testsuite/clocktest'
> /opt/powerpc-linux-uclibc/bin/powerpc-generic-linux-uclibc-gcc-4.2.3 -DHAVE_CONFIG_H -I. -I../../../src/include  -I../../../include/posix -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes -I../../../include    -MT clocktest-clocktest.o -MD -MP -MF .deps/clocktest-clocktest.Tpo -c -o clocktest-clocktest.o `test -f 'clocktest.c' || echo './'`clocktest.c
> clocktest.c: In function 'check_time_warps':
> clocktest.c:129: warning: implicit declaration of function 'pthread_spin_lock'
> clocktest.c:133: warning: implicit declaration of function 'pthread_spin_unlock'
> clocktest.c: In function 'main':
> clocktest.c:203: warning: implicit declaration of function 'pthread_spin_init'
> mv -f .deps/clocktest-clocktest.Tpo .deps/clocktest-clocktest.Po
> /bin/sh ../../../libtool --tag=CC   --mode=link /opt/powerpc-linux-uclibc/bin/powerpc-generic-linux-uclibc-gcc-4.2.3   -Wl,@/home/develop/Download/xenomai-2.4.4/src/skins/posix/posix.wrappers   -o clocktest clocktest-clocktest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt
> mkdir .libs
> /opt/powerpc-linux-uclibc/bin/powerpc-generic-linux-uclibc-gcc-4.2.3 -Wl,@/home/develop/Download/xenomai-2.4.4/src/skins/posix/posix.wrappers -o .libs/clocktest clocktest-clocktest.o  ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,--rpath -Wl,/usr/xenomai/lib
> clocktest-clocktest.o: In function `main':
> clocktest.c:(.text+0x10c): undefined reference to `pthread_spin_init'
> clocktest-clocktest.o: In function `check_time_warps':
> clocktest.c:(.text+0x36c): undefined reference to `pthread_spin_lock'
> clocktest.c:(.text+0x3b8): undefined reference to `pthread_spin_unlock'
> clocktest.c:(.text+0x3c8): undefined reference to `pthread_spin_lock'
> clocktest.c:(.text+0x3f0): undefined reference to `pthread_spin_unlock'
> clocktest.c:(.text+0x44c): undefined reference to `pthread_spin_unlock'
> collect2: ld returned 1 exit status
> make[3]: *** [clocktest] Fehler 1
> make[3]: Leaving directory `/home/develop/Download/xenomai-2.4.4/src/testsuite/clocktest'
> 
> This happens when I try to compile for powerpc with uclibc.

Well, it probably means that uclibc does not support pthread_spin_*, we
should skip compilation of clocktest.c if these services are not
available. Patch welcome.

> 
> Can anyone tell me where to search for the error??
> 
> The second question I have is, while configuring i need to specify --build and --host. The --host option means the architecture I'm compiling Xenomai for and --build means the system I'm building on. But what are the values I have to specify there??
> Could someone pleas give me an example??

read README.INSTALL.

Regards.

-- 


					    Gilles.


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

end of thread, other threads:[~2008-07-25 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 12:54 [Xenomai-help] Errors while compiling the testsuite Christian Volk
2008-07-25 16:30 ` 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.