From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: "Damjan Marion (damarion)" <damarion@cisco.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] 16.07-rc2 issue with rte_rtm_init(void) constructor
Date: Thu, 14 Jul 2016 10:20:31 +0200 [thread overview]
Message-ID: <2746154.p2WhExbrR9@xps13> (raw)
In-Reply-To: <C9B4A9F8-E6CB-4B5A-9472-6E2C4877C158@cisco.com>
2016-07-13 22:58, Damjan Marion:
> I have issues with linking application to 16.07-rc2.
>
> Looks like reason is constructor function in include file,
> so our unit test apps are failing to link as they are not linked with dpdk libs.
> (and they should not be as they are not calling any dpdk function).
I don't understand:
Why are you linking DPDK if you do not use any DPDK function?
> static inline void __attribute__((constructor))
> rte_rtm_init(void)
> {
> rtm_supported = rte_cpu_get_flag_enabled(RTE_CPUFLAG_RTM);
> }
>
> linking fails with:
> dpdk/include/rte_spinlock.h:103: undefined reference to `rte_cpu_get_flag_enabled’
>
> Is there any chance that this one is moved to some .c file, so it is loaded
> only when it is really needed?
Yes it could be moved to lib/librte_eal/common/arch/x86/.
next prev parent reply other threads:[~2016-07-14 8:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-13 22:58 Damjan Marion (damarion)
2016-07-14 8:20 ` Thomas Monjalon [this message]
2016-07-14 9:36 ` Damjan Marion (damarion)
2016-07-14 11:30 ` Thomas Monjalon
2016-07-14 13:24 ` Damjan Marion (damarion)
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=2746154.p2WhExbrR9@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=damarion@cisco.com \
--cc=dev@dpdk.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).