DPDK patches and discussions
 help / color / mirror / Atom feed
From: Laurent GUERBY <laurent@guerby.net>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] pktgen-2.9.13 not compiling with gcc 4.9 because of -Wdiscarded-qualifiers / 2.9.12 fine
Date: Sun, 10 Apr 2016 00:00:00 +0200	[thread overview]
Message-ID: <1460239200.25322.84.camel@guerby.net> (raw)

Hi,

pktgen-2.9.13 is not compiling with gcc 4.9, see below

2.9.12 is compiling fine with gcc 4.9, so looks like new
IPv6 code recently added is the culprit.

I think -Wdiscarded-qualifiers is available only with gcc 5+ 
https://gcc.gnu.org/gcc-5/changes.html

Sincerely,

Laurent

root@dpdk3:~/pktgen-2.9.13# make
== lib
== common
  CC wr_copyright_info.o
  CC wr_port_config.o
  CC wr_core_info.o
  CC wr_lscpu.o
  CC wr_utils.o
  CC wr_coremap.o
  CC wr_pcap.o
In file included from /root/pktgen-2.9.13/lib/common/wr_pcap.c:122:0:
/root/pktgen-2.9.13/lib/common/wr_inet.h:755:9: error: unknown option
after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
 #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
         ^
/root/pktgen-2.9.13/lib/common/wr_inet.h: In function ‘inet_ntop6’:
/root/pktgen-2.9.13/lib/common/wr_inet.h:758:2: error: return discards
‘const’ qualifier from pointer target type [-Werror]
  return inet_ntop(AF_INET6, ip6, buff, len);
  ^
cc1: all warnings being treated as errors
/root/dpdk-2.2.0/mk/internal/rte.compile-pre.mk:126: recipe for target
'wr_pcap.o' failed
make[3]: *** [wr_pcap.o] Error 1
/root/dpdk-2.2.0/mk/rte.extlib.mk:44: recipe for target 'all' failed
make[2]: *** [all] Error 2
/root/dpdk-2.2.0/mk/rte.extsubdir.mk:46: recipe for target 'common'
failed
make[1]: *** [common] Error 2
/root/dpdk-2.2.0/mk/rte.extsubdir.mk:46: recipe for target 'lib' failed
make: *** [lib] Error 2

             reply	other threads:[~2016-04-09 22:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-09 22:00 Laurent GUERBY [this message]
2016-04-10  4:59 ` Wiles, Keith
2016-04-10  9:25   ` Laurent GUERBY
2016-04-10 17:47     ` Wiles, Keith

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=1460239200.25322.84.camel@guerby.net \
    --to=laurent@guerby.net \
    --cc=dev@dpdk.org \
    /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).