DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andrew Rybchenko <arybchenko@solarflare.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: Rasesh Mody <rasesh.mody@cavium.com>,
	Harish Patil <harish.patil@cavium.com>
Subject: [dpdk-dev] net/qede/base: build is broken on FreeBSD 11.0 with clang 3.8.0
Date: Tue, 17 Jan 2017 17:59:38 +0300	[thread overview]
Message-ID: <1369b769-d822-1a3f-e2de-57c3cd211512@solarflare.com> (raw)

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.

             reply	other threads:[~2017-01-17 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-17 14:59 Andrew Rybchenko [this message]
2017-01-17 22:04 ` Thomas Monjalon
2017-01-17 22:06   ` Thomas Monjalon
2017-01-18  1:33 ` Mody, Rasesh
2017-01-18 20:45   ` Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1369b769-d822-1a3f-e2de-57c3cd211512@solarflare.com \
    --to=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=harish.patil@cavium.com \
    --cc=rasesh.mody@cavium.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).