-
Notifications
You must be signed in to change notification settings - Fork 44
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
GCC 9: special_values_formatter.hpp:43:16: error: 'strlen' argument missing terminating nul #29
Comments
That's an issue with the built-in boost library. Boost is not yet testing with gcc 9. You could add |
Hmm Fedora compiles boost with GCC9[1], I don't see Fedora using this option [2] or any patches to fix this. Using the suggested compiler option makes it compile without any further errors, though. Build log: https://kojipkgs.fedoraproject.org//packages/boost/1.69.0/2.fc30/data/logs/x86_64/build.log [1] https://koji.fedoraproject.org/koji/buildinfo?buildID=1181814 |
I've updated the built-in boost to 1.69.0. Perhaps that works without |
Seems like new version requires additional header I had to install.
After I've installed that still the same error showed up.
|
I fixed the You noted that Fedora does not add A different place but, it's the same error. Building the boost package does not actually build much of boost. Boost is mostly C++ header files that get compiled only when used from other programs. So Fedora has the same problem and it's not fixed there either. |
Hmm turns out |
Yes, I use |
…iling error on gcc9 Add "-Wno-stringop-overflow" option to avoid the following error: orch.cpp: In member function 'ref_resolve_status Orch::resolveFieldRefArray(type_map&, const string&, swss::KeyOpFieldsValuesTuple&, std::vector<long unsigned int>&, std::string&)': orch.cpp:609:41: error: 'strlen' argument missing terminating nul [-Werror=stringop-overflow=] 609 | object_name_list += string(&list_item_delimiter); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from orch.cpp:6: orch.h:25:12: note: referenced argument declared here 25 | const char list_item_delimiter = ','; | ^~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors According to CauldronDevelopmentLLC/cbang#29, this is an error from boost and can be suppressed by using this option Signed-off-by: Stephen Sun <[email protected]>
This happens with GCC9, on cbang commit fdd8867
The text was updated successfully, but these errors were encountered: