DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Fan, ChangruX" <changrux.fan@intel.com>
To: "stephen@networkplumber.org" <stephen@networkplumber.org>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] Failed to compile the dpdk on FreeBSD10.1
Date: Wed, 29 Jul 2015 05:59:09 +0000	[thread overview]
Message-ID: <84799DAADE9E2A44834F0D0FF8A61A911CC93F6A@SHSMSX101.ccr.corp.intel.com> (raw)

Hi Stephen,


      When I compile the newest dpdk, I meet these error info. Please check.


[root@dpdk-test36 ~/dpdk]# gmake install T=x86_64-native-bsdapp-gcc CC=gcc48

================== Installing x86_64-native-bsdapp-gcc Configuration done == Build lib == Build lib/librte_compat

  SYMLINK-FILE include/rte_compat.h

== Build lib/librte_eal

== Build lib/librte_eal/common

  SYMLINK-FILE include/generic/rte_atomic.h

  SYMLINK-FILE include/generic/rte_byteorder.h

  SYMLINK-FILE include/generic/rte_cycles.h

  SYMLINK-FILE include/generic/rte_prefetch.h

  SYMLINK-FILE include/generic/rte_spinlock.h

  SYMLINK-FILE include/generic/rte_memcpy.h

  SYMLINK-FILE include/generic/rte_cpuflags.h

  SYMLINK-FILE include/generic/rte_rwlock.h

  SYMLINK-FILE include/rte_branch_prediction.h

  SYMLINK-FILE include/rte_common.h

  SYMLINK-FILE include/rte_debug.h

  SYMLINK-FILE include/rte_eal.h

  SYMLINK-FILE include/rte_errno.h

  SYMLINK-FILE include/rte_launch.h

  SYMLINK-FILE include/rte_lcore.h

  SYMLINK-FILE include/rte_log.h

  SYMLINK-FILE include/rte_memory.h

  SYMLINK-FILE include/rte_memzone.h

  SYMLINK-FILE include/rte_pci.h

  SYMLINK-FILE include/rte_pci_dev_ids.h

  SYMLINK-FILE include/rte_per_lcore.h

  SYMLINK-FILE include/rte_random.h

  SYMLINK-FILE include/rte_tailq.h

  SYMLINK-FILE include/rte_interrupts.h

  SYMLINK-FILE include/rte_alarm.h

  SYMLINK-FILE include/rte_string_fns.h

  SYMLINK-FILE include/rte_version.h

  SYMLINK-FILE include/rte_eal_memconfig.h

  SYMLINK-FILE include/rte_malloc_heap.h

  SYMLINK-FILE include/rte_hexdump.h

  SYMLINK-FILE include/rte_devargs.h

  SYMLINK-FILE include/rte_dev.h

  SYMLINK-FILE include/rte_pci_dev_feature_defs.h

  SYMLINK-FILE include/rte_pci_dev_features.h

  SYMLINK-FILE include/rte_malloc.h

  SYMLINK-FILE include/rte_byteorder.h

  SYMLINK-FILE include/rte_atomic.h

  SYMLINK-FILE include/rte_byteorder_64.h

  SYMLINK-FILE include/rte_cpuflags.h

  SYMLINK-FILE include/rte_rtm.h

  SYMLINK-FILE include/rte_atomic_64.h

  SYMLINK-FILE include/rte_byteorder_32.h

  SYMLINK-FILE include/rte_prefetch.h

  SYMLINK-FILE include/rte_vect.h

  SYMLINK-FILE include/rte_atomic_32.h

  SYMLINK-FILE include/rte_spinlock.h

  SYMLINK-FILE include/rte_cycles.h

  SYMLINK-FILE include/rte_memcpy.h

  SYMLINK-FILE include/rte_rwlock.h

== Build lib/librte_eal/bsdapp

== Build lib/librte_eal/bsdapp/eal

  CC eal.o

  CC eal_memory.o

  CC eal_hugepage_info.o

  CC eal_thread.o

  CC eal_log.o

  CC eal_pci.o

/root/dpdk/lib/librte_eal/bsdapp/eal/eal_pci.c: In function 'rte_eal_pci_write_config':

/root/dpdk/lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual]

   .pi_data = *(u_int32_t *)buf,

               ^

/root/dpdk/lib/librte_eal/bsdapp/eal/eal_pci.c:462:2: error: passing argument 1 of 'memcpy' makes pointer from integer without a cast [-Werror]

  memcpy(pi.pi_data, buf, len);

  ^

In file included from /root/dpdk/lib/librte_eal/bsdapp/eal/eal_pci.c:37:0:

/usr/include/string.h:62:7: note: expected 'void *' but argument is of type 'u_int32_t'

void *memcpy(void * __restrict, const void * __restrict, size_t);

       ^

cc1: all warnings being treated as errors

/root/dpdk/mk/internal/rte.compile-pre.mk:126: recipe for target 'eal_pci.o' failed

gmake[7]: *** [eal_pci.o] Error 1

/root/dpdk/mk/rte.subdir.mk:61: recipe for target 'eal' failed

gmake[6]: *** [eal] Error 2

/root/dpdk/mk/rte.subdir.mk:61: recipe for target 'bsdapp' failed

gmake[5]: *** [bsdapp] Error 2

/root/dpdk/mk/rte.subdir.mk:61: recipe for target 'librte_eal' failed

gmake[4]: *** [librte_eal] Error 2

/root/dpdk/mk/rte.sdkbuild.mk:93: recipe for target 'lib' failed

gmake[3]: *** [lib] Error 2

/root/dpdk/mk/rte.sdkroot.mk:124: recipe for target 'all' failed

gmake[2]: *** [all] Error 2

/root/dpdk/mk/rte.sdkinstall.mk:58: recipe for target 'x86_64-native-bsdapp-gcc_install' failed

gmake[1]: *** [x86_64-native-bsdapp-gcc_install] Error 2

/root/dpdk/mk/rte.sdkroot.mk:102: recipe for target 'install' failed

gmake: *** [install] Error 2



thanks

changru

                 reply	other threads:[~2015-07-29  5:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=84799DAADE9E2A44834F0D0FF8A61A911CC93F6A@SHSMSX101.ccr.corp.intel.com \
    --to=changrux.fan@intel.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.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).