On Sat, 2 Jan 2021, 01:06 Hongyi Zhao via Gcc-help, <gcc-help@xxxxxxxxxxx> wrote: > On Ubuntu 20.04, I try to compile the git master version of libime > https://github.com/fcitx/libime but failed. See following for more > detailed info: > > $ lsb_release -a > No LSB modules are available. > Distributor ID: Ubuntu > Description: Ubuntu 20.04 LTS > Release: 20.04 > Codename: focal > > $ git clone https://github.com/fcitx/libime.git libime.git > $ cd libime.git > $ mkdir build && cd $_ > $ cmake .. > $ env all_proxy=http://127.0.0.1:8080 make -j 44 > [ 28%] Built target kenlm > [ 28%] Building CXX object > src/libime/core/CMakeFiles/IMECore.dir/inputbuffer.cpp.o > In file included from > /home/werner/Public/repo/ > github.com/fcitx/libime.git/src/libime/core/inputbuffer.cpp:6: > /home/werner/Public/repo/ > github.com/fcitx/libime.git/src/libime/core/inputbuffer.h: > In member function ‘bool libime::InputBuffer::type(std::string_view)’: > /home/werner/Public/repo/ > github.com/fcitx/libime.git/src/libime/core/inputbuffer.h:49:48: > error: void value not ignored as it ought to be > 49 | bool type(std::string_view s) { return type(s.data(), s.length()); } > | ~~~~^~~~~~~~~~~~~~~~~~~~~~ > make[2]: *** [src/libime/core/CMakeFiles/IMECore.dir/build.make:102: > src/libime/core/CMakeFiles/IMECore.dir/inputbuffer.cpp.o] Error 1 > make[1]: *** [CMakeFiles/Makefile2:816: > src/libime/core/CMakeFiles/IMECore.dir/all] Error 2 > make: *** [Makefile:141: all] Error 2 > > Any hints for solving this problem? > Check the dependencies are correct. Maybe the master branch of that library needs a newer version of fcitx-utils/inputbuffer.h than you are using. It looks like a problem in the library's source code, not a problem with GCC. I assume you'll get an answer to the issue you opened in GitHub. > Regards, > -- > Assoc. Prof. Hongyi Zhao <hongyi.zhao@xxxxxxxxx> > Theory and Simulation of Materials > Hebei Polytechnic University of Science and Technology engineering > NO. 552 North Gangtie Road, Xingtai, China >