All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Christian Volk <linux.kernel@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Errors while compiling the testsuite
Date: Fri, 25 Jul 2008 18:30:32 +0200	[thread overview]
Message-ID: <4889FFA8.3040003@domain.hid> (raw)
In-Reply-To: <200807211254.m6LCswrS024819@domain.hid>

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.


      reply	other threads:[~2008-07-25 16:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-21 12:54 [Xenomai-help] Errors while compiling the testsuite Christian Volk
2008-07-25 16:30 ` Gilles Chanteperdrix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4889FFA8.3040003@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=linux.kernel@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.