From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v11 2/2] librte_pmd_null: Support port hotplug function Date: Sat, 28 Feb 2015 00:29:59 +0100 Message-ID: <3608426.WU3RcSlJht@xps13> References: <1424414516-18609-1-git-send-email-mukawa@igel.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Mcnamara, John" Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2015-02-26 12:21, Mcnamara, John: > Hi, > > The HEAD doesn't compile with gcc 4.7.2: > > $ git clone http://dpdk.org/git/dpdk > $ cd dpdk > $ make T=x86_64-native-linuxapp-gcc -j install > > ... > == Build lib/librte_pipeline > SYMLINK-FILE include/rte_pipeline.h > CC rte_pipeline.o > /tmp/dpdk/lib/librte_pmd_null/rte_eth_null.c: In function 'eth_stats_get': > > /tmp/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: > error: array subscript is above array bounds [-Werror=array-bounds] > /tmp/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: > error: array subscript is above array bounds [-Werror=array-bounds] > /tmp/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: > error: array subscript is above array bounds [-Werror=array-bounds] > ... > > cc1: all warnings being treated as errors > make[5]: *** [rte_eth_null.o] Error 1 > make[4]: *** [librte_pmd_null] Error 2 > > > The following commit introduced this issue: > > $ git bisect good > c743e50c475f73edf78e5ba26445d7c6ea217f40 is the first bad commit > commit c743e50c475f73edf78e5ba26445d7c6ea217f40 > Author: Tetsuya Mukawa > Date: Mon Feb 23 14:12:34 2015 +0900 > > null: new poll mode driver > > > I don't see the issue with gcc 4.9. Fixed: http://dpdk.org/browse/dpdk/commit/?id=e34550c8b97826