[dpdk-dev] Error while compiling DPDK

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Mon Jul 14 10:27:31 CEST 2014


Hi Byeong-gi,

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of BYEONG-GI KIM
> Sent: Monday, July 14, 2014 5:44 AM
> To: Choi, Sy Jong; Dpdk-ovs at lists.01.org; dev at dpdk.org
> Subject: Re: [dpdk-dev] Error while compiling DPDK
> 
> Dear Choi,
> 
> Of course I used "export RTE_TARGET=x86_64-default-linuxapp-gcc" when I was
> trying to compile it.
> 
> By the way, the compilation went off to one more step, there was another
> error message though;
> 
> == Build lib/librte_eal/linuxapp/kni
>   LD
>  /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-
> gcc/build/lib/librte_eal/linuxapp/kni/built-in.o
>   CC [M]
>  /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-
> gcc/build/lib/librte_eal/linuxapp/kni/ixgbe_main.o
> /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-
> gcc/build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:
> In function 'ixgbe_del_mac_filter':
> /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-
> gcc/build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:525:3:
> error: implicit declaration of function 'compare_ether_addr'
> [-Werror=implicit-function-declaration]
>    if (!compare_ether_addr(addr, adapter->mac_table[i].addr) &&
>    ^
> cc1: all warnings being treated as errors
> make[10]: ***
> [/home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-
> gcc/build/lib/librte_eal/linuxapp/kni/ixgbe_main.o]
> Error 1
> make[9]: ***
> [_module_/home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-
> gcc/build/lib/librte_eal/linuxapp/kni]
> Error 2
> make[8]: *** [sub-make] Error 2
> make[7]: *** [rte_kni.ko] Error 2
> make[6]: *** [kni] Error 2
> make[5]: *** [linuxapp] Error 2
> make[4]: *** [librte_eal] Error 2
> make[3]: *** [lib] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [x86_64-default-linuxapp-gcc_install] Error 2
> make: *** [install] Error 2
> 
> Honestly, I've never been able to compile DPDK successfully... I had been
> trying to compile it on CentOS 6.5, and was failed. Then I changed OS from
> CentOS to Fedora, but there are still lots of errors.
> 
> Best regards
> 
> Byeong-Gi KIM

To compile DPDK, you don't need to export RTE_TARGET, that's just for apps.
Anyway, have you tried to compile the latest dpdk version? Just remember to 
use different target: x86_64-native-linuxapp-gcc.

Regards,
Pablo



More information about the dev mailing list