From: David Aldrich <david.aldrich.ntml@gmail.com>
To: users <users@dpdk.org>
Subject: Failing to parse pci device
Date: Tue, 8 Apr 2025 17:34:07 +0100 [thread overview]
Message-ID: <CAJK_iehWrB_Z_-NL5h3OTXF5MSx5P0+um29MjiE8w+MNBNtScw@mail.gmail.com> (raw)
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.
next reply other threads:[~2025-04-08 16:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 16:34 David Aldrich [this message]
2025-04-08 16:51 ` David Aldrich
2025-04-09 17:24 ` David Aldrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJK_iehWrB_Z_-NL5h3OTXF5MSx5P0+um29MjiE8w+MNBNtScw@mail.gmail.com \
--to=david.aldrich.ntml@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).