From: Philippe Gerum <rpm@xenomai.org>
To: Nicolas SCHURANDO <schurann@ext.essilor.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] VxWorks API on Xenomai 3.0
Date: Tue, 19 Jan 2016 09:22:38 +0100 [thread overview]
Message-ID: <569DF24E.4080202@xenomai.org> (raw)
In-Reply-To: <CA+CJOCzZPC+ja-R4m+bwnYhOFRQp-cd1Ag0UB0h5OKN6ZhEWDw@mail.gmail.com>
On 01/18/2016 07:15 PM, Nicolas SCHURANDO wrote:
> Hi Philippe,
>
> I switched to branch stable-3.0.x, retrieved your commit b411e4c
> "lib/cobalt: add init trace points", and rebuilt everything.
>
> Below is what I have with the new --trace option.
>
> With static linking :
>
> -- xenomai_init() running
> -- cobalt->init()
> -- connected to Cobalt
> -- memory locked
> -- memory heaps mapped
> -- boilerplate->init()
> 0"000.070| WARNING: [main] Xenomai compiled with full debug enabled,
> very high latencies expected
> [--enable-debug=full]
> -- initialization complete
> [i] [main] Hello, launching root task ...
> 0"001.747| BUG in wind_task_normalize_priority():
The init call for the VxWorks API is missing, which explains the issue.
>
>
> I also decided to try with dynamic linking as well, to see if it was
> producing anything different :
>
> -- xenomai_init() running
> -- cobalt->init()
> -- connected to Cobalt
> -- memory locked
> -- memory heaps mapped
> -- boilerplate->init()
> -- copperplate->init()
> -- vxworks->init()
The issue is most likely with static linking. It seems that the linker
is eliminating the interface setup descriptor in lib/vxworks/init.c from
the final executable; unfortunately this is a library constructor,
connecting the API to the system. We already stumbled upon this issue,
but no fix could be found at this point, with toolchains ignoring
explicit requests to keep such symbols into the name list.
Some (likely terminally ugly) work around may exist, but support for
static linking is very low priority here, so I would advise to stay with
dynamic linking for now.
> 0"016.431| WARNING: [rpi-test-bug-wa] low resolution clock
> disabled [--enable-lores-clock]
--enable-lores-clock when configuring is required by tick-based APIs.
--
Philippe.
next prev parent reply other threads:[~2016-01-19 8:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-14 9:22 [Xenomai] VxWorks API on Xenomai 3.0 Nicolas SCHURANDO
2016-01-14 17:24 ` Philippe Gerum
2016-01-15 9:57 ` Nicolas SCHURANDO
2016-01-18 11:55 ` Philippe Gerum
2016-01-18 12:34 ` Nicolas SCHURANDO
2016-01-18 15:19 ` Philippe Gerum
2016-01-18 18:15 ` Nicolas SCHURANDO
2016-01-19 8:22 ` Philippe Gerum [this message]
2016-01-25 15:37 ` Nicolas SCHURANDO
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=569DF24E.4080202@xenomai.org \
--to=rpm@xenomai.org \
--cc=schurann@ext.essilor.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.