Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956114 - x11-libs/wxGTK-3.2.8: linking error in clang/lld in libwx_baseu-3.2-gtk3.so.0.4.1
Summary: x11-libs/wxGTK-3.2.8: linking error in clang/lld in libwx_baseu-3.2-gtk3.so.0...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 955936
  Show dependency tree
 
Reported: 2025-05-17 16:41 UTC by Joungmin Lee
Modified: 2025-05-26 07:39 UTC (History)
2 users (show)

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


Attachments
emerge info (emerge_info,14.70 KB, text/plain)
2025-05-17 16:42 UTC, Joungmin Lee
Details
Correct emerge info (emerge_info,7.29 KB, text/plain)
2025-05-17 17:01 UTC, Joungmin Lee
Details
full build log (build.log.gz,30.72 KB, application/gzip)
2025-05-17 17:12 UTC, Joungmin Lee
Details
build.log after commenting out the bodge patch and both of two seds (build_bodge_seds_both_commented_out.log.gz,30.82 KB, application/gzip)
2025-05-19 12:10 UTC, Joungmin Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joungmin Lee 2025-05-17 16:41:21 UTC
clang++ -shared -fPIC -o /var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/lib/libwx_baseu-3.2-gtk3.so.0.4.1  basedll_any.o basedll_appbase.o basedll_arcall.o basedll_arcfind.o basedll_archive.o basedll_arrstr.o basedll_base64.o basedll_clntdata.o basedll_cmdline.o basedll_config.o basedll_convauto.o basedll_datetime.o basedll_datetimefmt.o basedll_datstrm.o basedll_dircmn.o basedll_dynlib.o basedll_dynload.o basedll_encconv.o basedll_evtloopcmn.o basedll_extended.o basedll_ffile.o basedll_file.o basedll_fileback.o basedll_fileconf.o basedll_filefn.o basedll_filename.o basedll_filesys.o basedll_filtall.o basedll_filtfind.o basedll_fmapbase.o basedll_fs_arc.o basedll_fs_filter.o basedll_hash.o basedll_hashmap.o basedll_init.o basedll_intl.o basedll_ipcbase.o basedll_languageinfo.o basedll_list.o basedll_log.o basedll_longlong.o basedll_memory.o basedll_mimecmn.o basedll_module.o basedll_mstream.o basedll_numformatter.o basedll_object.o basedll_platinfo.o basedll_powercmn.o basedll_process.o basedll_regex.o basedll_stdpbase.o basedll_sstream.o basedll_stdstream.o basedll_stopwatch.o basedll_strconv.o basedll_stream.o basedll_string.o basedll_stringimpl.o basedll_stringops.o basedll_strvararg.o basedll_sysopt.o basedll_tarstrm.o basedll_textbuf.o basedll_textfile.o basedll_threadinfo.o basedll_time.o basedll_timercmn.o basedll_timerimpl.o basedll_tokenzr.o basedll_translation.o basedll_txtstrm.o basedll_unichar.o basedll_uri.o basedll_ustring.o basedll_variant.o basedll_wfstream.o basedll_wxcrt.o basedll_wxprintf.o basedll_xlocale.o basedll_xti.o basedll_xtistrm.o basedll_zipstrm.o basedll_zstream.o basedll_fswatchercmn.o basedll_fswatcherg.o basedll_common_secretstore.o basedll_lzmastream.o basedll_common_uilocale.o basedll_fdiodispatcher.o basedll_selectdispatcher.o basedll_appunix.o basedll_unix_dir.o basedll_dlunix.o basedll_epolldispatcher.o basedll_evtloopunix.o basedll_fdiounix.o basedll_unix_snglinst.o basedll_unix_stackwalk.o basedll_timerunx.o basedll_threadpsx.o basedll_utilsunx.o basedll_wakeuppipe.o basedll_fswatcher_kqueue.o basedll_unix_mimetype.o basedll_fswatcher_inotify.o basedll_unix_stdpaths.o basedll_unix_secretstore.o basedll_unix_uilocale.o basedll_event.o basedll_fs_mem.o basedll_msgout.o basedll_utilscmn.o      -L/var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/lib   -Wl,-soname,libwx_baseu-3.2-gtk3.so.0  -fuse-ld=lld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version  -pthread -fuse-ld=lld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version       -pthread -fuse-ld=lld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version  -Wl,--version-script,/var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/version-script -Wl,--undefined-version -lz -llzma -lm -lpcre2-32  -lz -llzma -lm
ld.lld: error: basedll_datetime.o <inline asm>:2:1: default version symbol _ZNK10wxUILocale14GetWeekDayNameEN10wxDateTime7WeekDayENS0_9NameFlagsE@@WXU_3.0.3 must be defined
.symver _ZNK10wxUILocale14GetWeekDayNameEN10wxDateTime7WeekDayENS0_9NameFlagsE, _ZNK10wxUILocale14GetWeekDayNameEN10wxDateTime7WeekDayENS0_9NameFlagsE@@WXU_3.0.3
^


ld.lld: error: basedll_datetime.o <inline asm>:4:1: default version symbol _ZNK10wxUILocale12GetMonthNameEN10wxDateTime5MonthENS0_9NameFlagsE@@WXU_3.0.3 must be defined
.symver _ZNK10wxUILocale12GetMonthNameEN10wxDateTime5MonthENS0_9NameFlagsE, _ZNK10wxUILocale12GetMonthNameEN10wxDateTime5MonthENS0_9NameFlagsE@@WXU_3.0.3
^


ld.lld: error: basedll_intl.o <inline asm>:2:1: default version symbol _ZN10wxUILocale17GetSystemLocaleIdEv@@WXU_3.0.2 must be defined
.symver _ZN10wxUILocale17GetSystemLocaleIdEv, _ZN10wxUILocale17GetSystemLocaleIdEv@@WXU_3.0.2
^

clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:14300: /var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/lib/libwx_baseu-3.2-gtk3.so.0.4.1] Error 1
Comment 1 Joungmin Lee 2025-05-17 16:42:56 UTC
Created attachment 928979 [details]
emerge info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-17 16:44:46 UTC
> Timestamp of repository gentoo: Tue, 08 Apr 2025 10:45:00 +0000
> Head commit of repository gentoo: f0b66d4cea4d2b266acb8298c7b9496d2addf04c

Please emerge --sync.

*** This bug has been marked as a duplicate of bug 955865 ***
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-17 16:45:12 UTC

*** This bug has been marked as a duplicate of bug 955902 ***
Comment 4 Joungmin Lee 2025-05-17 17:01:23 UTC
Created attachment 928980 [details]
Correct emerge info
Comment 5 Joungmin Lee 2025-05-17 17:04:31 UTC
(In reply to Sam James from comment #2)
> > Timestamp of repository gentoo: Tue, 08 Apr 2025 10:45:00 +0000
> > Head commit of repository gentoo: f0b66d4cea4d2b266acb8298c7b9496d2addf04c
> 
> Please emerge --sync.
> 
> *** This bug has been marked as a duplicate of bug 955865 ***

Sorry, Sam. I mistakenly added the emerge info to the previous emerge info and have revised. Could you look into the issue again? Is this issue indeed a duplicate of 955902?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-17 17:09:43 UTC
Thanks. Can you show the full build.log?
Comment 7 Joungmin Lee 2025-05-17 17:12:32 UTC
Created attachment 928981 [details]
full build log
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-17 17:14:07 UTC
Gah, it's not the same, just related.
Comment 9 Joungmin Lee 2025-05-17 17:14:36 UTC
(In reply to Sam James from comment #6)
> Thanks. Can you show the full build.log?

Oops. The first attachment was that but disappeared due to the size limitation. Uploaded a compressed version. Thanks.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-18 16:29:54 UTC
Could you try comment out the botch patch and also the "versionsator" sed in the ebuild and see if that works? I suspect it will.
Comment 11 Joungmin Lee 2025-05-19 12:02:07 UTC
(In reply to Sam James from comment #10)
> Could you try comment out the botch patch and also the "versionsator" sed in
> the ebuild and see if that works? I suspect it will.

I tested the ebuild as you suggested but different errors occur.

---
Line 84:
        # Please DO NOT rebase this without handling the underlying problem
        # in bug #955902 properly first.
        #"${FILESDIR}/${PN}-3.2.8-bodge-version-script.patch"
...
Line 113:
        #sed -i \
        #       -e "s:\(WX_RELEASE = \).*:\1${WXRELEASE}:"\
        #       -e "s:\(WX_RELEASE_NODOT = \).*:\1${WXRELEASE_NODOT}:"\
        #       -e "s:\(WX_VERSION = \).*:\1${WXVERSION}:"\
        #       -e "s:aclocal):aclocal/wxwin${WXRELEASE_NODOT}.m4):" \
        #       "${versioned_makefiles[@]}" || die
        # XXX: The WX_VERSION_TAG especially here is *radioactive*
        # and must be removed in a new revision after 3.2.8. See bug #955902.
        #sed -i \
        #       -e "s:\(WX_VERSION=\).*:\1${WXVERSION}:" \
        #       -e "s:\(WX_RELEASE=\).*:\1${WXRELEASE}:" \
        #       -e "s:\(WX_SUBVERSION=\).*:\1${WXSUBVERSION}:" \
        #       -e '/WX_VERSION_TAG=/ s:${WX_RELEASE}:3.0:' \
        #       configure || die


----
# ebuild wxGTK-3.2.8.ebuild clean test install
...
clang++ -shared -fPIC -o /var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/lib/libwx_baseu-3.2.so.0.4.1  basedll_any.o basedll_appbase.o basedll_arcall.o basedll_arcfind.o basedll_archive.o basedll_arrstr.o basedll_base64.o basedll_clntdata.o basedll_cmdline.o basedll_config.o basedll_convauto.o basedll_datetime.o basedll_datetimefmt.o basedll_datstrm.o basedll_dircmn.o basedll_dynlib.o basedll_dynload.o basedll_encconv.o basedll_evtloopcmn.o basedll_extended.o basedll_ffile.o basedll_file.o basedll_fileback.o basedll_fileconf.o basedll_filefn.o basedll_filename.o basedll_filesys.o basedll_filtall.o basedll_filtfind.o basedll_fmapbase.o basedll_fs_arc.o basedll_fs_filter.o basedll_hash.o basedll_hashmap.o basedll_init.o basedll_intl.o basedll_ipcbase.o basedll_languageinfo.o basedll_list.o basedll_log.o basedll_longlong.o basedll_memory.o basedll_mimecmn.o basedll_module.o basedll_mstream.o basedll_numformatter.o basedll_object.o basedll_platinfo.o basedll_powercmn.o basedll_process.o basedll_regex.o basedll_stdpbase.o basedll_sstream.o basedll_stdstream.o basedll_stopwatch.o basedll_strconv.o basedll_stream.o basedll_string.o basedll_stringimpl.o basedll_stringops.o basedll_strvararg.o basedll_sysopt.o basedll_tarstrm.o basedll_textbuf.o basedll_textfile.o basedll_threadinfo.o basedll_time.o basedll_timercmn.o basedll_timerimpl.o basedll_tokenzr.o basedll_translation.o basedll_txtstrm.o basedll_unichar.o basedll_uri.o basedll_ustring.o basedll_variant.o basedll_wfstream.o basedll_wxcrt.o basedll_wxprintf.o basedll_xlocale.o basedll_xti.o basedll_xtistrm.o basedll_zipstrm.o basedll_zstream.o basedll_fswatchercmn.o basedll_fswatcherg.o basedll_common_secretstore.o basedll_lzmastream.o basedll_common_uilocale.o basedll_fdiodispatcher.o basedll_selectdispatcher.o basedll_appunix.o basedll_unix_dir.o basedll_dlunix.o basedll_epolldispatcher.o basedll_evtloopunix.o basedll_fdiounix.o basedll_unix_snglinst.o basedll_unix_stackwalk.o basedll_timerunx.o basedll_threadpsx.o basedll_utilsunx.o basedll_wakeuppipe.o basedll_fswatcher_kqueue.o basedll_unix_mimetype.o basedll_fswatcher_inotify.o basedll_unix_stdpaths.o basedll_unix_secretstore.o basedll_unix_uilocale.o basedll_event.o basedll_fs_mem.o basedll_msgout.o basedll_utilscmn.o      -L/var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/lib   -Wl,-soname,libwx_baseu-3.2.so.0  -fuse-ld=lld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version  -pthread -fuse-ld=lld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version       -pthread -fuse-ld=lld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version  -Wl,--version-script,/var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/version-script -Wl,--undefined-version -lz -llzma -lm -lpcre2-32  -lz -llzma -lm
llvm-ranlib /var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/lib/libwxscintilla-3.2.a
ld.lld: error: basedll_datetime.o <inline asm>:2:1: default version symbol _ZNK10wxUILocale14GetWeekDayNameEN10wxDateTime7WeekDayENS0_9NameFlagsE@@WXU_3.2.3 must be defined
.symver _ZNK10wxUILocale14GetWeekDayNameEN10wxDateTime7WeekDayENS0_9NameFlagsE, _ZNK10wxUILocale14GetWeekDayNameEN10wxDateTime7WeekDayENS0_9NameFlagsE@@WXU_3.2.3
^


ld.lld: error: basedll_datetime.o <inline asm>:4:1: default version symbol _ZNK10wxUILocale12GetMonthNameEN10wxDateTime5MonthENS0_9NameFlagsE@@WXU_3.2.3 must be defined
.symver _ZNK10wxUILocale12GetMonthNameEN10wxDateTime5MonthENS0_9NameFlagsE, _ZNK10wxUILocale12GetMonthNameEN10wxDateTime5MonthENS0_9NameFlagsE@@WXU_3.2.3
^


ld.lld: error: basedll_intl.o <inline asm>:2:1: default version symbol _ZN10wxUILocale17GetSystemLocaleIdEv@@WXU_3.2.2 must be defined
.symver _ZN10wxUILocale17GetSystemLocaleIdEv, _ZN10wxUILocale17GetSystemLocaleIdEv@@WXU_3.2.2
^

clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:14300: /var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8-abi_x86_64.amd64/lib/libwx_baseu-3.2.so.0.4.1] Error 1


..

---

I will attach a full build log immediately after posting.
Comment 12 Joungmin Lee 2025-05-19 12:10:01 UTC
Created attachment 929122 [details]
build.log after commenting out the bodge patch and both of two seds
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-21 11:54:22 UTC
Thank you! I've reported it upstream at https://github.com/wxWidgets/wxWidgets/issues/25438. I managed to reproduce it with just clang/lld/lto.
Comment 14 Larry the Git Cow gentoo-dev 2025-05-26 07:39:35 UTC
The bug has been closed via the following commit(s):

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

commit a9e87d63f74ba906ee2e21488ef6eeec25e3f46c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-26 07:37:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-26 07:38:57 +0000

    x11-libs/wxGTK: add 3.2.8.1
    
    This drops the sed & patching which broke ABI (see bug #955936) and cranks
    the subslot to force a rebuild of reverse dependencies. soap's already
    added := everywhere needed.
    
    Bug: https://bugs.gentoo.org/955865
    Closes: https://bugs.gentoo.org/955936
    Closes: https://bugs.gentoo.org/956114
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-libs/wxGTK/Manifest             |   2 +
 x11-libs/wxGTK/wxGTK-3.2.8.1.ebuild | 225 ++++++++++++++++++++++++++++++++++++
 2 files changed, 227 insertions(+)