Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 788727

Summary: app-i18n/librime-1.7.3 /.../table_translator.cc:83:25: error: ‘exp’ was not declared in this scope
Product: Gentoo Linux Reporter: yongxiang <tanekliang>
Component: Current packagesAssignee: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Status: RESOLVED FIXED    
Severity: normal CC: cjk, dlan, gentoo, ionen, tanekliang
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://github.com/rime/librime/commit/57cffcd
See Also: https://bugs.gentoo.org/show_bug.cgi?id=793926
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 763201    
Attachments: emerge --info
build.log
Patch for boost-1.76

Description yongxiang 2021-05-07 13:47:39 UTC
[95/119] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DRIME_BUILD_SHARED_LIBS -DRIME_EXPORTS -DRIME_EXTRA_MODULES=",Q(plugins)" -DRIME_VE
RSION=\"1.7.3\" -Isrc -I/tmp/portage/app-i18n/librime-1.7.3/work/librime-1.7.3/src -Iproto -O2 -pipe -march=native -ggdb -I/usr/include/u
tf8cpp -DNDEBUG -std=c++14 -fPIC -pthread -MD -MT src/CMakeFiles/rime.dir/rime/gear/table_translator.cc.o -MF src/CMakeFiles/rime.dir/rim
e/gear/table_translator.cc.o.d -o src/CMakeFiles/rime.dir/rime/gear/table_translator.cc.o -c /tmp/portage/app-i18n/librime-1.7.3/work/lib
rime-1.7.3/src/rime/gear/table_translator.cc
FAILED: src/CMakeFiles/rime.dir/rime/gear/table_translator.cc.o
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DRIME_BUILD_SHARED_LIBS -DRIME_EXPORTS -DRIME_EXTRA_MODULES=",Q(plugins)" -DRIME_VERSION=\"1
.7.3\" -Isrc -I/tmp/portage/app-i18n/librime-1.7.3/work/librime-1.7.3/src -Iproto -O2 -pipe -march=native -ggdb -I/usr/include/utf8cpp -D
NDEBUG -std=c++14 -fPIC -pthread -MD -MT src/CMakeFiles/rime.dir/rime/gear/table_translator.cc.o -MF src/CMakeFiles/rime.dir/rime/gear/ta
ble_translator.cc.o.d -o src/CMakeFiles/rime.dir/rime/gear/table_translator.cc.o -c /tmp/portage/app-i18n/librime-1.7.3/work/librime-1.7.
3/src/rime/gear/table_translator.cc
/tmp/portage/app-i18n/librime-1.7.3/work/librime-1.7.3/src/rime/gear/table_translator.cc: In member function ‘virtual rime::an<rime::Cand
idate> rime::TableTranslation::Peek()’:
/tmp/portage/app-i18n/librime-1.7.3/work/librime-1.7.3/src/rime/gear/table_translator.cc:83:25: error: ‘exp’ was not declared in this sco
pe
   83 |     phrase->set_quality(exp(e->weight) +
      |                         ^~~

-------------------------------------------------------

 gcc-config -l
 [1] x86_64-pc-linux-gnu-11.1.0 *

Reproducible: Always
Comment 1 yongxiang 2021-05-07 13:49:34 UTC
Created attachment 706500 [details]
emerge --info
Comment 2 yongxiang 2021-05-07 13:55:15 UTC
Created attachment 706503 [details]
build.log
Comment 3 zedhugh 2021-05-08 03:38:20 UTC
The same to me. 

This bug maybe caused by boost-1.76.0, when I back boost to 1.75.0, librime can compile success.

when I downgrade boost to 1.75.0 only boost and boost-build rebuilded.
Comment 4 gentoo@imrebuild.com 2021-05-08 15:38:48 UTC
Created attachment 706638 [details, diff]
Patch for boost-1.76

This bug has been fixed on upstream without new tag. (https://github.com/rime/librime/commit/57cffcd02ac70148e21ce982be834876b3df87db)
Comment 5 Larry the Git Cow gentoo-dev 2021-05-09 13:44:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a8bd464422938d63da0111dd60aa7d196aa482

commit 47a8bd464422938d63da0111dd60aa7d196aa482
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2021-05-08 04:00:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-05-09 13:38:58 +0000

    app-i18n/librime: Fix building with >=dev-libs/boost-1.76.
    
    Closes: https://bugs.gentoo.org/788727
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../librime/files/librime-1.6.0-boost-1.76.patch   | 24 ++++++++++++++++++++++
 app-i18n/librime/librime-1.6.0.ebuild              |  3 ++-
 app-i18n/librime/librime-1.6.1.ebuild              |  3 ++-
 app-i18n/librime/librime-1.7.3.ebuild              |  2 ++
 4 files changed, 30 insertions(+), 2 deletions(-)