mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.96k stars 432 forks source link

mtcp make issue #327

Open jimmylikes opened 1 year ago

jimmylikes commented 1 year ago

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 _builtinstrncpy_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 commented 1 year ago

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

jimmylikes commented 1 year ago

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

Thanks, gcc7.5 works for it.