Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923946 - dev-libs/libphonenumber-8.12.39 fails to compile: ld.lld: error: undefined reference due to --no-allow-shlib-undefined: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> absl::lts_20230802::log_internal::MakeCheckOpString<lon
Summary: dev-libs/libphonenumber-8.12.39 fails to compile: ld.lld: error: undefined re...
Status: RESOLVED FIXED
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: 2024-02-06 15:55 UTC by Agostino Sarubbo
Modified: 2024-10-05 11:12 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,95.99 KB, text/plain)
2024-02-06 15:55 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-02-06 15:55:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/libphonenumber-8.12.39 fails to compile.
Discovered on: amd64 (internal ref: clang-lld_tinderbox)
System: CLANG-LLD (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CLANG-LLD)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-02-06 15:55:55 UTC
Created attachment 884420 [details]
build.log

build log and emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2024-02-06 18:14:06 UTC
Not reproducible on a GCC system.
Comment 3 darkkirb 2024-04-29 19:41:20 UTC
As a workaround for this issue, you can use the BFD linker (so -fuse-ld=bfd instead of -fuse-ld=lld). Tested with link time optimizations turned on.
Comment 4 Larry the Git Cow gentoo-dev 2024-10-05 11:12:26 UTC
The bug has been closed via the following commit(s):

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

commit 8562873238086a94ba2a9b9ecad1059fd1cd689c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-05 11:06:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-05 11:10:11 +0000

    dev-libs/libphonenumber: add 8.13.47
    
    * Replace CMake patch with newer version from Exherbo (original came
      from there too)
    * Import another patch from Exherbo for newer abseil-cpp (fixes linking
      w/ lld, mold)
    * Drop -Werror
    * Wire up tests again (sorry, not rebasing the CMake patch, this is
      good enough ;))
    
    Closes: https://bugs.gentoo.org/889910
    Closes: https://bugs.gentoo.org/923946
    Closes: https://bugs.gentoo.org/939873
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libphonenumber/Manifest                   |  1 +
 .../files/libphonenumber-8.13.47-cmake.patch       | 31 +++++++++++
 ...bphonenumber-8.13.47-protobuf-link-abseil.patch | 24 +++++++++
 .../files/libphonenumber-8.13.47-werror.patch      | 23 +++++++++
 .../libphonenumber/libphonenumber-8.13.47.ebuild   | 60 ++++++++++++++++++++++
 5 files changed, 139 insertions(+)