Skip to content

mtcp make issue #327

@jimmylikes

Description

@jimmylikes

Hi experts,

I got the issue at last step for mtcp build. When I run make for mtcp after configure successfully, I got the error "
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output may be truncated copying 1023 bytes from a string of length 1023 [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
"

I tried to update my gcc to gcc 10.3.0, still the same error, please anyone saw the same issue before?

My environment is:
os: Ubuntu 20.04.4 LTS
kernel : 5.15.0-43-generic
compiler: gcc 10.3.0
dpdk : by default 18.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions