Bug 194072 - [NEW PORT] net/dpdk: Software libraries for packet processing
Summary: [NEW PORT] net/dpdk: Software libraries for packet processing
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-01 14:59 UTC by Bruce Richardson
Modified: 2014-10-16 06:17 UTC (History)
2 users (show)

See Also:


Attachments
port for dpdk-1.7.1 (27.12 KB, text/plain)
2014-10-01 14:59 UTC, Bruce Richardson
no flags Details
Shar file for DPDK 1.7.1 port - updated [v2] (27.21 KB, text/plain)
2014-10-06 10:01 UTC, Bruce Richardson
no flags Details
vanilla modified version (23.51 KB, text/plain)
2014-10-15 15:11 UTC, Vanilla I. Shu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Richardson 2014-10-01 14:59:33 UTC
Created attachment 147886 [details]
port for dpdk-1.7.1

Find attached a new port for the Intel DPDK software libraries. These libraries are to enable packet processing applications.

It consists of a set of polling mode drivers (PMD) which can be used to pull
network packets directly from a Network Interface Card (NIC), as well as
other libraries to assist in the processing of those packets.
Comment 1 Vanilla I. Shu freebsd_committer freebsd_triage 2014-10-02 10:08:42 UTC
I got following error, please help to check.

----
nat [/home/dpdk] -root- make
===>  License BSD3CLAUSE accepted by the user
===>   dpdk-1.7.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by dpdk-1.7.1 for building
===>  Extracting for dpdk-1.7.1
=> SHA256 Checksum OK for dpdk-1.7.1.tar.gz.
===>  Patching for dpdk-1.7.1
===>   dpdk-1.7.1 depends on executable: gmake - found
===>  Configuring for dpdk-1.7.1
===>  Building for dpdk-1.7.1
gmake[1]: Entering directory `/home/tmp/home/dpdk/work/dpdk-1.7.1'
================== Installing x86_64-native-bsdapp-clang
cpp: error: unknown argument: '-fdirectives-only'
cp: /home/tmp/home/dpdk/work/dpdk-1.7.1/x86_64-native-bsdapp-clang/.config_tmp: No such file or directory
cp: /home/tmp/home/dpdk/work/dpdk-1.7.1/x86_64-native-bsdapp-clang/.config_tmp: No such file or directory
grep: /home/tmp/home/dpdk/work/dpdk-1.7.1/x86_64-native-bsdapp-clang/.config: No such file or directory
/home/tmp/home/dpdk/work/dpdk-1.7.1/mk/rte.sdkdepdirs.mk:33: *** "need a make config first".  Stop.
gmake[5]: *** [depdirs] Error 2
gmake[4]: *** [config] Error 2
gmake[3]: *** [config] Error 2
gmake[2]: *** [x86_64-native-bsdapp-clang_install] Error 2
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/home/tmp/home/dpdk/work/dpdk-1.7.1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /home/dpdk
Comment 2 Bruce Richardson 2014-10-03 12:48:52 UTC
The error is caused by the unexpected flag to the cpp call. What FreeBSD version are you seeing this error on, and are there any extra environmental flags set that would affect this? In my testing, I do see the unknown flag reported, but only as a warning and the rest of the build works fine thereafter.
Comment 3 Bruce Richardson 2014-10-03 12:59:25 UTC
(In reply to Vanilla I. Shu from comment #1)
> I got following error, please help to check

I believe the following addition to the makefile can fix this error. Can you please confirm for me?

--- ./dpdk/Makefile     2014-10-03 13:58:36.000000000 +0100
+++ /tmp/dpdk-test/dpdk/Makefile        2014-10-03 13:56:06.000000000 +0100
@@ -28,6 +28,9 @@
 EXEC_FILES += app/testpmd
 EXEC_FILES += app/test

+post-patch:
+       @${REINPLACE_CMD} -e 's/-fdirectives-only//' ${WRKSRC}/mk/rte.sdkconfig.mk
+
 do-install:
        ${MKDIR} ${STAGEDIR}${DATADIR}/${RTE_TARGET}/app \
          ${STAGEDIR}${DATADIR}/${RTE_TARGET}/lib \
Comment 4 Bruce Richardson 2014-10-06 10:01:07 UTC
Created attachment 148027 [details]
Shar file for DPDK 1.7.1 port - updated [v2]

This v2 file includes the additional lines in the makefile to eliminate the warning/error on build. See comments on bug for description of issue and proposed fix.
Comment 5 Vanilla I. Shu freebsd_committer freebsd_triage 2014-10-15 15:11:06 UTC
Created attachment 148341 [details]
vanilla modified version
Comment 6 commit-hook freebsd_committer freebsd_triage 2014-10-16 06:00:56 UTC
A commit references this bug:

Author: vanilla
Date: Thu Oct 16 05:59:56 UTC 2014
New revision: 370970
URL: https://svnweb.freebsd.org/changeset/ports/370970

Log:
  Add dpdk 1.7.1, intel(R) DPDK: Software libraries for packet processing.

  PR:		ports/194072
  Submitted by:	bruce.richardson@intel.com

Changes:
  head/net/Makefile
  head/net/dpdk/
  head/net/dpdk/Makefile
  head/net/dpdk/distinfo
  head/net/dpdk/pkg-descr
  head/net/dpdk/pkg-message
  head/net/dpdk/pkg-plist