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.
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
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.
(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 \
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.
Created attachment 148341 [details] vanilla modified version
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