Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788727 - app-i18n/librime-1.7.3 /.../ error: ‘exp’ was not declared in this scope
Summary: app-i18n/librime-1.7.3 /.../ error: ‘exp’ was not d...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
Keywords: PATCH
Depends on:
Blocks: boost-1.76
  Show dependency tree
Reported: 2021-05-07 13:47 UTC by yongxiang
Modified: 2021-06-03 01:23 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info (file_788727.txt,7.61 KB, text/plain)
2021-05-07 13:49 UTC, yongxiang
build.log (build.log,69.55 KB, text/x-log)
2021-05-07 13:55 UTC, yongxiang
Patch for boost-1.76 (boost-1.76.patch,784 bytes, patch)
2021-05-08 15:38 UTC,
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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/ -MF src/CMakeFiles/rime.dir/rim
e/gear/ -o src/CMakeFiles/rime.dir/rime/gear/ -c /tmp/portage/app-i18n/librime-1.7.3/work/lib
FAILED: src/CMakeFiles/rime.dir/rime/gear/
/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/ -MF src/CMakeFiles/rime.dir/rime/gear/ta -o src/CMakeFiles/rime.dir/rime/gear/ -c /tmp/portage/app-i18n/librime-1.7.3/work/librime-1.7.
/tmp/portage/app-i18n/librime-1.7.3/work/librime-1.7.3/src/rime/gear/ 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/ error: ‘exp’ was not declared in this sco
   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]
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 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. (
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):

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

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

 .../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(-)