g++ -DHAVE_CONFIG_H -I. -I.. -I ../lib -I .. -I ../warmrestart -I flex_counter -I debug_counter -g -DNDEBUG -std=c++14 -Wall -fPIC -Wno-write-strings -I/usr/include/libnl3 -I/usr/include/swss -Werror -Wno-reorder -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Wextra -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Winvalid-pch -Wlong-long -Wmissing-field-initializers -Wmissing-format-attribute -Wno-aggregate-return -Wno-padded -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wstack-protector -Wstrict-aliasing=3 -Wswitch -Wswitch-default -Wunreachable-code -Wunused -Wvariadic-macros -Wno-switch-default -Wno-long-long -Wno-redundant-decls -I /usr/include/sai -g -O2 -MT orchagent-copporch.o -MD -MP -MF .deps/orchagent-copporch.Tpo -c -o orchagent-copporch.o `test -f 'copporch.cpp' || echo './'`copporch.cpp
mv -f .deps/orchagent-intfsorch.Tpo .deps/orchagent-intfsorch.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I ../lib -I .. -I ../warmrestart -I flex_counter -I debug_counter -g -DNDEBUG -std=c++14 -Wall -fPIC -Wno-write-strings -I/usr/include/libnl3 -I/usr/include/swss -Werror -Wno-reorder -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Wextra -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Winvalid-pch -Wlong-long -Wmissing-field-initializers -Wmissing-format-attribute -Wno-aggregate-return -Wno-padded -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wstack-protector -Wstrict-aliasing=3 -Wswitch -Wswitch-default -Wunreachable-code -Wunused -Wvariadic-macros -Wno-switch-default -Wno-long-long -Wno-redundant-decls -I /usr/include/sai -g -O2 -MT orchagent-tunneldecaporch.o -MD -MP -MF .deps/orchagent-tunneldecaporch.Tpo -c -o orchagent-tunneldecaporch.o `test -f 'tunneldecaporch.cpp' || echo './'`tunneldecaporch.cpp
copporch.cpp: In member function 'bool CoppOrch::getAttribsFromTrapGroup(std::vector<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >&, std::vector<_sai_attribute_t>&, std::vector<_sai_attribute_t>&, std::vector<_sai_attribute_t>&, std::vector<_sai_attribute_t>&)':
copporch.cpp:1041:20: error: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Werror=stringop-truncation]
1041 | strncpy(attr.value.chardata, fvValue(*i).c_str(),
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1042 | sizeof(attr.value.chardata));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
copporch.cpp:1033:20: error: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Werror=stringop-truncation]
1033 | strncpy(attr.value.chardata, fvValue(*i).c_str(),
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1034 | sizeof(attr.value.chardata));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:812: orchagent-copporch.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/orchagent-tunneldecaporch.Tpo .deps/orchagent-tunneldecaporch.Po
mv -f .deps/orchagent-fgnhgorch.Tpo .deps/orchagent-fgnhgorch.Po
portsorch.cpp: In member function 'bool PortsOrch::createVlanHostIntf(swss::Port&, std::string)':
portsorch.cpp:2140:12: error: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Werror=stringop-truncation]
2140 | strncpy(attr.value.chardata, hostif_name.c_str(), sizeof(attr.value.chardata));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:770: orchagent-portsorch.o] Error 1
make[2]: Leaving directory '/root/sonic-swss/orchagent'
make[1]: *** [Makefile:412: all-recursive] Error 1
make[1]: Leaving directory '/root/sonic-swss'
make: *** [Makefile:344: all] Error 2
root@2f8bff27b814:~/sonic-swss#