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 81A3937A6 for ; Fri, 14 Apr 2017 17:55:56 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Apr 2017 08:55:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,199,1488873600"; d="scan'208";a="87514007" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.140]) by orsmga005.jf.intel.com with SMTP; 14 Apr 2017 08:55:54 -0700 Received: by (sSMTP sendmail emulation); Fri, 14 Apr 2017 16:55:53 +0100 Date: Fri, 14 Apr 2017 16:55:53 +0100 From: Bruce Richardson To: dev@dpdk.org Message-ID: <20170414155552.GA24264@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.0 (2017-02-23) Subject: [dpdk-dev] clang compilation errors with clang 4.0 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: Fri, 14 Apr 2017 15:55:58 -0000 Hi all, just a heads-up that there are compilation errors showing up with compiling DPDK with clang 4.0 release. Here are some of the errors I am seeing. Volunteers to do patches for some of them welcome. Regards, /Bruce /home/bruce/dpdk.org/lib/librte_eal/common/eal_common_tailqs.c:92:24: warning: taking address of packed member 'qlock' of class or structure 'rte_mem_config' may result in an unaligned pointer value [-Waddress-of-packed-member] rte_rwlock_read_lock(&mcfg->qlock); ^~~~~~~~~~~ /home/bruce/dpdk.org/lib/librte_eventdev/rte_eventdev.c:371:6: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] if (!dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT) { ^ ~ /home/bruce/dpdk.org/lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31: warning: taking address of packed member 'src_addr' of class or structure 'ipv4_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] psd = (unaligned_uint64_t *)&ip_hdr->src_addr; ^~~~~~~~~~~~~~~~ /home/bruce/dpdk.org/lib/librte_vhost/vhost_user.c:1037:34: warning: taking address of packed member 'payload' of class or structure 'VhostUserMsg' may result in an unaligned pointer value [-Waddress-of-packed-member] vhost_user_set_vring_num(dev, &msg.payload.state); ^~~~~~~~~~~~~~~~~