From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8]) by dpdk.org (Postfix) with ESMTP id D6C7F2BB2 for ; Tue, 28 Feb 2017 09:49:03 +0100 (CET) Received: from localhost (scalar.blr.asicdesigners.com [10.193.185.94]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id v1S8n0v2010562; Tue, 28 Feb 2017 00:49:01 -0800 Date: Tue, 28 Feb 2017 14:18:35 +0530 From: Rahul Lakkireddy To: dev@dpdk.org Cc: Keith Wiles , Kumar Sanghvi , Nirranjan Kirubaharan Message-ID: <20170228084834.GB12546@chelsio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.24 (2015-08-30) Subject: [dpdk-dev] Pktgen-DPDK build errors on ppc64le X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2017 08:49:04 -0000 Hi All, We are seeing Pktgen-DPDK not building on ppc64le with latest dpdk git repo. Below build errors are seen: ------------------------- [pktgen-dpdk]# make == lib == common CC l2p.o In file included from /root/pktgen-dpdk/lib/common/l2p.c:88:0: /root/pktgen-dpdk/lib/common/l2p.h: In function ‘pg_raw_dump_l2p’: /root/pktgen-dpdk/lib/common/l2p.h:103:2: error: comparison is always true due to limited range of data type [-Werror=type-limits] for (i = 0; i < RTE_MAX_LCORE; i++) ^ /root/pktgen-dpdk/lib/common/l2p.h:109:2: error: comparison is always true due to limited range of data type [-Werror=type-limits] for (j = 0; j < RTE_MAX_LCORE; j++) { ^ /root/pktgen-dpdk/lib/common/l2p.h: In function ‘pg_dump_l2p’: /root/pktgen-dpdk/lib/common/l2p.h:486:2: error: comparison is always true due to limited range of data type [-Werror=type-limits] for (lid = 0; lid < RTE_MAX_LCORE; lid++) { ^ /root/pktgen-dpdk/lib/common/l2p.c: In function ‘pg_port_matrix_dump’: /root/pktgen-dpdk/lib/common/l2p.c:477:3: error: large integer implicitly truncated to unsigned type [-Werror=overflow] cnt.rxtx = get_map(l2p, pid, RTE_MAX_LCORE); ^ /root/pktgen-dpdk/lib/common/l2p.c:488:3: error: large integer implicitly truncated to unsigned type [-Werror=overflow] cnt.rxtx = get_map(l2p, pid, RTE_MAX_LCORE); ^ cc1: all warnings being treated as errors make[3]: *** [l2p.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [common] Error 2 make: *** [lib] Error 2 ------------------------- By changing CONFIG_RTE_MAX_LCORE to 128 in defconfig_ppc_64-power8-linuxapp-gcc file, Pktgen-DPDK then builds fine. Thanks, Rahul