Bug 897 - [20.11.4-rc1] librte_eal/windows cross build failure with gcc 11 on Fedora 35
Summary: [20.11.4-rc1] librte_eal/windows cross build failure with gcc 11 on Fedora 35
Status: CONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: other (show other bugs)
Version: 20.11
Hardware: All Linux
: Normal normal
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2021-12-08 17:29 CET by Ali Alnubani
Modified: 2021-12-09 12:12 CET (History)
1 user (show)



Attachments

Description Ali Alnubani 2021-12-08 17:29:55 CET
"""
$ meson --werror --buildtype=debugoptimized --cross-file config/x86/cross-mingw -Dexamples=helloworld /tmp/build
[..]
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/../../../../x86_64-w64-mingw32/bin/ld: lib/librte_eal.a.p/librte_eal_windows_eal_mp.c.obj: in function `eal_dev_hotplug_request_to_primary':
/tmp/build/../../root/dpdk/lib/librte_eal/windows/eal_mp.c:111: multiple definition of `eal_dev_hotplug_request_to_primary'; lib/librte_eal.a.p/librte_eal_common_hotplug_mp.c.obj:/tmp/build/../../root/dpdk/lib/librte_eal/common/hotplug_mp.c:366: first defined here
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/../../../../x86_64-w64-mingw32/bin/ld: lib/librte_eal.a.p/librte_eal_windows_eal_mp.c.obj:/tmp/build/../../root/dpdk/lib/librte_eal/windows/eal_mp.c:111: multiple definition of `eal_dev_hotplug_request_to_secondary'; lib/librte_eal.a.p/librte_eal_common_hotplug_mp.c.obj:/tmp/build/../../root/dpdk/lib/librte_eal/common/hotplug_mp.c:394: first defined here
collect2: error: ld returned 1 exit status
"""

C compiler for the host machine: x86_64-w64-mingw32-gcc (gcc 11.2.1 "x86_64-w64-mingw32-gcc (GCC) 11.2.1 20210728 (Fedora MinGW 11.2.1-3.fc35)")
Comment 1 Dmitry Kozlyuk 2021-12-08 18:04:40 CET
Should be fixed by http://inbox.dpdk.org/stable/20211207141644.369624-1-dmitry.kozliuk@gmail.com/T/#u along with https://bugs.dpdk.org/show_bug.cgi?id=894 (not exactly a duplicate).
Comment 2 Ali Alnubani 2021-12-09 12:12:22 CET
(In reply to Dmitry Kozlyuk from comment #1)
> Should be fixed by
> http://inbox.dpdk.org/stable/20211207141644.369624-1-dmitry.kozliuk@gmail.
> com/T/#u along with https://bugs.dpdk.org/show_bug.cgi?id=894 (not exactly a
> duplicate).

Verified the patch fixes my issue, thanks Dmitry.

Note You need to log in before you can comment on or make changes to this bug.