Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932494 - app-text/libmspub-0.1.4 fails to compile against dev-libs/icu-75.1
Summary: app-text/libmspub-0.1.4 fails to compile against dev-libs/icu-75.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: icu-75
  Show dependency tree
 
Reported: 2024-05-22 15:26 UTC by jospezial
Modified: 2024-05-22 16:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2024-05-22 15:26:31 UTC
[ebuild  rR    ]  app-text/libmspub-0.1.4::gentoo  USE="-doc -static-libs" 0 KiB

libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../inc -I/usr/include/librevenge-0.0 -DNDEBUG -DLIBMSPUB_BUILD=1 -march=native -mtune=native -O2 -pipe -std=c++14 -fvisibility=hidden -DLIBMSPUB_VISIBILITY -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++ -c libmspub_utils.cpp  -fPIC -DPIC -o .libs/libmspub_utils.o
In file included from /usr/include/unicode/uenum.h:25,
                 from /usr/include/unicode/ucnv.h:52,
                 from libmspub_utils.cpp:16:
/usr/include/unicode/localpointer.h:561:26: error: 'auto' parameter not permitted in this context
  561 | template <typename Type, auto closeFunction>
      |                          ^~~~
/usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
  573 |     explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
      |                                                                            ^
/usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
  583 |     LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
      |                                                                              ^
/usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
  599 |     operator std::unique_ptr<Type, decltype(closeFunction)> () && {
      |                                                           ^
/usr/include/unicode/uenum.h:69:1: note: invalid template non-type parameter
   69 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUEnumerationPointer, UEnumeration, uenum_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/ucnv.h:597:1: note: invalid template non-type parameter
  597 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterPointer, UConverter, ucnv_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:567: libmspub_utils.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/unicode/uenum.h:25,
                 from /usr/include/unicode/ucsdet.h:28,
                 from MSPUBCollector.cpp:19:
/usr/include/unicode/localpointer.h:561:26: error: 'auto' parameter not permitted in this context
  561 | template <typename Type, auto closeFunction>
      |                          ^~~~
/usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
  573 |     explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
      |                                                                            ^
/usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
  583 |     LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
      |                                                                              ^
/usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
  599 |     operator std::unique_ptr<Type, decltype(closeFunction)> () && {
      |                                                           ^
/usr/include/unicode/uenum.h:69:1: note: invalid template non-type parameter
   69 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUEnumerationPointer, UEnumeration, uenum_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/ucsdet.h:109:1: note: invalid template non-type parameter
  109 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUCharsetDetectorPointer, UCharsetDetector, ucsdet_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:567: MSPUBCollector.lo] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-text/libmspub-0.1.4/work/libmspub-0.1.4/src/lib'
make[2]: *** [Makefile:389: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-text/libmspub-0.1.4/work/libmspub-0.1.4/src'
make[1]: *** [Makefile:496: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-text/libmspub-0.1.4/work/libmspub-0.1.4'
make: *** [Makefile:407: all] Error 2
 * ERROR: app-text/libmspub-0.1.4::gentoo failed (compile phase):
 *   emake failed

Same with libmspub-9999.
Comment 1 jospezial 2024-05-22 15:28:16 UTC
Portage 3.0.64-11+gcdf328f56 (python 3.12.3-final-0, default/linux/amd64/23.0, gcc-14, glibc-2.39-r6, 6.9.1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.9.1-x86_64-AMD_Athlon-tm-_II_X2_240_Processor-with-glibc2.39
KiB Mem:     4026528 total,   2111188 free
KiB Swap:   10622804 total,   9414996 free
Timestamp of repository kde: Tue, 21 May 2024 19:18:35 +0000
Head commit of repository kde: a10d2c6a791ea10ffff07bbea5fe9348f228eb31

Timestamp of repository poly-c: Wed, 22 May 2024 09:25:22 +0000
Timestamp of repository qt: Mon, 20 May 2024 17:23:23 +0000
Head commit of repository qt: 9ad951776f4df0130d4a767cb3b6692714462ffe

Timestamp of repository gentoo: Wed, 22 May 2024 14:34:09 +0000
Head commit of repository gentoo: 97a7fd7e5647d0e26cb46a5695f25a0ddab4d0b9

Timestamp of repository guru: Wed, 22 May 2024 13:05:49 +0000
Head commit of repository guru: 16f9fa91119e048bbead2eb09c25a658595b8d85

sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
ccache version 4.9.1 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r5::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.3-r1::gentoo, 3.13.0_beta1_p2::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
dev-util/ccache:           4.9.1-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             14.1.1_p20240518::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    priority: -1001
    volatile: False

overlay_jl
    location: /var/db/repos/overlay_jl
    masters: gentoo
    priority: -1001
    volatile: False

poly-c
    location: /var/db/repos/poly-c
    sync-type: rsync
    sync-uri: rsync://rsync.gentoofan.org/poly-c
    masters: gentoo
    priority: -1001
    volatile: False
    sync-rsync-extra-opts: 

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo
    priority: -1001
    volatile: False

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write=y --keep-going --quiet-build=y --verbose-conflicts"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ https://mirrors.dotsrc.org/gentoo/ https://mirror.leaseweb.com/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="a52 aac aacplus aacs aalib acl acpi activefilter admin adns aften alsa amd64 amdgpu ap apm apng archive arping atahpt atapromise audiofile automount avif bash bazaar bdplus bluray boost btrfs bzip2 cairo ccache cdda cddb cdio cdr cdrom chm chroot cjk cli client colordiff colorpicker compress corefonts cpio cpuload crypt css cue cups curl custom-modes d3d9 dav1d dbus declarative designer dga dhcp dom dri dri3 drm dts duktape dump dv dvb dvd dvdnav eap eap-sim eap-tls ebook egl elogind encode enscript epub equalizer exif extensions extras faac faad farstream fat fax fbcon fdformat fdk ffmpeg fftw firefox flac flashrom fluidsynth fontconfig foomatic freedoom ft2232-spi ftd2xx ftdi ftp fullscreen fuse gadu gd gdk-pixbuf gegl geoip gif git gpg gphoto2 graphite grub gstreamer gtk gtk4 gui gusb gzip haptic hddtemp hdf hdf5 hid highlight history hpcups hpijs http http2 iconv icu id3tag idn imagemagick initramfs inotify introspection ipc ipod ipv6 iso jack jbootstrap jit jpeg jpeg2k jpegxl kde keyfinder kiosk ladspa lame lcms legacy-systray lensfun libaom libass libcanberra libdrm libinput libmpv libnotify libplacebo libproxy librtmp libsamplerate libssh2 libtirpc libv4l libwww linux-mtd linux-spi live lm-sensors logitech logrotate lua lv2 lximage lz4 lzma lzo mad magic man matroska md5sum meanwhile mediatek-i2c-spi mercurial metalink midi mikmod mime minizip mixer mjpeg mmap mms mod modern-top modplug modules-compress mono mount mouse mp3 mp4 mpeg mpeg2 mplayer mstarddc-spi mtp multilib multimedia musepack musicbrainz nano-syntax ncat ncurses network networkmonitor newnet ngspice nls normalize nowlistening nping ntfs ntfsprogs ntp nvidia nvme obex ocr odbc odf offload ogg ogm openal opencl opengl openh264 openmp openssl opus osdmenu otr p2p pam pango panorama parse-clocks pcap pci pcre pcre16 pcre32 pdf pdfimport phonon pipes pipewire pipewire-alsa pkcs11 plasma plugins png policykit postproc postscript powermanagement ppds printsupport privacy projectm pulseaudio pvr python qalculate qdbus qml qrcode qt6 qtkeychain quicktime radio rar raw readline realtek-mst-i2c-spi replaygain rtc rtmp rubberband rust rustfmt sbsms scanner screencast screensaver scripttools sdl seccomp secure-delete sensors serial serialport sftp sha512 shorten skins slang smartcard smi sndfile sockets socks socks5 sound sound-server source-highlight speech speex spell spi spirv sql sqlite sqlite3 squashfs ssh ssl staging startup-notification statistics statusnotifier stk stream subtitles sudo svg symlink sync-plugin-portage syslog sysstat system-ffmpeg system-harfbuzz system-icu system-jpeg system-libvpx system-sqlite sysv-utils szip taglib test-rust text texteffect tftp themes theora threads thumbnail tiff timidity tracepath translator truetype twolame udev udf udisks unicode upower urlpicpreview usb utils v4l v4l2 vaapi vala vamp vector-icons video videos virtualbox vkd3d vnc vorbis vpx vroot vst vulkan vulkaninfo wad wav wavpack wayland wayland-compositor webp widgets wps wxwidgets x264 x265 xattr xfs xml xvid xwayland yahoo zink zip zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12 python3_13" RUBY_TARGETS="ruby33" VIDEO_CARDS="radeon amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-libs/icu-75.1::gentoo was built with the following:
USE="-debug -doc -examples -static-libs -test -verify-sig" ABI_X86="32 (64) (-x32)"
Comment 2 jospezial 2024-05-22 15:58:15 UTC
change to
append-cxxflags -std=c++17
in the ebuild works.
Comment 3 Larry the Git Cow gentoo-dev 2024-05-22 16:46:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e53d380fb1b13ce3fa5b0e3908ce43d27c8a3eb

commit 2e53d380fb1b13ce3fa5b0e3908ce43d27c8a3eb
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-05-22 16:30:25 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-05-22 16:45:49 +0000

    app-text/libmspub: Fix build w/ ICU-75, update EAPI 7 -> 8
    
    Closes: https://bugs.gentoo.org/932494
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-text/libmspub/libmspub-0.1.4.ebuild | 16 ++++++++--------
 app-text/libmspub/libmspub-9999.ebuild  | 18 +++++++++---------
 2 files changed, 17 insertions(+), 17 deletions(-)