From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4DE6D6A80 for ; Mon, 13 Oct 2014 09:22:56 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 13 Oct 2014 00:28:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,708,1406617200"; d="scan'208";a="613486043" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 13 Oct 2014 00:28:41 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 13 Oct 2014 00:28:41 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 13 Oct 2014 00:28:41 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.230]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.203]) with mapi id 14.03.0195.001; Mon, 13 Oct 2014 15:28:39 +0800 From: "Zhan, Zhaochen" To: "Zhang, Helin" , "dev@dpdk.org" Thread-Topic: [PATCH] i40e: fix of compile error Thread-Index: AQHP5rXjjcmue4qq90ONr4q0Z6B+S5wtoG4g Date: Mon, 13 Oct 2014 07:28:38 +0000 Message-ID: <6D0EE020084B194084D70B0A8D2207B8EDC743@SHSMSX104.ccr.corp.intel.com> References: <1413184699-16124-1-git-send-email-helin.zhang@intel.com> In-Reply-To: <1413184699-16124-1-git-send-email-helin.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2014 07:22:57 -0000 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' d= efine 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 bu= t 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' defin= ed bu t not used cc1: warnings being treated as errors /root/zzz/error/app/test/test_cycles.c:96: error: 'testfn_cycles_cmd' defin= ed 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' defi= ned 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' d= efine 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' def= ined 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' define= d 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 >=20 > It fixes the compile error as below on gcc version 4.3.4. > cc1: error: unrecognized command line option "-Wno-unused-but-set- > variable" >=20 > Signed-off-by: Helin Zhang > --- > lib/librte_pmd_i40e/Makefile | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) >=20 > 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 +=3D -Wno-missing-field-initializers > CFLAGS_BASE_DRIVER +=3D -Wno-pointer-to-int-cast > CFLAGS_BASE_DRIVER +=3D -Wno-format-nonliteral > else > -CFLAGS_BASE_DRIVER =3D -Wno-unused-but-set-variable > -CFLAGS_BASE_DRIVER +=3D -Wno-sign-compare > +CFLAGS_BASE_DRIVER =3D -Wno-sign-compare > CFLAGS_BASE_DRIVER +=3D -Wno-unused-value > CFLAGS_BASE_DRIVER +=3D -Wno-unused-parameter > CFLAGS_BASE_DRIVER +=3D -Wno-strict-aliasing > @@ -65,6 +64,11 @@ CFLAGS_BASE_DRIVER +=3D -Wno-missing-field-initializer= s > CFLAGS_BASE_DRIVER +=3D -Wno-pointer-to-int-cast > CFLAGS_BASE_DRIVER +=3D -Wno-format-nonliteral > CFLAGS_BASE_DRIVER +=3D -Wno-format-security > + > +ifeq ($(shell test $(GCC_MAJOR_VERSION) -ge 4 -a $(GCC_MINOR_VERSION) - > ge 4 && echo 1), 1) > +CFLAGS_BASE_DRIVER +=3D -Wno-unused-but-set-variable > +endif > + > CFLAGS_i40e_lan_hmc.o +=3D -Wno-error > endif > OBJS_BASE_DRIVER=3D$(patsubst %.c,%.o,$(notdir $(wildcard > $(RTE_SDK)/lib/librte_pmd_i40e/i40e/*.c))) > -- > 1.8.1.4