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

Bug 914712

Summary: sys-libs/talloc-2.4.1 - [clang] ld.lld: error: version script assignment of local to symbol _end failed: symbol not defined
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: CONFIRMED ---    
Severity: normal CC: ezzieyguywuf, jan.koester, mark.j, StormByte, waltercool, wikky, yamadharma
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
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:talloc-2.4.1:20230925-170247.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-09-25 17:54:25 UTC
too long lines were shrinked:

[20/30] Compiling bin/default/lib/replace/replace.empty.c
17:03:51 runner ['clang', '-O2', '-pipe', '-march=native', '-fno-diagnostics-color', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_replace_MODULES=NULL', '-DSTATIC_replace_MODULES_PROT
[21/30] Compiling talloc.c
17:03:51 runner ['clang', '-O2', '-pipe', '-march=native', '-fno-diagnostics-color', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-fstack-protector-strong', '-fstack-clash-protection', '-fvisibility=hidden', '-D_PUBLIC_=_PRIVATE_', '-DSTATIC_talloc
[22/30] Linking bin/default/libtalloc.so
17:03:51 runner ['clang', '-O2', '-pipe', '-march=native', '-fno-diagnostics-color', '-Wl,-O1', '-Wl,--as-needed', '-Wl,--as-needed', '-Wl,--defsym=__gentoo_check_ldflags__=0', '-Wl,--version-script=/var/tmp/portage/sys-libs/talloc-2.4.1/work/talloc-2.4.1-abi_x86_64.amd64/bin/default/talloc.vscript'
ld.lld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined

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

  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 *
  [2]   php8.2
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit 2bb842cc94982e926a763cfe91d20fc7004c0d15
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 25 16:01:43 2023 +0000

    2023-09-25 16:01:43 UTC

emerge -qpvO sys-libs/talloc
[ebuild  N    ] sys-libs/talloc-2.4.1  USE="python -compat -test (-valgrind)" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-09-25 17:54:26 UTC
Created attachment 871417 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-25 17:54:28 UTC
Created attachment 871418 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-09-25 17:54:29 UTC
Created attachment 871419 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-25 17:54:29 UTC
Created attachment 871420 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-25 17:54:30 UTC
Created attachment 871421 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-25 17:54:32 UTC
Created attachment 871422 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-25 17:54:33 UTC
Created attachment 871423 [details]
sys-libs:talloc-2.4.1:20230925-170247.log
Comment 8 Toralf Förster gentoo-dev 2023-09-25 17:54:34 UTC
Created attachment 871424 [details]
temp.tar.xz
Comment 9 wolfgang 2024-05-08 14:51:56 UTC
I can confirm this still exists as of sys-libs/talloc-2.4.2
Comment 10 Jan Koester 2024-06-26 08:38:03 UTC
https://reviews.llvm.org/D135402
Comment 11 Vic Kerr (wikky) 2024-12-12 07:37:38 UTC
(In reply to Jan Koester from comment #10)
> https://reviews.llvm.org/D135402

Indeed, the build succeeds with -Wl,--undefined-version in LDFLAGS.