From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 69B6F5583 for ; Tue, 13 Jun 2017 17:32:08 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2017 08:32:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,338,1493708400"; d="scan'208";a="97527175" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.91]) ([10.237.220.91]) by orsmga004.jf.intel.com with ESMTP; 13 Jun 2017 08:32:04 -0700 To: Adrien Mazarguil , Nelio Laranjeiro Cc: DPDK From: Ferruh Yigit Message-ID: <2f049b66-c76a-9ff8-20c2-df2c25957f59@intel.com> Date: Tue, 13 Jun 2017 16:32:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] mlx debug build error with clang 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, 13 Jun 2017 15:32:08 -0000 Hi Adrien, Nelio, I am getting following build error [1] with clang [2] when debug enabled for mlx4 and mlx5. This started after I update my box, not sure what triggered this. Can you please help fixing this? Thanks, ferruh [1] .../drivers/net/mlx4/mlx4_flow.c:731:3: error: use of GNU statement expression extension [-Werror,-Wgnu-statement-expression] claim_zero(ibv_destroy_qp(fdq->qp)); ^ .../drivers/net/mlx4/mlx4.h:185:25: note: expanded from macro 'claim_zero' #define claim_zero(...) assert((__VA_ARGS__) == 0) ^ /usr/include/assert.h:95:6: note: expanded from macro 'assert' ({ \ ^ .... .../drivers/net/mlx5/mlx5_fdir.c:278:2: error: use of GNU statement expression extension [-Werror,-Wgnu-statement-expression] assert(((uint8_t *)attr + sizeof(*attr)) == (uint8_t *)spec_offset); ^ /usr/include/assert.h:95:6: note: expanded from macro 'assert' ({ \ ^ [Many of similar ...] [2] target: x86_64-native-linuxapp-clang clang version 4.0.0 (tags/RELEASE_400/final)