Message ID | 1413184699-16124-1-git-send-email-helin.zhang@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 578D25918; Mon, 13 Oct 2014 09:10:50 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 08DAD58E6 for <dev@dpdk.org>; Mon, 13 Oct 2014 09:10:48 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 13 Oct 2014 00:15:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,708,1406617200"; d="scan'208";a="617555567" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 13 Oct 2014 00:18:25 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id s9D7INaM005679; Mon, 13 Oct 2014 15:18:23 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s9D7IL8o016158; Mon, 13 Oct 2014 15:18:23 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s9D7ILP1016154; Mon, 13 Oct 2014 15:18:21 +0800 From: Helin Zhang <helin.zhang@intel.com> To: dev@dpdk.org Date: Mon, 13 Oct 2014 15:18:19 +0800 Message-Id: <1413184699-16124-1-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] i40e: fix of compile error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Zhang, Helin
Oct. 13, 2014, 7:18 a.m. UTC
It fixes the compile error as below on gcc version 4.3.4.
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
---
lib/librte_pmd_i40e/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Comments
Hi Helin, It still has errors: You can get access to 10.239.129.2 with root/tester. /root/zzz/dpdk is the latest dpdk code, /root/zzz/error is the latest code with the patch appled. cc1: warnings being treated as errors /root/zzz/error/app/test/test_prefetch.c:65: error: 'testfn_prefetch_cmd' define d but not used make[5]: *** [test_prefetch.o] Error 1 make[5]: *** Waiting for unfinished jobs.... CC test_table.o cc1: warnings being treated as errors /root/zzz/error/app/test/test_byteorder.c:99: error: 'testfn_byteorder_cmd' defi ned but not used make[5]: *** [test_byteorder.o] Error 1 cc1: warnings being treated as errors /root/zzz/error/app/test/test_pci.c:203: error: 'testfn_pci_cmd' defined but not used make[5]: *** [test_pci.o] Error 1 cc1: warnings being treated as errors /root/zzz/error/app/test/test_memory.c:92: error: 'testfn_memory_cmd' defined bu t not used cc1: warnings being treated as errors /root/zzz/error/app/test/test_cycles.c:96: error: 'testfn_cycles_cmd' defined bu t not used cc1: warnings being treated as errors /root/zzz/error/app/test/test_spinlock.c:341: error: 'testfn_spinlock_cmd' defin ed but not used make[5]: *** [test_cycles.o] Error 1 make[5]: *** [test_memory.o] Error 1 make[5]: *** [test_spinlock.o] Error 1 LD dump_cfg cc1: warnings being treated as errors /root/zzz/error/app/test/test_per_lcore.c:144: error: 'testfn_per_lcore_cmd' def ined but not used make[5]: *** [test_per_lcore.o] Error 1 cc1: warnings being treated as errors /root/zzz/error/app/test/test_atomic.c:382: error: 'testfn_atomic_cmd' defined b ut not used cc1: warnings being treated as errors /root/zzz/error/app/test/test_ring_perf.c:421: error: 'testfn_ring_perf_cmd' def ined but not used make[5]: *** [test_atomic.o] Error 1 make[5]: *** [test_ring_perf.o] Error 1 cc1: warnings being treated as errors /root/zzz/error/app/test/test_memzone.c:1052: error: 'testfn_memzone_cmd' define d but not used make[5]: *** [test_memzone.o] Error 1 cc1: warnings being treated as errors /root/zzz/error/app/test/test_malloc.c:1053: error: 'testfn_malloc_cmd' defined but not used make[5]: *** [test_malloc.o] Error 1 cc1: warnings being treated as errors /root/zzz/error/app/test/test_ring.c:1400: error: 'testfn_ring_cmd' defined but not used make[5]: *** [test_ring.o] Error 1 cc1: warnings being treated as errors /root/zzz/error/app/test/test_table.c:211: error: 'testfn_table_cmd' defined but not used make[5]: LD testacl *** [test_table.o] Error 1 INSTALL-APP cmdline_test INSTALL-MAP cmdline_test.map make[4]: *** [test] Error 2 make[4]: *** Waiting for unfinished jobs.... INSTALL-MAP dump_cfg.map INSTALL-APP dump_cfg INSTALL-APP testacl INSTALL-MAP testacl.map LD testpipeline INSTALL-APP testpipeline INSTALL-MAP testpipeline.map LD testpmd INSTALL-APP testpmd INSTALL-MAP testpmd.map make[3]: *** [app] Error 2 make[2]: *** [all] Error 2 make[1]: *** [x86_64-native-linuxapp-gcc_install] Error 2 make: *** [install] Error 2 > -----Original Message----- > From: Zhang, Helin > Sent: Monday, October 13, 2014 3:18 PM > To: dev@dpdk.org > Cc: Zhan, Zhaochen; Cao, Waterman; Zhang, Helin > Subject: [PATCH] i40e: fix of compile error > > It fixes the compile error as below on gcc version 4.3.4. > cc1: error: unrecognized command line option "-Wno-unused-but-set- > variable" > > Signed-off-by: Helin Zhang <helin.zhang@intel.com> > --- > lib/librte_pmd_i40e/Makefile | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile > index 4b31675..bd3428f 100644 > --- a/lib/librte_pmd_i40e/Makefile > +++ b/lib/librte_pmd_i40e/Makefile > @@ -55,8 +55,7 @@ CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers > CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast > CFLAGS_BASE_DRIVER += -Wno-format-nonliteral > else > -CFLAGS_BASE_DRIVER = -Wno-unused-but-set-variable > -CFLAGS_BASE_DRIVER += -Wno-sign-compare > +CFLAGS_BASE_DRIVER = -Wno-sign-compare > CFLAGS_BASE_DRIVER += -Wno-unused-value > CFLAGS_BASE_DRIVER += -Wno-unused-parameter > CFLAGS_BASE_DRIVER += -Wno-strict-aliasing > @@ -65,6 +64,11 @@ CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers > CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast > CFLAGS_BASE_DRIVER += -Wno-format-nonliteral > CFLAGS_BASE_DRIVER += -Wno-format-security > + > +ifeq ($(shell test $(GCC_MAJOR_VERSION) -ge 4 -a $(GCC_MINOR_VERSION) - > ge 4 && echo 1), 1) > +CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable > +endif > + > CFLAGS_i40e_lan_hmc.o += -Wno-error > endif > OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard > $(RTE_SDK)/lib/librte_pmd_i40e/i40e/*.c))) > -- > 1.8.1.4
> It fixes the compile error as below on gcc version 4.3.4. > cc1: error: unrecognized command line option "-Wno-unused-but-set- > variable" > > Signed-off-by: Helin Zhang <helin.zhang@intel.com> Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com> This patch has been verified on SUSE with gcc4.3.4. It has fixed the compile error related to i40e. But the dpdk still has error about"app/test/test_prefetch.c" with gcc4.3.4. Base commit: 23fcffe8ffaccf8a2901050e7daa4979597141ed CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz OS: SUSE 11, 3.0.13-0.5-default GCC: 4.3.4
hi, Could use rte_ring_create() API to create a ring, why no API to free it? -- Best Regards, zimeiw
2014-10-13 12:42, Zhan, Zhaochen: > > It fixes the compile error as below on gcc version 4.3.4. > > cc1: error: unrecognized command line option "-Wno-unused-but-set- > > variable" > > > > Signed-off-by: Helin Zhang <helin.zhang@intel.com> > > Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com> Applied Thanks
hi, NETDP news : UDP protocol and part of socket layer are porting into NETDP. Another application could establish UDP socket via NETDP, and could communicate with remote application on other PC. Packets ZERO copy between application and NETDP. No lock in UDP stack and socket layer. Running on multiple cores. Code link: https://github.com/opendp/dpdk-odp Demo link: https://github.com/opendp/dpdk-odp/wiki/Demo::UDP-socket Next planning: testing performance and porting TCP to NETDP. OPENDP (open data plane) news Create an initial opendp (open data plane) process based on dpdk and netdp. The purpose of OPENDP as below: User could build up a data plane to handle level 3, level 4 traffic easily. User could choice needed component to to setup data plane, of course currently the component is little. All application with mass traffic could go though data plane. OPENDP could also be fast path of software router. and so on... Code link: https://github.com/opendp/dpdk-odp/tree/master/opendp -- Best Regards, zimeiw
diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 4b31675..bd3428f 100644 --- a/lib/librte_pmd_i40e/Makefile +++ b/lib/librte_pmd_i40e/Makefile @@ -55,8 +55,7 @@ CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast CFLAGS_BASE_DRIVER += -Wno-format-nonliteral else -CFLAGS_BASE_DRIVER = -Wno-unused-but-set-variable -CFLAGS_BASE_DRIVER += -Wno-sign-compare +CFLAGS_BASE_DRIVER = -Wno-sign-compare CFLAGS_BASE_DRIVER += -Wno-unused-value CFLAGS_BASE_DRIVER += -Wno-unused-parameter CFLAGS_BASE_DRIVER += -Wno-strict-aliasing @@ -65,6 +64,11 @@ CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast CFLAGS_BASE_DRIVER += -Wno-format-nonliteral CFLAGS_BASE_DRIVER += -Wno-format-security + +ifeq ($(shell test $(GCC_MAJOR_VERSION) -ge 4 -a $(GCC_MINOR_VERSION) -ge 4 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable +endif + CFLAGS_i40e_lan_hmc.o += -Wno-error endif OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard $(RTE_SDK)/lib/librte_pmd_i40e/i40e/*.c)))