DPDK usage discussions
 help / color / mirror / Atom feed
* Failing to parse pci device
@ 2025-04-08 16:34 David Aldrich
  2025-04-08 16:51 ` David Aldrich
  0 siblings, 1 reply; 3+ messages in thread
From: David Aldrich @ 2025-04-08 16:34 UTC (permalink / raw)
  To: users

Hi
I am trying to build a legacy application with DPDK 19.11.14. It links
successfully but fails to parse the whitelisted pci device at runtime:

EAL parameters: phy_app --proc-type=primary --file-prefix wls -w 0000:43:00.1
EAL: Detected 64 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: failed to parse device "0000:43:00.1"
EAL: Unable to parse device '0000:43:00.1'

I think this suggests that the rte_bus_pci library is not loaded?

I suspect my linker command is incorrect. I am using CMake and I
detect the dpdk install using pkg-config. My linker directive is:

target_link_libraries(testApp PRIVATE
    -Wl,--start-group
    -lpthread
    -lrt
    -lhugetlbfs
    -Wl,-lm
    -Wl,-lnuma
    -L${WLS_LIB_PATH}
    -lwls
    -L${_dpdk_lib_path}
    -Wl,--whole-archive
    ${DPDK_STATIC_LDFLAGS}   # DPDK libraries - static linking
    -Wl,--no-whole-archive
    -Wl,--end-group
)

I don't understand well the linker directives such as 'start-group'
and 'whole-archive'.  Please could someone review the
target_link_libraries directive above and suggest what may be wrong?

I should mention that the DPDK 23.11 driver is running on the target
server, but I get a similar parse error if I build with DPDK 23.11.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-09 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-08 16:34 Failing to parse pci device David Aldrich
2025-04-08 16:51 ` David Aldrich
2025-04-09 17:24   ` David Aldrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).