DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] compilation error on Suse 11 - LPM init of anon union
@ 2018-01-13 19:14 Thomas Monjalon
  2018-01-15 16:18 ` Adrien Mazarguil
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Monjalon @ 2018-01-13 19:14 UTC (permalink / raw)
  To: qian.q.xu; +Cc: adrien.mazarguil, dev, hemant.agrawal, bruce.richardson

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-17 22:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-13 19:14 [dpdk-dev] compilation error on Suse 11 - LPM init of anon union Thomas Monjalon
2018-01-15 16:18 ` Adrien Mazarguil
2018-01-15 17:08   ` Adrien Mazarguil
2018-01-17 22:49     ` Thomas Monjalon
2018-01-17 22:51       ` Thomas Monjalon

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).