Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930977 - media-gfx/ueberzugpp implicit instantiation of undefined template 'std::basic_string<char>'
Summary: media-gfx/ueberzugpp implicit instantiation of undefined template 'std::basic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL: https://github.com/jstkdng/ueberzugpp...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 13:45 UTC by Denis Strizhkin
Modified: 2024-04-30 15:44 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,22.28 KB, text/x-log)
2024-04-30 13:45 UTC, Denis Strizhkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Strizhkin 2024-04-30 13:45:52 UTC
Created attachment 892014 [details]
build.log

Can't compile media-gfx/ueberzugpp with clang18

Portage 3.0.64 (python 3.11.9-final-0, default/linux/amd64/23.0/musl/llvm, [unavailable], musl-1.2.4-r1, 6.8.7-gentoo-dist-hardened x86_64)
=================================================================
System uname: Linux-6.8.7-gentoo-dist-hardened-x86_64-AMD_Ryzen_5_5600X_6-Core_Processor-with-libc
KiB Mem:    32768780 total,    689928 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 30 Apr 2024 00:04:17 +0000
Head commit of repository gentoo: 7f05dfc04484572529d2098dc88f4f41f9617ee1

Head commit of repository den4ik: 7c852c1c9f78e3bbc96d6218e50044159c8212ff

Timestamp of repository guru: Mon, 29 Apr 2024 21:33:46 +0000
Head commit of repository guru: 1cf4618c9c51e92d2b485ea0c3582e037c7a8a79

sh bash 5.2_p26-r2
ld LLD 18.1.4 (compatible with GNU linkers)
app-misc/pax-utils:       1.3.7::gentoo
app-shells/bash:          5.2_p26-r2::gentoo
dev-build/autoconf:       2.72-r1::gentoo
dev-build/automake:       1.16.5-r2::gentoo
dev-build/cmake:          3.29.2::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-lang/perl:            5.38.2-r2::gentoo
dev-lang/python:          3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust:            1.77.1::gentoo
sys-apps/baselayout:      2.15::gentoo
sys-apps/openrc:          0.54::gentoo
sys-apps/sandbox:         2.38::gentoo
sys-devel/clang:          18.1.4::gentoo
sys-devel/lld:            18.1.4::gentoo
sys-devel/llvm:           17.0.6::gentoo, 18.1.4::gentoo
sys-kernel/linux-headers: 6.8-r1::gentoo (virtual/os-headers)
sys-libs/musl:            1.2.4-r1::gentoo
Repositories:

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

den4ik
    location: /var/db/repos/den4ik
    sync-type: git
    sync-uri: https://github.com/denisstrizhkin/den4ik-overlay.git
    masters: gentoo
    volatile: False

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

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://ftp.lysator.liu.se/gentoo/releases/amd64/binpackages/23.0/x86-64-v3

Installed sets: @den4ik-documents, @den4ik-portage, @den4ik-system, @den4ik-user
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-musl"
CC="clang"
CFLAGS="-march=native -O3 -pipe -flto=thin"
CHOST="x86_64-pc-linux-musl"
CONFIG_PROTECT="/etc /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"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=native -O3 -pipe -flto=thin"
DISTDIR="/var/cache/distfiles"
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 -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait 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 -O3 -pipe"
GENTOO_MIRRORS="https://ftp.lysator.liu.se/gentoo/"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
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"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet clang crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif firewalld flac gif gpm gtk hardened heif iconv icu ipv6 jpeg jpeg2k lcms libnotify libtirpc llvm-libunwind lto mad mng mp3 mp4 mpeg mtp ncurses nftables ogg opengl openmp opus pam pango pcre pdf pgo pic pie pipewire png policykit ppds pulseaudio readline screencast sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb verify-sig vorbis vpx vulkan wayland webp wxwidgets x264 xattr xcb xft xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_12" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="musl" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru en ja" 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" QEMU_SOFTMMU_TARGETS="aarch64 x86_64" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YACC, YFLAGS
Comment 1 Larry the Git Cow gentoo-dev 2024-04-30 15:44:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fd831828b26a92051ae4a7a74e9ffe3ec058987

commit 1fd831828b26a92051ae4a7a74e9ffe3ec058987
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-04-30 15:03:44 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-04-30 15:43:06 +0000

    media-gfx/ueberzugpp: fix build w/ libc++ if USE=X or USE=wayland
    
    Two different issues with libc++ (clang18+libstdc++ is fine),
    USE=wayland is missing an header, and USE=X fails due to incomplete
    C++20 support (std::jthread) in libc++.
    
    Fortunately for the latter, the support does exist and is merely
    locked behind -fexperimental-library (unsure if the implementation
    works right but it seems ok at a glance).
    
    Closes: https://bugs.gentoo.org/930977
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-gfx/ueberzugpp/files/ueberzugpp-2.9.4-libcxx18.patch | 11 +++++++++++
 media-gfx/ueberzugpp/ueberzugpp-2.9.4.ebuild               | 13 ++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)