Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618728 - dev-qt/qtcore-5.7.1-r3:5[icu] with GCC <6 fails to build with ICU >=59
Summary: dev-qt/qtcore-5.7.1-r3:5[icu] with GCC <6 fails to build with ICU >=59
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 618848 649470 649584 (view as bug list)
Depends on:
Blocks: icu-59-gcc-5
  Show dependency tree
 
Reported: 2017-05-17 08:49 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2018-07-16 08:55 UTC (History)
4 users (show)

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


Attachments
qtcore-5.7.1-r3.log (qtcore-5.7.1-r3.log,224.57 KB, text/plain)
2017-05-17 08:50 UTC, Arfrever Frehtes Taifersar Arahesis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2017-05-17 08:49:08 UTC
dev-qt/qtcore-5.7.1-r3:5[icu] with GCC <6 fails to build with ICU >=59.
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.
Build system adds -std=c++11 to CXXFLAGS, but too late, and this flag is not passed to compiler during checks of availability of various features and libraries in src_configure() phase.
Ebuild should add -std=c++11 to CXXFLAGS.
(dev-qt/qtcore-5.9.9999:5 is not affected.)


checking for ICU... 
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -O2 -Wall -W -fPIC  -I. -I/var/tmp/portage/dev-qt/qtcore-5.7.1-r3/work/qtbase-opensource-src-5.7.1/mkspecs/linux-g++ -o icu.o icu.cpp
In file included from /usr/include/unicode/utypes.h:38:0,
                 from icu.cpp:40:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type
     typedef char16_t UChar;
             ^
In file included from /usr/include/unicode/utypes.h:39:0,
                 from icu.cpp:40:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^
...
Comment 1 Arfrever Frehtes Taifersar Arahesis 2017-05-17 08:50:37 UTC
Created attachment 472904 [details]
qtcore-5.7.1-r3.log
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2017-05-18 16:41:21 UTC
*** Bug 618848 has been marked as a duplicate of this bug. ***
Comment 3 Radoslaw Szkodzinski 2017-09-30 10:48:25 UTC
Similar issue affects dev-qt/qtcore-4.8.x except on all compilers.
Comment 4 Radoslaw Szkodzinski 2017-09-30 12:06:08 UTC
Additionally also affects qtwebkit identically as respective qt versions.
Comment 5 Andreas Sturmlechner gentoo-dev 2018-03-03 16:38:36 UTC
*** Bug 649470 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Sturmlechner gentoo-dev 2018-03-04 17:55:33 UTC
*** Bug 649584 has been marked as a duplicate of this bug. ***
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-07-16 08:55:07 UTC
qt-5.7 is no longer in ::gentoo tree.