public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); }
@ 2021-01-02  1:05 Hongyi Zhao
  2021-01-02 10:06 ` Jonathan Wakely
  0 siblings, 1 reply; 3+ messages in thread
From: Hongyi Zhao @ 2021-01-02  1:05 UTC (permalink / raw)
  To: gcc-help

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?

Regards,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); }
  2021-01-02  1:05 error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); } Hongyi Zhao
@ 2021-01-02 10:06 ` Jonathan Wakely
  2021-01-02 13:08   ` Hongyi Zhao
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Wakely @ 2021-01-02 10:06 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: gcc-help

On Sat, 2 Jan 2021, 01:06 Hongyi Zhao via Gcc-help, <gcc-help@gcc.gnu.org>
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@gmail.com>
> Theory and Simulation of Materials
> Hebei Polytechnic University of Science and Technology engineering
> NO. 552 North Gangtie Road, Xingtai, China
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); }
  2021-01-02 10:06 ` Jonathan Wakely
@ 2021-01-02 13:08   ` Hongyi Zhao
  0 siblings, 0 replies; 3+ messages in thread
From: Hongyi Zhao @ 2021-01-02 13:08 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

On Sat, Jan 2, 2021 at 6:06 PM Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
>
>
> On Sat, 2 Jan 2021, 01:06 Hongyi Zhao via Gcc-help, <gcc-help@gcc.gnu.org> 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.

Thanks a lot for your analysis. I've opened the issue
<https://github.com/fcitx/libime/issues/19> on GitHub but there is
still no reply from the author.

BR,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-02 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-02  1:05 error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); } Hongyi Zhao
2021-01-02 10:06 ` Jonathan Wakely
2021-01-02 13:08   ` Hongyi Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).