Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618778 - dev-cpp/libcmis-0.5.2_pre20160820-r1 with GCC <6 and dev-libs/libxml2[icu] fails to build with ICU >=59
Summary: dev-cpp/libcmis-0.5.2_pre20160820-r1 with GCC <6 and dev-libs/libxml2[icu] fa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: icu-59-gcc-5
  Show dependency tree
 
Reported: 2017-05-17 16:37 UTC by Toralf Förster
Modified: 2018-02-19 19:42 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,5.54 KB, text/plain)
2017-05-17 16:37 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,12.27 KB, application/x-bzip)
2017-05-17 16:37 UTC, Toralf Förster
Details
dev-cpp:libcmis-0.5.2_pre20160820-r1:20170517-140236.log (dev-cpp:libcmis-0.5.2_pre20160820-r1:20170517-140236.log,22.39 KB, text/plain)
2017-05-17 16:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,39.46 KB, text/plain)
2017-05-17 16:37 UTC, Toralf Förster
Details
environment (environment,69.56 KB, text/plain)
2017-05-17 16:37 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.19 KB, application/x-bzip)
2017-05-17 16:37 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.02 KB, application/x-bzip)
2017-05-17 16:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-05-17 16:37:28 UTC
      Compiler flags: -O2 -pipe -march=native -Wall -pedantic -Weffc++ -Wshadow -Wendif-labels -Wextra -Wsign-promo -Woverloaded-virtual -Wnon-virtual-dtor -Wsign-promo
              client: yes
              werror: no
               tests: no
      cppcheck tests: no
       test coverage: no

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

  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:37:32 UTC
Created attachment 473016 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-05-17 16:37:35 UTC
Created attachment 473018 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-05-17 16:37:38 UTC
Created attachment 473020 [details]
dev-cpp:libcmis-0.5.2_pre20160820-r1:20170517-140236.log
Comment 4 Toralf Förster gentoo-dev 2017-05-17 16:37:41 UTC
Created attachment 473022 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-05-17 16:37:44 UTC
Created attachment 473024 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-05-17 16:37:47 UTC
Created attachment 473026 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-05-17 16:37:51 UTC
Created attachment 473028 [details]
temp.tbz2
Comment 8 Arfrever Frehtes Taifersar Arahesis 2017-05-17 21:28:38 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.
dev-cpp/libcmis does not use ICU, but it includes headers of dev-libs/libxml2.
Headers of dev-libs/libxml2[icu] include headers of ICU.
Maybe dev-libs/libxml2 should be somehow improved, but anyway for dev-cpp/libcmis it is sufficient to add e.g. -std=c++11 or -std=c++14 to CXXFLAGS.


/bin/sh ../../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"libcmis\" -DPACKAGE_TARNAME=\"libcmis\" -DPACKAGE_VERSION=\"0.5.2\" -DPACKAGE_STRING=\"libcmis\ 0.5.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libcmis\" -DVERSION=\"0.5.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_BOOST=1 -DHAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP=1 -DHAVE_BOOST_SCOPED_PTR_HPP=1 -DHAVE_BOOST_SHARED_PTR_HPP=1 -DHAVE_BOOST_UUID_UUID_HPP=1 -DHAVE_BOOST_PROGRAM_OPTIONS_HPP=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -I.    -I../../src/libcmis -I/usr/include/libxml2   -O0 -O2 -pipe -march=native -Wall -pedantic -Weffc++ -Wshadow -Wendif-labels -Wextra -Wsign-promo -Woverloaded-virtual -Wnon-virtual-dtor -Wsign-promo -c -o session-factory.lo session-factory.cxx
libtool: compile:  x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"libcmis\" -DPACKAGE_TARNAME=\"libcmis\" -DPACKAGE_VERSION=\"0.5.2\" "-DPACKAGE_STRING=\"libcmis 0.5.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libcmis\" -DVERSION=\"0.5.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_BOOST=1 -DHAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP=1 -DHAVE_BOOST_SCOPED_PTR_HPP=1 -DHAVE_BOOST_SHARED_PTR_HPP=1 -DHAVE_BOOST_UUID_UUID_HPP=1 -DHAVE_BOOST_PROGRAM_OPTIONS_HPP=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -I. -I../../src/libcmis -I/usr/include/libxml2 -O0 -O2 -pipe -march=native -Wall -pedantic -Weffc++ -Wshadow -Wendif-labels -Wextra -Wsign-promo -Woverloaded-virtual -Wnon-virtual-dtor -Wsign-promo -c session-factory.cxx  -fPIC -DPIC -o .libs/session-factory.o
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/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/xmlerror.h:10,
                 from /usr/include/libxml2/libxml/xpath.h:26,
                 from base-session.hxx:39,
                 from atom-session.hxx:31,
                 from session-factory.cxx:28:
/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:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d356d589aa327bbee1339b23ac144c977f4e6c

commit 12d356d589aa327bbee1339b23ac144c977f4e6c
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:11 +0000

    dev-cpp/libcmis: Always build in C++14 mode
    
    Closes: https://bugs.gentoo.org/618778
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-cpp/libcmis/libcmis-0.5.2_pre20160820-r1.ebuild | 7 +++++--
 dev-cpp/libcmis/libcmis-9999.ebuild                 | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)