Skip to contentSkip to conversation

Build of hinic with GCC 10.0.1 fails on aarch64

dpdk-dev [email protected] 1 participant 2 messages Feb 11, 2020 – Mar 20, 2020

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 395
           Summary: Build of hinic with GCC 10.0.1 fails on aarch64
           Product: DPDK
           Version: 20.02
          Hardware: ARM
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

https://build.opensuse.org/build/home:bluca:dpdk/Fedora_Rawhide/aarch64/dpdk/_log

[ 399s] /home/abuild/rpmbuild/BUILD/dpdk-1581015204.2636c2a23/drivers/net/hinic/base/hinic_pmd_hwdev.c:
In function 'print_cable_info':
[ 399s] /home/abuild/rpmbuild/BUILD/dpdk-1581015204.2636c2a23/drivers/net/hinic/base/hinic_pmd_hwdev.c:1398:3:
error: 'snprintf' argument 4 may overlap destination object 'tmp_str' [-Werror=restrict]

[  399s]  1398 |   snprintf(tmp_str + strlen(tmp_str), (sizeof(tmp_str) - 1),
[  399s]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  399s]  1399 |     "%s, Temperature: %u", tmp_str,
[  399s]       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  399s]  1400 |     info->cable_temp);
[  399s]       |     ~~~~~~~~~~~~~~~~~
[  399s]
/home/abuild/rpmbuild/BUILD/dpdk-1581015204.2636c2a23/drivers/net/hinic/base/hinic_pmd_hwdev.c:1363:7:
note: destination object referenced by 'restrict'-qualified argument 1 was
declared here
[  399s]  1363 |  char tmp_str[512] = {0};
[  399s]       |       ^~~~~~~
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=395

Luca Boccassi ([email protected]) changed:

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

             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Luca Boccassi ([email protected]) --- Fixed in 20.05 by
https://git.dpdk.org/dpdk/commit/?id=ece8e4c262f8091361e9b261c4e4c6257d2b8bda

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