From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id ED92D9E3 for ; Thu, 6 Apr 2017 14:14:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491480878; x=1523016878; h=from:to:cc:subject:date:message-id; bh=r1r5Pl1aJQw2+6IKUogCVkD/oZhbowYhg4ZjqY9QbAg=; b=W7qsVcq6EGcKxkm/VplU4Ieab96E9XEx+PCHpks/K/1mVLZNb/CSSOoT r44trx1Bx1V6xXZ1UffgvVYFtKzNcw==; Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Apr 2017 05:14:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,159,1488873600"; d="scan'208";a="74319358" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by orsmga004.jf.intel.com with ESMTP; 06 Apr 2017 05:14:35 -0700 From: Ferruh Yigit To: Jerin Jacob , Bruce Richardson , Harry van Haaren , Thomas Monjalon Cc: dev@dpdk.org, Ferruh Yigit Date: Thu, 6 Apr 2017 13:14:26 +0100 Message-Id: <20170406121428.16883-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 Subject: [dpdk-dev] [PATCH 1/3] net/thunderx: disable pmd for gcc < 4.7 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: Thu, 06 Apr 2017 12:14:38 -0000 PMD uses some compiler builtins and new compiler options. Tested with gcc 4.5.1 and following were not supported: option: -Ofast macros: _Static_assert __ORDER_LITTLE_ENDIAN__ __ORDER_BIG_ENDIAN__ __BYTE_ORDER__ __atomic_fetch_add __ATOMIC_ACQUIRE __atomic_load_n __ATOMIC_RELAXED __atomic_store_n __ATOMIC_RELEASE It is not easy to fix all in PMD, disabling PMD for gcc version < 4.7 Signed-off-by: Ferruh Yigit --- drivers/net/thunderx/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/thunderx/Makefile b/drivers/net/thunderx/Makefile index 706250b..0b9f0a2 100644 --- a/drivers/net/thunderx/Makefile +++ b/drivers/net/thunderx/Makefile @@ -62,6 +62,14 @@ SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_svf.c ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) CFLAGS_nicvf_rxtx.o += -fno-prefetch-loop-arrays + +# Disable PMD for gcc < 4.7 +ifeq ($(shell test $(GCC_VERSION) -lt 47 && echo 1), 1) +$(warning thunderx pmd not supported by gcc < 4.7) +LIB = +SRC-y = +endif + endif CFLAGS_nicvf_rxtx.o += -Ofast -- 2.9.3