From: Philippe Gerum <rpm@xenomai.org>
To: Huy Cong Vu <huy-cong.vu@wandercraft.eu>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai 3 - no skin detected in program
Date: Wed, 04 Feb 2015 14:16:18 +0100 [thread overview]
Message-ID: <54D21BA2.2020708@xenomai.org> (raw)
In-Reply-To: <2118665101.4111.1423048074765.JavaMail.zimbra@wandercraft.eu>
On 02/04/2015 12:07 PM, Huy Cong Vu wrote:
>
>
> ----- Mail original -----
>> De: "Philippe Gerum" <rpm@xenomai.org>
>> À: "Huy Cong Vu" <huy-cong.vu@wandercraft.eu>, xenomai@xenomai.org
>> Envoyé: Mercredi 4 Février 2015 10:13:14
>> Objet: Re: [Xenomai] Xenomai 3 - no skin detected in program
>
>> On 02/04/2015 09:55 AM, Huy Cong Vu wrote:
>>> Hello everyone,
>>> I recently try to run an application compiled in native skin of Xenomai 3. When
>>> trying to run the binary, these line appeared:
>>> WARNING: [main] no skin detected in program
>>> BUG: [main] initialization failed, EINVAL
>>> I know that this is a cooperplate_init() warning when trying to initialize
>>> native skin, but I don't understand the reason why:
>>> if (pvlist_empty(&skins)){
>>> warning("no skin detected in program");
>>> ret = -EINVAL;
>>> goto fail;
>>> }
>>
>> It seems that your application was not linked against libalchemy.so.
>> When API libraries are properly linked in, internal constructor routines
>> populate this list. POSIX support is built-in within the Cobalt
>> interface, so it won't appear here though.
>>
>> You may want to check this with ldd.
>>
>
> Indeed, I'm working on the linking option to find out why, it seems that -ffunctions-sections and -Wl,--gc-sections hides the -lalchemy flag so I removed it.
>
>>> In my main(), there are still native API calls:
>>> rt_print_auto_init(1);
>>> rt_task_spawn(...);
>>> rt_task_join(...);
>>> rt_task_delete(...);
>>> with mlockall also just to make sure, even I know that is pre-initialize since
>>> Xenomai 2.6.
>>> I have xenomai-3-next patched on linux-3.14.17, here are my compilation flags:
>>> cflags:
>>> xeno-config --alchemy --cflags
>>> xeno-config --rtdm --cflags
>>> ldflags:
>>> xeno-config --alchemy --ldflags
>>> xeno-config --rtdm --ldflags
>>
>> You should not mention --rtdm for userland apps, this is useless for
>> Xenomai 3. This has been kept for compatibility purpose with existing
>> application Makefiles targeting Xenomai 2.x.
>>
>
> But what if one of my static library calls from rtdm? Which flags should I add then if I can't use xeno-config --rtdm anymore?
>
None, it's available as a built-in feature of the POSIX API over cobalt.
--
Philippe.
prev parent reply other threads:[~2015-02-04 13:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-04 8:55 [Xenomai] Xenomai 3 - no skin detected in program Huy Cong Vu
2015-02-04 9:13 ` Philippe Gerum
2015-02-04 11:07 ` Huy Cong Vu
2015-02-04 11:40 ` Huy Cong Vu
2015-02-04 13:21 ` Philippe Gerum
2015-02-05 14:05 ` Huy Cong Vu
2015-02-05 14:42 ` Philippe Gerum
2015-02-05 15:29 ` Huy Cong Vu
2015-02-05 15:48 ` Philippe Gerum
2015-02-05 15:53 ` Philippe Gerum
2015-02-04 13:16 ` Philippe Gerum [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=54D21BA2.2020708@xenomai.org \
--to=rpm@xenomai.org \
--cc=huy-cong.vu@wandercraft.eu \
--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.