Is anyone successfully using DPDK with UHD 3.15.LTS?

The RHEL 7 repositories install DPDK 18.11, which UHD won't build with (UHD 
3.15.LTS requires 17.11 exactly; UHD master works with DPDK 18.11 but I want to 
use a LTS version). So I uninstalled the 18.11 DPDK packages and built 17.11 by 
hand; everything installed fine and seems to work on the DPDK end.

However, building UHD 3.15.LTS fails with many errors like those below.  I'm 
using:

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)

Any ideas? I might try installing and trying to build with a newer version of 
the compiler and see if that makes a difference.



In file included from 
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c:6:0:
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h: In 
function 'find_port':
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h:259:5: 
error: 'for' loop initial declarations are only allowed in C99 mode
     for (unsigned int i = 0; i < ctx->num_ports; i++) {
     ^
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h:259:5: 
note: use option -std=c99 or -std=gnu99 to compile your code
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c: In function 
'uhd_dpdk_port_init':
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c:122:9: 
warning: format '%llx' expects argument of type 'long long unsigned int', but 
argument 5 has type 'uint64_t' [-Wformat=]
         RTE_LOG(WARNING, EAL, "%d: Only supports RX offloads 0x%0llx\n", 
port->id, dev_info.rx_offload_capa);
         ^
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c:126:9: 
warning: format '%llx' expects argument of type 'long long unsigned int', but 
argument 5 has type 'uint64_t' [-Wformat=]
         RTE_LOG(WARNING, EAL, "%d: Only supports TX offloads 0x%0llx\n", 
port->id, dev_info.tx_offload_capa);
         ^
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c: In function 
'uhd_dpdk_init':
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c:291:5: 
error: 'for' loop initial declarations are only allowed in C99 mode
     for (size_t i = 0; i < ctx->num_ports; i++) {
     ^
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c: In function 
'uhd_dpdk_start':
/opt/third-party/uhd-3.15.0/host/lib/transport/uhd-dpdk/uhd_dpdk.c:314:5: 
error: 'for' loop initial declarations are only allowed in C99 mode
     for (int i = rte_get_next_lcore(-1, 1, 0);


Thanks,
Ryan

________________________________

The information contained in this message, and any attachments, may contain 
privileged and/or proprietary information that is intended solely for the 
person or entity to which it is addressed. Moreover, it may contain export 
restricted technical data controlled by Export Administration Regulations (EAR) 
or the International Traffic in Arms Regulations (ITAR). Any review, 
retransmission, dissemination, or re-export to foreign or domestic entities by 
anyone other than the intended recipient in accordance with EAR and/or ITAR 
regulations is prohibited.
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to