Kevin Neal via llvm-dev
2021-Oct-07 19:14 UTC
[llvm-dev] [llvm-cxxdump] Error reporting, build errors on FreeBSD 11.1
I'm seeing build failures in one file on FreeBSD 11.1. The obvious fix probably isn't the correct one since this file sees so little change. Hasn't there been a change to error reporting recently? <snip>/llvm/tools/llvm-cxxdump/Error.cpp:25:15: error: implicit instantiation of undefined template 'std::basic_string<char>' std::string message(int ev) const override { ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ <snip>/llvm/tools/llvm-cxxdump/Error.cpp:28:14: error: implicit instantiation of undefined template 'std::basic_string<char>' return "Success"; ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ <snip>/llvm/tools/llvm-cxxdump/Error.cpp:30:14: error: implicit instantiation of undefined template 'std::basic_string<char>' return "No such file."; ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ <snip>/llvm/tools/llvm-cxxdump/Error.cpp:32:14: error: implicit instantiation of undefined template 'std::basic_string<char>' return "Unrecognized file type."; ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ 4 errors generated. -- Kevin P. Neal SAS/C and SAS/C++ Compiler Compute Services SAS Institute, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211007/75545045/attachment.html>
Harald van Dijk via llvm-dev
2021-Oct-07 19:33 UTC
[llvm-dev] [llvm-cxxdump] Error reporting, build errors on FreeBSD 11.1
Hi, The obvious fix probably is correct: https://github.com/llvm/llvm-project/commit/f6fa95b77f33c3690e4201e505cb8dce1433abd9 was committed yesterday which removed <string> as an implicit include through one of the other headers, so this file should probably be updated to include <string> explicitly. On 07/10/2021 20:14, Kevin Neal via llvm-dev wrote:> I’m seeing build failures in one file on FreeBSD 11.1. The obvious fix > probably isn’t the correct one since this file sees so little change. > Hasn’t there been a change to error reporting recently? > <snip>/llvm/tools/llvm-cxxdump/Error.cpp:25:15: error: implicit > instantiation of undefined template 'std::basic_string<char>' > std::string message(int ev) const override { > ^ > /usr/include/c++/v1/iosfwd:193:32: note: template is declared here > class _LIBCPP_TEMPLATE_VIS basic_string; > ^ > <snip>/llvm/tools/llvm-cxxdump/Error.cpp:28:14: error: implicit > instantiation of undefined template 'std::basic_string<char>' > return "Success"; > ^ > /usr/include/c++/v1/iosfwd:193:32: note: template is declared here > class _LIBCPP_TEMPLATE_VIS basic_string; > ^ > <snip>/llvm/tools/llvm-cxxdump/Error.cpp:30:14: error: implicit > instantiation of undefined template 'std::basic_string<char>' > return "No such file."; > ^ > /usr/include/c++/v1/iosfwd:193:32: note: template is declared here > class _LIBCPP_TEMPLATE_VIS basic_string; > ^ > <snip>/llvm/tools/llvm-cxxdump/Error.cpp:32:14: error: implicit > instantiation of undefined template 'std::basic_string<char>' > return "Unrecognized file type."; > ^ > /usr/include/c++/v1/iosfwd:193:32: note: template is declared here > class _LIBCPP_TEMPLATE_VIS basic_string; > ^ > 4 errors generated. > -- > Kevin P. Neal > SAS/C and SAS/C++ Compiler > Compute Services > SAS Institute, Inc. > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >