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

Bug 618776

Summary: app-text/sword-1.7.4 with GCC <6 fails to build with ICU >=59
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Theology Herd (disbanded) <theology+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 620046    
Attachments: emerge-info.txt
app-text:sword-1.7.4:20170517-125005.log
config.log.tbz2
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2017-05-17 16:36:50 UTC
               char16_t srcChar)
               ^
/usr/include/unicode/unistr.h:4755:1: error: redefinition of 'icu::UnicodeString& icu::UnicodeString::insert(int32_t, UChar32)'
 UnicodeString::insert(int32_t start,
 ^
/usr/include/unicode/unistr.h:4750:1: note: 'icu::UnicodeString& icu::UnicodeString::insert(int32_t, int)' previously defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: desktop-gcc5_20170516-214204

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

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

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
Comment 1 Toralf Förster gentoo-dev 2017-05-17 16:36:53 UTC
Created attachment 473002 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-05-17 16:36:57 UTC
Created attachment 473004 [details]
app-text:sword-1.7.4:20170517-125005.log
Comment 3 Toralf Förster gentoo-dev 2017-05-17 16:37:01 UTC
Created attachment 473006 [details]
config.log.tbz2
Comment 4 Toralf Förster gentoo-dev 2017-05-17 16:37:04 UTC
Created attachment 473008 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-05-17 16:37:07 UTC
Created attachment 473010 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-05-17 16:37:11 UTC
Created attachment 473012 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-05-17 16:37:14 UTC
Created attachment 473014 [details]
temp.tbz2
Comment 8 Arfrever Frehtes Taifersar Arahesis 2017-05-17 21:00:57 UTC
Usage of C++ API of ICU >=59 requires usage of C++ >=2011.
C++ 1998 is default in GCC <6.
C++ 2014 is default in GCC 6 and 7.
Ideally build system would add e.g. -std=c++11 or -std=c++14 to CXXFLAGS, but alternatively ebuild should add it.


/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include  -I../include  -I/usr/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/lib64/sword/1.7.4_icu_\"   -D_FTPLIB_NO_COMPAT  -fPIC -D_ICU_  -O2 -pipe -march=native -c -o swmgr.lo `test -f '../src/mgr/swmgr.cpp' || echo './'`../src/mgr/swmgr.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/lib64/sword/1.7.4_icu_\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -O2 -pipe -march=native -c ../src/mgr/swmgr.cpp  -fPIC -DPIC -o .libs/swmgr.o
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/unistr.h:32,
                 from ../include/utf8transliterator.h:41,
                 from ../src/mgr/swmgr.cpp:102:
/usr/include/unicode/umachine.h:347:13: error: 'char16_t' does not name a type
     typedef char16_t UChar;
             ^
...
Comment 9 Larry the Git Cow gentoo-dev 2018-02-19 19:42:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=543adb508b78e2abcb84ff47cb8f7f8bb927e10b

commit 543adb508b78e2abcb84ff47cb8f7f8bb927e10b
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2018-02-19 18:17:20 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2018-02-19 19:40:08 +0000

    app-text/sword: Always build in C++14 mode
    
    Closes: https://bugs.gentoo.org/618776
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-text/sword/sword-1.7.4-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)