From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: JAY KOTHARI <jaikothari10@gmail.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] cross compiling xenomai application
Date: Thu, 1 Jan 2015 15:43:01 +0100 [thread overview]
Message-ID: <20150101144301.GE1544@daedalus> (raw)
In-Reply-To: <CALe7ZU1ONd1p9OFOYfHHh_FfHnmyFc-UuC6kBVQw4gQrCi2KWA@mail.gmail.com>
On Thu, Jan 01, 2015 at 08:05:32PM +0530, JAY KOTHARI wrote:
> Hi,
> I am trying to cross compile xenomai user space application with this
> command for Beagle Bone Black
>
> arm-linux-gnueabihf-gcc -I/usr/xenomai/include -I/usr/xenomai -D_GNU_SOURCE
> -D_REENTRANT -D__XENO__ -lnative -L/usr/xenomai/lib -L/usr/xenomai/
> -lxenomai -lpthread -lrt -Xlinker -rpath -Xlinker /usr/xenomai/lib
> 1_trivial-periodic.c -o 1_trivial-periodic -lnative -lpthread -lxenomai
>
> But I am facing linking error as follows
>
>
> In file included from /usr/xenomai/include/nucleus/trace.h:53:0,
>
> from /usr/xenomai/include/nucleus/system.h:27,
>
> from /usr/xenomai/include/asm/xenomai/system.h:128,
>
> from /usr/xenomai/include/nucleus/types.h:36,
>
> from /usr/xenomai/include/nucleus/thread.h:25,
>
> from /usr/xenomai/include/nucleus/sched.h:31,
>
> from /usr/xenomai/include/native/task.h:25,
>
> from 1_trivial-periodic.c:6:
>
> /usr/xenomai/include/asm/xenomai/tsc.h: In function ‘__xn_rdtsc’:
>
> /usr/xenomai/include/asm/xenomai/tsc.h:37:2: warning: left shift count >=
> width of type [enabled by default]
>
> return ((unsigned long)__a) | (((unsigned long)__d) << 32);
This __xn_drtsc is the one for the x86_64 architecture, not for the ARM
architecture. So, what you have in fact done is install xenomai on
your x86_64 host, and using that installation to compile arm code.
This can not work.
How to install Xenomai in cross-compiled environment is thoroughly
documented in Xenomai installation instructions.
--
Gilles.
prev parent reply other threads:[~2015-01-01 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 14:35 [Xenomai] cross compiling xenomai application JAY KOTHARI
2015-01-01 14:43 ` 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=20150101144301.GE1544@daedalus \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jaikothari10@gmail.com \
--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.