I used "-k" instead of "-k0" (my make version does not seem to support "-k0". I get the following errors with GCC:

/home/vbox/lyxbuilds/master-clang/repo/src/tex2lyx/Parser.cpp:857:34: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, wchar_t) [with _Traits = std::char_traits<char>]’
  857 |   cerr << "ignoring a char: " << c << "\n";
      |                                  ^


/home/vbox/lyxbuilds/master-clang/repo/src/Buffer.cpp:1774:27: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, wchar_t) [with _Traits = std::char_traits<char>]’
 1774 |   oss << "0x" << hex << e.failed_char << dec;
      |                           ^~~~~~~~~~~


/home/vbox/lyxbuilds/master-clang/repo/src/Server.cpp: In lambda function:
/home/vbox/lyxbuilds/master-clang/repo/src/Server.cpp:869:40: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
  869 |   theApp()->registerSocketCallback(fd, [=](){
      |                                        ^


Clang gives the following:

/home/vbox/lyxbuilds/master-clang/repo/src/tex2lyx/Parser.cpp:857:31: error: overload resolution selected deleted operator '<<'
                cerr << "ignoring a char: " << c << "\n";
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~


/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/system_error:262:5:
note: candidate function template not viable: no known conversion from 'lyx::char_type' (aka 'wchar_t') to 'const std:: error_code' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
    ^


/home/vbox/lyxbuilds/master-clang/repo/src/Buffer.cpp:1774:22: error: overload resolution selected deleted operator '<<'
                oss << "0x" << hex << e.failed_char << dec;
                ~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~


/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/system_error:262:5:
note: candidate function template not viable: no known conversion from 'const lyx::char_type' (aka 'const wchar_t') to 'const std::error_code' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
    ^



(this one is a warning)
/home/vbox/lyxbuilds/master-clang/repo/src/LyXRC.cpp:2950:28: error: comparison between two arrays is deprecated; to compare array addresses, use unary '+' to decay operands to pointers [-Werror,-Wdeprecated- array-compare]
                || lyxrc_orig.font_sizes != lyxrc_new.font_sizes
                   ~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~


/home/vbox/lyxbuilds/master-clang/repo/src/tex2lyx/Parser.cpp:857:31: error: overload resolution selected deleted operator '<<'
                cerr << "ignoring a char: " << c << "\n";
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~

No problem if you can't take a look at all or any of these. Also, let me
know if for the next time you prefer for me to attach complete logs,
rather than just the error lines. Thanks for working on this, Yuriy!

Scott

I've fixed these errors (leaving warning fix for future), error lines are enough so no need in complete logs. Does it compiles on your system now?


Yuriy

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to