From: discuss [mailto:[email protected]] On Behalf Of Wang, Alex Sent: Wednesday, September 2, 2015 7:06 AM To: [email protected]; [email protected] Cc: Wang, Alex Subject: [ovs-discuss] [OVS-DPDK] fail configure with dpdk lib
Hi Team, I am following INSTALL.DPDK.md and try to build a OVS environment with DPDK lib. But we encountered an error during compiling OVS with DPDK lib. Here are my steps and corresponding error info, could you please help to check any exception from DPDK end? Thanks a lot in advance! 1. Configure and install DPDK2.1.0 build a. CONFIG_RTE_BUILD_COMBINE_LIBS=y // to generate single lib file in DPDK b. CONFIG_RTE_LIBRTE_VHOST=y // to build DPDK with vhost lib c. make install T=x86_64-native-linuxapp-gcc // build and install the lib d. here are the lib generated, please help to confirm if we missed any specific for OVS requirement [cid:[email protected]] [kt] I see you are using DPDK 2.1.0 - did you pick up the patch to enable DPDK 2.1.0 support in OVS? [kt] http://openvswitch.org/pipermail/dev/2015-September/059542.html [kt] The combined lib name has changed in DPDK 2.1.0, so you could be hitting that problem [kt] Also at the tip of master you'll need this patch [kt] http://openvswitch.org/pipermail/dev/2015-September/059541.html [kt] Assuming there is no problem with merges of these, then these are only temporary steps. 2. try to configure and build OVS with DPDK lib involved a. ./boot.sh b. ./configure --with-dpdk=$DPDK_BUILD CFLAGS="-g -O2 -Wno-cast-align" // $DPDK_BUILD is pointing to DPDK lib path [kt] Just to confirm this should point to the dpdk build dir so it would be <your_path>/dpdk-2.1.0/x86_64-native-linuxapp-gcc c. The error comes out during compiling, cannot link with dpdk. config.log(full log) is attached in mail, also list all the *.a files in $RTE_SDK/x86_64-native-linuxapp-gcc/lib/ as below. Very appreciate if you can figure out any mismatch in DPDK libraries for OVS. [cid:[email protected]] ........................... ........................... | /* end confdefs.h. */ | #include <rte_config.h> | #include <rte_eal.h> | int | main () | { | int rte_argc; char ** rte_argv; | rte_eal_init(rte_argc, rte_argv); | ; | return 0; | } configure:18276: error: cannot link with dpdk Best Regards, Alex
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
