Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951972 - kde-frameworks/prison: ld.lld: error: undefined symbol: ZXing::MultiFormatWriter::encode(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t>> const&, int, int) const
Summary: kde-frameworks/prison: ld.lld: error: undefined symbol: ZXing::MultiFormatWri...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-24 12:50 UTC by random
Modified: 2025-04-07 09:10 UTC (History)
1 user (show)

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


Attachments
/tmp/portage/kde-frameworks/prison-6.12.0/temp/build.log (build.log,62.70 KB, text/x-log)
2025-03-24 12:50 UTC, random
Details

Note You need to log in before you can comment on or make changes to this bug.
Description random 2025-03-24 12:50:43 UTC
Created attachment 922363 [details]
/tmp/portage/kde-frameworks/prison-6.12.0/temp/build.log

FAILED: bin/libKF6Prison.so.6.12.0
 138 : && /usr/lib/llvm/20/bin/clang++ -fPIC -O3 -pipe -ggdb3 -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-         arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-     dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -pedantic -Wzero-as-null-          pointer-constant -fdiagnostics-color=always  -Wl,--no-undefined -Wl,--enable-new-dtags -O3 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-     z,pack-relative-relocs -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--undefined-version -Wl,-Bsymbolic-functions -shared -Wl,-      soname,libKF6Prison.so.6 -o bin/libKF6Prison.so.6.12.0 src/lib/CMakeFiles/KF6Prison.dir/KF6Prison_autogen/mocs_compilation.        cpp.o src/lib/CMakeFiles/KF6Prison.dir/abstractbarcode_p.cpp.o src/lib/CMakeFiles/KF6Prison.dir/aztecbarcode.cpp.o src/lib/        CMakeFiles/KF6Prison.dir/barcode.cpp.o src/lib/CMakeFiles/KF6Prison.dir/barcodeutil.cpp.o src/lib/CMakeFiles/KF6Prison.dir/        bitvector.cpp.o src/lib/CMakeFiles/KF6Prison.dir/code128barcode.cpp.o src/lib/CMakeFiles/KF6Prison.dir/code39barcode.cpp.o         src/lib/CMakeFiles/KF6Prison.dir/code93barcode.cpp.o src/lib/CMakeFiles/KF6Prison.dir/mecard.cpp.o src/lib/CMakeFiles/             KF6Prison.dir/qrcodebarcode.cpp.o src/lib/CMakeFiles/KF6Prison.dir/reedsolomon.cpp.o src/lib/CMakeFiles/KF6Prison.dir/             datamatrixbarcode.cpp.o src/lib/CMakeFiles/KF6Prison.dir/pdf417barcode.cpp.o src/lib/CMakeFiles/KF6Prison.dir/zxingutil.cpp.o      src/lib/CMakeFiles/KF6Prison.dir/prison_debug.cpp.o  /usr/lib64/libQt6Gui.so.6.8.2  /usr/lib64/libqrencode.so  /usr/lib64/         libdmtx.so  /usr/lib64/libZXing.so.2.3.0  /usr/lib64/libGLX.so  /usr/lib64/libOpenGL.so  /usr/lib64/libQt6Core.so.6.8.2 && :
 139 ld.lld: error: undefined symbol: ZXing::MultiFormatWriter::encode(std::__1::basic_string<wchar_t, std::__1::                       char_traits<wchar_t>, std::__1::allocator<wchar_t>> const&, int, int) const
 140 >>> referenced by zxingonedbarcode_p.h:34 (/mnt/data/tmp/portage/kde-frameworks/prison-6.12.0/work/prison-6.12.0/src/lib/          zxingonedbarcode_p.h:34)
 141 >>>               src/lib/CMakeFiles/KF6Prison.dir/barcode.cpp.o:(Prison::ZXingOneDBarcode<(ZXing::BarcodeFormat)512>::            paintImage())
 142 >>> referenced by pdf417barcode.cpp:32 (/mnt/data/tmp/portage/kde-frameworks/prison-6.12.0/work/prison-6.12.0/src/lib/             pdf417barcode.cpp:32)
 143 >>>               src/lib/CMakeFiles/KF6Prison.dir/pdf417barcode.cpp.o:(Prison::Pdf417Barcode::paintImage())
 144 clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 random 2025-03-25 18:05:27 UTC
Portage 3.0.67 (python 3.13.2-final-0, default/linux/amd64/23.0/split-usr/llvm, gcc-14, glibc-2.41-r1, 6.13.7-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.13.7-gentoo-dist-x86_64-Intel-R-_Xeon-R-_CPU_E5-2696_v4_@_2.20GHz-with-glibc2.41
KiB Mem:   131737280 total,  10681204 free
KiB Swap:   69206012 total,  66899080 free
Timestamp of repository gentoo: Mon, 24 Mar 2025 11:50:17 +0000
Head commit of repository gentoo: cde233463bf56165c524d5b364229f11908a00f2

Timestamp of repository benzene-overlay: Mon, 24 Mar 2025 07:54:28 +0000
Head commit of repository benzene-overlay: 4257b91974385d4926e1b1ee615502643e73b1c9

Timestamp of repository gentoo-zh: Mon, 24 Mar 2025 11:20:13 +0000
Head commit of repository gentoo-zh: 450e7c0a1222be9e68f4849e2400b5cdcfe49441

Timestamp of repository guru: Mon, 24 Mar 2025 10:05:15 +0000
Head commit of repository guru: f6c723bc8c4887177cf82e651eea01434316eddb

Timestamp of repository tatsh-overlay: Mon, 24 Mar 2025 10:05:14 +0000
Head commit of repository tatsh-overlay: 38d62cd7dae3f45afbabe1a4b3ddf2ad308aa25b

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
ccache version 4.10.2 [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.31.6-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.1::gentoo
dev-lang/python:           3.11.11_p2::gentoo, 3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.82.0-r100::gentoo, 1.83.0::gentoo, 1.84.0::gentoo, 1.84.1::gentoo, 1.85.0-r1::gentoo, 1.85.1::gentoo
dev-util/ccache:           4.10.2::gentoo
llvm-core/clang:           17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.1::gentoo
llvm-core/lld:             18.1.8::gentoo, 19.1.7::gentoo, 20.1.1::gentoo
llvm-core/llvm:            17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.1::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.61::gentoo
sys-apps/sandbox:          2.45::gentoo
sys-devel/binutils:        2.43-r2::gentoo, 2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20240920::gentoo, 14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
sys-libs/libselinux:       3.7-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
    sync-git-verify-commit-signature: yes

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

dragonfly
    location: /var/db/repos/dragonfly
    masters: gentoo
    volatile: False

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.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

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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64_llvm

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-O3 -pipe -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/terminfo"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-O3 -pipe -ggdb3"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" -j88 -1 -t"
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="-O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.utf8"
LD="ld.lld"
LDFLAGS="-O3 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--undefined-version"
LEX="flex"
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=broadwell"
SHELL="/bin/zsh"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="X acl alsa amd64 avif bluetooth bzip2 cet clang crypt dbus dist-kernel elogind gdbm gles grub heif iconv ipv6 jpeg2k libtirpc llvm-libunwind module-rebuild multilib ncurses opencl opengl openmp pam pcre plymouth pulseaudio qml qt6 readline ruby_single_target_ruby32 screencast seccomp split-usr ssl test-rust udev unicode vulkan wayland webp xattr zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_13" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64" QEMU_USER_TARGETS="aarch64 arm x86_64" RUBY_TARGETS="ruby32 ruby31" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YACC, YFLAGS
Comment 2 random 2025-04-07 08:44:07 UTC
☁  build [master] nm -D core/libZXing.so.2.3.0 | grep MultiFormatWriter 
000000000009f3f0 T ZXing::MultiFormatWriter::encode(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int) const
000000000009eee0 T ZXing::MultiFormatWriter::encode(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, int) const

☁ build [master] nm -D /usr/lib64/libZXing.so | grep MultiFormatWriter
000000000004d200 T ZXing::MultiFormatWriter::encode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int) const
000000000004cde0 T ZXing::MultiFormatWriter::encode(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, int, int) const

 symbol: ZXing::MultiFormatWriter::encode(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t>> const&, int, int) const 


i compile the libZXing into core/libZXing, the encode fuction's 1st argv is in namespace "std::__1::basic_string" , and gentoo's built is "std::__cxx11::basic_string", so ld.lld can't recognize.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-07 09:04:14 UTC
(In reply to random from comment #2)
> 
> i compile the libZXing into core/libZXing, the encode fuction's 1st argv is
> in namespace "std::__1::basic_string" , and gentoo's built is
> "std::__cxx11::basic_string", so ld.lld can't recognize.

That looks like you've built it with gcc or something (or clang not using libc++)?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-07 09:08:24 UTC
(In reply to Sam James from comment #3)
> (In reply to random from comment #2)
> > 
> > i compile the libZXing into core/libZXing, the encode fuction's 1st argv is
> > in namespace "std::__1::basic_string" , and gentoo's built is
> > "std::__cxx11::basic_string", so ld.lld can't recognize.
> 
> That looks like you've built it with gcc or something (or clang not using
> libc++)?

I think this really needs some more context. How did you build the one manually? Our ebuild doesn't do anything like force libstdc++, so I don't really see how it could be that.

It seems most likely that e.g. when you built manually, it picked up GCC?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-07 09:10:30 UTC
Need the build.log from building zxing-cpp via the ebuild (and ideally one from building manually).