From: Thomas Monjalon <thomas@monjalon.net>
To: qian.q.xu@intel.com
Cc: adrien.mazarguil@6wind.com, dev@dpdk.org, hemant.agrawal@nxp.com,
bruce.richardson@intel.com
Subject: compilation error on Suse 11 - LPM init of anon union
Date: Sat, 13 Jan 2018 20:14:06 +0100 [thread overview]
Message-ID: <13541534.8OkorCjPcv@xps> (raw)
Hi,
There is a new compilation error since this commit in LPM:
http://dpdk.org/commit/b2e1c99
The brace has been removed because unnecessary with anonymous union.
This union is declared with RTE_STD_C11 for compatibility
with old compilers:
/** C extension macro for environments lacking C11 features. */
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
#define RTE_STD_C11 __extension__
#else
#define RTE_STD_C11
#endif
Unfortunately, it does not work on Suse 11 SP2 with GCC 4.5.1:
lib/librte_lpm/rte_lpm.c: In function ‘add_depth_big_v20’:
lib/librte_lpm/rte_lpm.c:886:4: error:
unknown field ‘group_idx’ specified in initializer
Curiously, the error is exactly the same with ICC 16.0.2:
http://dpdk.org/ml/archives/test-report/2018-January/038443.html
Is it really using different compilers in those 2 tests?
Someone to check the value of __STDC_VERSION__ with those compilers?
gcc -dM -E -xc /dev/null | grep STDC_VERSION
Thanks for the help
next reply other threads:[~2018-01-13 19:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-13 19:14 Thomas Monjalon [this message]
2018-01-15 16:18 ` compilation error on Suse 11 - LPM init of anon union Adrien Mazarguil
2018-01-15 17:08 ` Adrien Mazarguil
2018-01-17 22:49 ` Thomas Monjalon
2018-01-17 22:51 ` Thomas Monjalon
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=13541534.8OkorCjPcv@xps \
--to=thomas@monjalon.net \
--cc=adrien.mazarguil@6wind.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=qian.q.xu@intel.com \
/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.