Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mtcp make issue #327

Open
jimmylikes opened this issue Jul 23, 2022 · 2 comments
Open

mtcp make issue #327

jimmylikes opened this issue Jul 23, 2022 · 2 comments

Comments

@jimmylikes
Copy link

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

@MaximePerrinLivenais
Copy link

Use an older gcc version. I personally used the 7.5.0 version.

@jimmylikes
Copy link
Author

Use an older gcc version. I personally used the 7.5.0 version.

Thanks, gcc7.5 works for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants