From: Wolfgang Grandegger <wg@domain.hid>
To: "Koenig, Florian" <F.Koenig@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] build xenomai userspace app, illegal instruction
Date: Mon, 16 May 2011 12:56:26 +0200 [thread overview]
Message-ID: <4DD102DA.9080206@domain.hid> (raw)
In-Reply-To: <89B30389DB4AE240AC1227F3FDBB7CCF029B910B@ontex.i.omicron.de>
On 05/16/2011 12:23 PM, Koenig, Florian wrote:
> Hi,
>
> i installed eldk into /opt/eldk-4.2, then i installed (make install) xenomai
> user-space into /opt/eldk-4.2/ppc_4xx .
>
> Now when i try to build the xenomai examples with
>
> $ make XENO=/opt/eldk-4.2/usr/xenomai-2.5.6/bin
>
> It uses /lib/modules/2.6.32-5-686 from the local kernel, so i used
>
> $ make XENO=/opt/eldk-4.2/usr/xenomai-2.5.6/bin KSRC=/usr/src/linux-2.6.36
For building kernel space modules you need to specifiy KSRC as well, but
not for user space apps.
> But then it returns:
> make[1]: Entering directory `/usr/src/xenomai-2.5.6/examples/native'
> powerpc-linux-gcc -I/usr/xenomai-2.5.6/include -D_GNU_SOURCE -D_REENTRANT
> -Wall -pipe -D__XENO__ -L/usr/xenomai-2.5.6/lib -lxenomai -lpthread
> -lnative -Xlinker -rpath -Xlinker /usr/xenomai-2.5.6/lib trivial-periodic.c
> -o trivial-periodic
> trivial-periodic.c: In function 'main':
> trivial-periodic.c:72: warning: control reaches end of non-void function
I think you didn't specify DESTDIR? Or did you install xenomai-2.5.6
into /usr ? Normally you do:
cd xenomai-2.5.6
./configure --host=powerpc-linux --prefix=/usr/xenomai
make
export DESTDIR=/opt/eldk/ppc_4xx
make install
You also need the DESTDIR for building your apps.
> When i now use trivial-periodic on the 405GP cpu, it also returns: illegal
> instruction
>
> When i try to build the hello_world app with your command it returns:
>
> powerpc-linux-gcc -o test test.c
> 'XENO=/opt/eldk-4.2/ppc_4xx/usr/xenomai-2.5.6/bin/xeno-config --skin native
> --cflags --ldflags' -lrtdk
> powerpc-linux-gcc:
> XENO=/opt/eldk-4.2/ppc_4xx/usr/xenomai-2.5.6/bin/xeno-config --skin native
> --cflags --ldflags: No such file or directory
>
> Why is xenomai using local /lib/modules/2.6.32-5-686 directory ? what do i
> wrong with xenomai userspace part ?
See above? Hope it helps.
Wolfgang.
next prev parent reply other threads:[~2011-05-16 10:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 12:46 [Xenomai-help] build xenomai userspace app, illegal instruction Koenig, Florian
2011-05-13 13:15 ` Wolfgang Grandegger
2011-05-16 10:23 ` Koenig, Florian
2011-05-16 10:56 ` Wolfgang Grandegger [this message]
2011-05-16 11:17 ` Wolfgang Grandegger
2011-05-16 13:27 ` Koenig, Florian
2011-05-16 14:45 ` Wolfgang Grandegger
2011-05-17 7:03 ` Koenig, Florian
2011-05-17 7:14 ` Wolfgang Grandegger
[not found] ` <89B30389DB4AE240AC1227F3FDBB7CCF029B9111@domain.hid>
2011-05-17 9:27 ` Wolfgang Grandegger
2011-05-17 11:11 ` Gilles Chanteperdrix
2011-05-17 11:22 ` Wolfgang Grandegger
2011-05-17 13:21 ` Koenig, Florian
2011-05-17 14:06 ` Wolfgang Grandegger
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=4DD102DA.9080206@domain.hid \
--to=wg@domain.hid \
--cc=F.Koenig@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.