From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nbfkord-smmo01.seg.att.com (nbfkord-smmo01.seg.att.com [209.65.160.76]) by dpdk.org (Postfix) with ESMTP id DDD0E2A62 for ; Tue, 17 Jan 2017 15:59:48 +0100 (CET) Received: from unknown [193.34.186.16] (EHLO webmail.solarflare.com) by nbfkord-smmo01.seg.att.com(mxl_mta-7.2.4-7) over TLS secured channel with ESMTP id 3613e785.0.9064.00-2347.20471.nbfkord-smmo01.seg.att.com (envelope-from ); Tue, 17 Jan 2017 14:59:49 +0000 (UTC) X-MXL-Hash: 587e316539879535-44062ac5059e5724980ff9872da774f9da9f1b26 Received: from [192.168.38.17] (84.52.89.52) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Tue, 17 Jan 2017 14:59:43 +0000 To: "dev@dpdk.org" From: Andrew Rybchenko CC: Rasesh Mody , Harish Patil Message-ID: <1369b769-d822-1a3f-e2de-57c3cd211512@solarflare.com> Date: Tue, 17 Jan 2017 17:59:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [84.52.89.52] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22828.003 X-TM-AS-Result: No-0.154200-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-AnalysisOut: [v=2.1 cv=BNm12QkG c=1 sm=1 tr=0 a=8P+NB+fYZDP74ap4g4d9Kw==] X-AnalysisOut: [:17 a=RB3BGLmKESwA:10 a=IkcTkHD0fZMA:10 a=IgFoBzBjUZAA:10 ] X-AnalysisOut: [a=vu3Z6KRHP30PLKeMkJUA:9 a=QEXdDO2ut3YA:10] X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [193.34.186.16] Subject: [dpdk-dev] net/qede/base: build is broken on FreeBSD 11.0 with clang 3.8.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: Tue, 17 Jan 2017 14:59:49 -0000 Hi, build is broken for me on FreeBSD 11.0. Just default config and gmake: == Build drivers/net/qede CC base/ecore_dev.o CC base/ecore_hw.o CC base/ecore_cxt.o /tmp/dpdk-next-net/drivers/net/qede/base/ecore_cxt.c:1257:2: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] SET_FIELD(cdu_params, CDUC_NCIB, elems_per_page); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp//dpdk-next-net/drivers/net/qede/base/ecore.h:82:27: note: expanded from macro 'SET_FIELD' (value) &= ~(name##_MASK << name##_SHIFT); \ ~~~~~~~~~~~ ^ /tmp/dpdk-next-net/drivers/net/qede/base/ecore_cxt.c:1268:2: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] SET_FIELD(cdu_params, CDUT_TYPE0_CXT_SIZE, (cxt_size >> 3)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/dpdk-next-net/drivers/net/qede/base/ecore.h:82:27: note: expanded from macro 'SET_FIELD' (value) &= ~(name##_MASK << name##_SHIFT); \ ~~~~~~~~~~~ ^ /tmp/dpdk-next-net/drivers/net/qede/base/ecore_cxt.c:1280:2: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] SET_FIELD(cdu_params, CDUT_TYPE1_CXT_SIZE, (cxt_size >> 3)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/dpdk-next-net/drivers/net/qede/base/ecore.h:82:27: note: expanded from macro 'SET_FIELD' (value) &= ~(name##_MASK << name##_SHIFT); \ ~~~~~~~~~~~ ^ 3 errors generated. gmake[5]: *** [/tmp/dpdk-next-net/mk/internal/rte.compile-pre.mk:140: base/ecore_cxt.o] Error 1 gmake[4]: *** [/tmp/dpdk-next-net/mk/rte.subdir.mk:63: qede] Error 2 gmake[3]: *** [/tmp/dpdk-next-net/mk/rte.subdir.mk:63: net] Error 2 gmake[2]: *** [/tmp/dpdk-next-net/mk/rte.sdkbuild.mk:80: drivers] Error 2 gmake[1]: *** [/tmp/dpdk-next-net/mk/rte.sdkroot.mk:127: all] Error 2 gmake: *** [Makefile:12: all] Error 2 $ clang --version FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) Target: x86_64-unknown-freebsd11.0 Thread model: posix InstalledDir: /usr/bin Andrew.