You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Type mismatch error encountered when compiling with lto turned on:
/var/tmp/portage/app-i18n/librime-1.12.0/work/librime-1.12.0/src/rime_api.h:249:15: error: ‘RimeRegisterModule’ violate
s the C++ One Definition Rule [-Werror=odr]
249 | RIME_API Bool RimeRegisterModule(RimeModule* module);
| ^
/var/tmp/portage/app-i18n/librime-1.12.0/work/librime-1.12.0/src/rime_api.cc:37:15: note: return value type mismatch
37 | RIME_API Bool RimeRegisterModule(RimeModule* module) {
| ^
/var/tmp/portage/app-i18n/librime-1.12.0/work/librime-1.12.0/src/rime_api.cc:37:15: note: type ‘int’ should match type ‘bool’
/var/tmp/portage/app-i18n/librime-1.12.0/work/librime-1.12.0/src/rime_api.cc:37:15: note: ‘RimeRegisterModule’ was previously declared here
/var/tmp/portage/app-i18n/librime-1.12.0/work/librime-1.12.0/src/rime_api.cc:37:15: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
lto1: some warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status
There are multiple definitions of Bool in the code:
src/rime_api.h
42:#define Bool int
src/rime_api_stdbool.h
14:#define Bool bool
Describe the bug
Type mismatch error encountered when compiling with lto turned on:
There are multiple definitions of Bool in the code:
To Reproduce
Steps to reproduce the bug:
Expected behavior
Support to enable LTO compilation
Package:
The text was updated successfully, but these errors were encountered: