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

Bug 662192

Summary: sci-libs/vtk-7.1 does not compile with >=icu-59
Product: Gentoo Linux Reporter: Vasiliy <6vasia>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED INVALID    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vasiliy 2018-07-26 17:04:21 UTC
Compile stage fails with /usr/include/unicode/umachine.h: char16_t does not name a type.

In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /var/tmp/portage/sci-libs/vtk-7.1.0/work/VTK-7.1.0/IO/Infovis/vtkXMLTreeReader.cxx:34

AFAIR char16_t is only valid in C++11.

gcc is 5.4.0-r3
Comment 1 Vasiliy 2018-07-27 12:22:09 UTC
Also, 

/usr/include/unicode/localpointer.h:221:34: error: expected <<,>> or <<...>> before <<&&>> token
     LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {

Definitely C++11, that's rvalue ref there.
Comment 2 Jonas Stein gentoo-dev 2018-08-04 10:02:13 UTC
please retry with gcc6 or gcc7 gcc5 is hardmasked.
Comment 3 Vasiliy 2018-08-09 17:14:04 UTC
My bad, didn't notice that gcc-5 is masked already. Yes, it compiles with gcc-6 as it has C++11 as default. INVALID, I guess.