usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Building UHD with DPDK support

J
Josh
Mon, Sep 23, 2019 4:35 PM

Hello,

I'm in the process of building UHD with DPDK support, and run into the
following build error:

../lib/libuhd.so.3.15.0: undefined reference to numa_available' ../lib/libuhd.so.3.15.0: undefined reference to get_mempolicy'
../lib/libuhd.so.3.15.0: undefined reference to numa_set_localalloc' ../lib/libuhd.so.3.15.0: undefined reference to numa_bitmask_free'
../lib/libuhd.so.3.15.0: undefined reference to set_mempolicy' ../lib/libuhd.so.3.15.0: undefined reference to numa_allocate_nodemask'
../lib/libuhd.so.3.15.0: undefined reference to `numa_set_preferred'

DPDK 17.11 is installed on my system from source, and CMake finds it, but
once I kick off the UHD build (either 3.14 or master) I get the errors
shown above when it is linking libraries to libuhd.

Any help would be appreciated.

Thanks,
Josh

Hello, I'm in the process of building UHD with DPDK support, and run into the following build error: ../lib/libuhd.so.3.15.0: undefined reference to `numa_available' ../lib/libuhd.so.3.15.0: undefined reference to `get_mempolicy' ../lib/libuhd.so.3.15.0: undefined reference to `numa_set_localalloc' ../lib/libuhd.so.3.15.0: undefined reference to `numa_bitmask_free' ../lib/libuhd.so.3.15.0: undefined reference to `set_mempolicy' ../lib/libuhd.so.3.15.0: undefined reference to `numa_allocate_nodemask' ../lib/libuhd.so.3.15.0: undefined reference to `numa_set_preferred' DPDK 17.11 is installed on my system from source, and CMake finds it, but once I kick off the UHD build (either 3.14 or master) I get the errors shown above when it is linking libraries to libuhd. Any help would be appreciated. Thanks, Josh
J
Josh
Tue, Sep 24, 2019 3:20 PM

Got further in getting UHD DPDK set up - to get past the UHD compilation
required setting up the DPDK configuration file and installing to
/usr/local/
CONFIG_RTE_BUILD_SHARED_LIB=y
sudo make install DESTDIR=/usr/local T=x86_64-native-linuxapp-gcc -j60

However, UHD is not able to gain access to the device.  I am guessing that
I don't have DPDK set up correctly, or my processor doesn't support some
required features.

uhd_rx_cfile -r 100000000 -N 100000000 -f 915000000
--args="addr=192.168.93.2,use_dpdk=1" tmp
[INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800;
UHD_3.14.1.1-3-g6a11a141
EAL: Detected 60 lcore(s)
EAL: Probing VFIO support...
EAL: Cannot obtain physical addresses: No such file or directory. Only vfio
will function.
EAL: Failed to create shared memory!
EAL: FATAL: Cannot init memory

EAL: Cannot init memory

On Mon, Sep 23, 2019 at 12:35 PM Josh jbmsdr@gmail.com wrote:

Hello,

I'm in the process of building UHD with DPDK support, and run into the
following build error:

../lib/libuhd.so.3.15.0: undefined reference to numa_available' ../lib/libuhd.so.3.15.0: undefined reference to get_mempolicy'
../lib/libuhd.so.3.15.0: undefined reference to numa_set_localalloc' ../lib/libuhd.so.3.15.0: undefined reference to numa_bitmask_free'
../lib/libuhd.so.3.15.0: undefined reference to set_mempolicy' ../lib/libuhd.so.3.15.0: undefined reference to numa_allocate_nodemask'
../lib/libuhd.so.3.15.0: undefined reference to `numa_set_preferred'

DPDK 17.11 is installed on my system from source, and CMake finds it, but
once I kick off the UHD build (either 3.14 or master) I get the errors
shown above when it is linking libraries to libuhd.

Any help would be appreciated.

Thanks,
Josh

Got further in getting UHD DPDK set up - to get past the UHD compilation required setting up the DPDK configuration file and installing to /usr/local/ CONFIG_RTE_BUILD_SHARED_LIB=y sudo make install DESTDIR=/usr/local T=x86_64-native-linuxapp-gcc -j60 However, UHD is not able to gain access to the device. I am guessing that I don't have DPDK set up correctly, or my processor doesn't support some required features. uhd_rx_cfile -r 100000000 -N 100000000 -f 915000000 --args="addr=192.168.93.2,use_dpdk=1" tmp [INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.14.1.1-3-g6a11a141 EAL: Detected 60 lcore(s) EAL: Probing VFIO support... EAL: Cannot obtain physical addresses: No such file or directory. Only vfio will function. EAL: Failed to create shared memory! EAL: FATAL: Cannot init memory EAL: Cannot init memory On Mon, Sep 23, 2019 at 12:35 PM Josh <jbmsdr@gmail.com> wrote: > Hello, > > I'm in the process of building UHD with DPDK support, and run into the > following build error: > > ../lib/libuhd.so.3.15.0: undefined reference to `numa_available' > ../lib/libuhd.so.3.15.0: undefined reference to `get_mempolicy' > ../lib/libuhd.so.3.15.0: undefined reference to `numa_set_localalloc' > ../lib/libuhd.so.3.15.0: undefined reference to `numa_bitmask_free' > ../lib/libuhd.so.3.15.0: undefined reference to `set_mempolicy' > ../lib/libuhd.so.3.15.0: undefined reference to `numa_allocate_nodemask' > ../lib/libuhd.so.3.15.0: undefined reference to `numa_set_preferred' > > DPDK 17.11 is installed on my system from source, and CMake finds it, but > once I kick off the UHD build (either 3.14 or master) I get the errors > shown above when it is linking libraries to libuhd. > > Any help would be appreciated. > > Thanks, > Josh > > >