Skip to contentSkip to conversation

Build errors with clang 17.0.3 and ASan

Bug 1313 [email protected] 1 participant 2 messages Nov 13, 2023 – Oct 28, 2024

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1313

            Bug ID: 1313
           Summary: Build errors with clang 17.0.3 and ASan
           Product: DPDK
           Version: 23.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

"""

$ meson --werror -Db_sanitize=address -Db_lundef=false build
$ ninja-build -C build

[..]

drivers/rte_bus_fslmc.pmd.c:4:12: error: redefinition of '_pmd_info'

    4 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_bus_fslmc.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_bus_fslmc.pmd.c:6:12: error: redefinition of '_pmd_info'
    6 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_bus_fslmc.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=

{\"name\": \"\", \"pci_ids\": []}";
| ^

[..]

drivers/rte_common_mlx5.pmd.c:4:12: error: redefinition of '_pmd_info'

    4 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_common_mlx5.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=

{\"name\": \"\", \"pci_ids\": []}";
| ^

[..]

drivers/rte_net_bnx2x.pmd.c:4:12: error: redefinition of '_pmd_info'

    4 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_net_bnx2x.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=

{\"name\": \"\", \"pci_ids\": []}";
| ^

[..]

drivers/rte_net_e1000.pmd.c:4:12: error: redefinition of '_pmd_info'

    4 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_net_e1000.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_net_e1000.pmd.c:6:12: error: redefinition of '_pmd_info'
    6 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_net_e1000.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=

{\"name\": \"\", \"pci_ids\": []}";
| ^

[..]

drivers/rte_net_hns3.pmd.c:4:12: error: redefinition of '_pmd_info'

    4 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_net_hns3.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=

{\"name\": \"\", \"pci_ids\": []}";
| ^

[..]

drivers/rte_net_ice.pmd.c:4:12: error: redefinition of '_pmd_info'

    4 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_net_ice.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) = "PMD_INFO_STRING=

{\"name\": \"\", \"pci_ids\": []}";
| ^

[..]
"""

OS: Fedora 39
Meson: 1.2.3
Clang: 17.0.3 (Fedora 17.0.3-1.fc39)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1313

Ali Alnubani ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |[email protected]

--- Comment #4 from Ali Alnubani ([email protected]) --- Fixed in e1d8a879abac ("buildtools: fix build with clang 17 and ASan").

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.