From: "Lennart Sorensen" <lsorense@csclub.uwaterloo.ca>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] xenomai 2.6.3 build failure on armhf
Date: Mon, 17 Mar 2014 12:27:36 -0400 [thread overview]
Message-ID: <20140317162736.GD17765@csclub.uwaterloo.ca> (raw)
In-Reply-To: <53271E68.6020502@xenomai.org>
On Mon, Mar 17, 2014 at 05:10:16PM +0100, Gilles Chanteperdrix wrote:
> On 03/17/2014 04:59 PM, Lennart Sorensen wrote:
> >I saw armhf had been added to debian/control in the xenomai-2.6
> >tree, and since I am trying to get it running there I figured it was
> >worth pulling that version. Unfortunately it fails to build with the
> >same error as 2.6.3 does.
> >
> >So any idea what this error means:
> >
> >assert_context.c: In function 'assert_nrt_inner':
> >assert_context.c:43:1: error: r7 cannot be used in asm here
> >
> >I am compiling on Debian wheezy armhf.
> >
> >The command line it used appears to be: /bin/bash ../../../libtool
> >--tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
> >-I../../../src/include -O2 -D_GNU_SOURCE -D_REENTRANT -Wall
> >-Werror-implicit-function-declaration -pipe -D__XENO__ -D__IN_XENO__
> >-Wstrict-prototypes -I../../../include -D_FORTIFY_SOURCE=2 -g -O2
> >-fstack-protector --param=ssp-buffer-size=4 -Wformat
> >-Werror=format-security -D_FORTIFY_SOURCE=2 -fno-omit-frame-pointer
> >-MT libxenomai_la-assert_context.lo -MD -MP -MF
> >.deps/libxenomai_la-assert_context.Tpo -c -o
> >libxenomai_la-assert_context.lo `test -f 'assert_context.c' || echo
> >'./'`assert_context.c
> >
> >Debian armhf uses thumb2 mode by default targeting armv7 with
> >VFP3-D16, in case that is relevant.
> >
>
> Could you show us the assembly that the assembler is trying to assemble?
> (gcc -S)
>
> I do not see anything at line 43, but the end of the function
> itself, but from the look of it, I would say that your build options
> are incompatible with our macro syscalls. Most probably the
> -fno-omit-frame-pointer, as I believe r7 is the frame-pointer with
> thumb (this would have to be checked). If that is true, it will be
> difficult to fix, as there is no way to detect (at least, last time
> I checked on x86) at compilation time if omit-frame-pointer is
> enabled or not, to use different syscall macros.
>
> FWIW, as I already said, I routinely compile Xenomai with armhf
> compilers, and with default options, I have no problems.
Hmm, so Debian's version of debian/rules has this:
# necessary from GCC 4.6 on
CFLAGS += -fno-omit-frame-pointer
I wonder if they are wrong.
--
Len Sorensen
next prev parent reply other threads:[~2014-03-17 16:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-17 15:59 [Xenomai] xenomai 2.6.3 build failure on armhf Lennart Sorensen
2014-03-17 16:10 ` Gilles Chanteperdrix
2014-03-17 16:27 ` Lennart Sorensen [this message]
2014-03-17 16:30 ` Gilles Chanteperdrix
2014-03-17 16:34 ` Lennart Sorensen
2014-03-17 16:49 ` Gilles Chanteperdrix
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=20140317162736.GD17765@csclub.uwaterloo.ca \
--to=lsorense@csclub.uwaterloo.ca \
--cc=gilles.chanteperdrix@xenomai.org \
--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.