Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788727 - app-i18n/librime-1.7.3 /.../table_translator.cc:83:25: error: ‘exp’ was not declared in this scope
Summary: app-i18n/librime-1.7.3 /.../table_translator.cc:83:25: error: ‘exp’ was not d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Arfrever Frehtes Taifersar Arahesis
URL: https://github.com/rime/librime/commi...
Whiteboard:
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: ---


Attachments
emerge --info (file_788727.txt,7.61 KB, text/plain)
2021-05-07 13:49 UTC, yongxiang
Details
build.log (build.log,69.55 KB, text/x-log)
2021-05-07 13:55 UTC, yongxiang
Details
Patch for boost-1.76 (boost-1.76.patch,784 bytes, patch)
2021-05-08 15:38 UTC, gentoo@imrebuild.com
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/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(-)