Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 914640

Summary: sys-libs/binutils-libs-2.41-r2 - [clang] ld.lld: error: version script assignment of LIBCTF_1.0 to symbol ctf_label_set failed: symbol not defined
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: ajak, nvinson234, puttabutta, sht852680833, StormByte
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://inbox.sourceware.org/binutils/dfda42d963b25d850378908cba48533561fc5577.1703790579.git.nvinson234@gmail.com/T/#u
See Also: https://github.com/gentoo/gentoo/pull/35532
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 912821    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
sys-libs:binutils-libs-2.41-r2:20230925-052059.log.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-09-25 08:22:24 UTC
too long lines were shrinked:

make[3]: Leaving directory '/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41-abi_x86_64.amd64/libctf'
libtool: link: clang -shared  -fPIC -DPIC  .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o .libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o .libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o .libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o .libs/libctf_la-ctf-link.o .libs
make[3]: Entering directory '/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41-abi_x86_64.amd64/libctf'
/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41/libctf  -D_GNU_SOURCE -I/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41/libctf -I/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutil
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41/libctf -D_GNU_SOURCE -I/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41/libctf -I/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41/libctf/../include -I
make[3]: Leaving directory '/var/tmp/portage/sys-libs/binutils-libs-2.41-r2/work/binutils-2.41-abi_x86_64.amd64/libctf'
ld.lld: error: version script assignment of 'LIBCTF_1.0' to symbol 'ctf_label_set' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBCTF_1.0' to symbol 'ctf_label_get' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_clang-20230924-160600

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.1+libcxx
Python 3.11.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.72.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit b53d792084e5fb7f305143df5fa7afae2703e978
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 25 04:31:35 2023 +0000

    2023-09-25 04:31:35 UTC

emerge -qpvO sys-libs/binutils-libs
[ebuild  N    ] sys-libs/binutils-libs-2.41-r2  USE="nls -64-bit-bfd (-cet) -multitarget -static-libs -test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2023-09-25 08:22:24 UTC
Created attachment 871330 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-25 08:22:25 UTC
Created attachment 871331 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-09-25 08:22:26 UTC
Created attachment 871332 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-25 08:22:27 UTC
Created attachment 871333 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-25 08:22:28 UTC
Created attachment 871334 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-25 08:22:29 UTC
Created attachment 871335 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-25 08:22:30 UTC
Created attachment 871336 [details]
sys-libs:binutils-libs-2.41-r2:20230925-052059.log.xz
Comment 8 Toralf Förster gentoo-dev 2023-09-25 08:22:31 UTC
Created attachment 871337 [details]
temp.tar.xz
Comment 9 Mazunki Hoksaas 2023-12-27 03:37:16 UTC
Seems related: https://github.com/termux/termux-packages/issues/18810
Comment 10 Larry the Git Cow gentoo-dev 2024-06-29 16:35:07 UTC
The bug has been closed via the following commit(s):

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

commit aa475b61719c0c2bb4ce045f6a4f2f63b1f81702
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-29 16:34:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-29 16:34:57 +0000

    sys-libs/binutils-libs: pass -Wl,--undefined-version for now
    
    Just pass -Wl,--undefined-version as this is fixed upstream in master
    (and will be in 2.43) but it ended up being reworked quite a bit.
    
    Closes: https://github.com/gentoo/gentoo/pull/35532
    Closes: https://bugs.gentoo.org/914640
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/binutils-libs/binutils-libs-2.42-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 3de872a3105ef25730fa4bfcdbdd96fc139b40c7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-29 16:32:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-29 16:34:56 +0000

    sys-devel/binutils: drop -Wl,--undefined-version passing
    
    This should be fixed upstream now.
    
    Bug: https://bugs.gentoo.org/914640
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/binutils/binutils-9999.ebuild | 2 --
 1 file changed, 2 deletions(-)
Comment 11 Larry the Git Cow gentoo-dev 2024-11-16 10:08:40 UTC
The bug has been referenced in the following commit(s):

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

commit 84b3aab16ad1f18cfa0d8272945494d3edb2897b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-16 10:07:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-16 10:07:49 +0000

    sys-libs/binutils-libs: drop obsolete workaround
    
    See 3de872a3105ef25730fa4bfcdbdd96fc139b40c7.
    
    Bug: https://bugs.gentoo.org/914640
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/binutils-libs/binutils-libs-2.43-r2.ebuild | 4 ----
 sys-libs/binutils-libs/binutils-libs-2.43-r3.ebuild | 4 ----
 sys-libs/binutils-libs/binutils-libs-9999.ebuild    | 4 ----
 3 files changed, 12 deletions(-)