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

Bug 914898

Summary: net-fs/samba-4.19.0: ld.lld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
Product: Gentoo Linux Reporter: Brahmajit Das <brahmajit.xyz>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: UNCONFIRMED ---    
Severity: normal CC: brahmajit.xyz, phantom4, StormByte, waltercool
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 912821    
Attachments: Build log and emerge --info
For now this workaround works

Description Brahmajit Das 2023-09-28 19:50:35 UTC
With lld 17, samba-4.19.0 fails to build, in the linking phase.

Reproducible: Always

Steps to Reproduce:
1. On llvm profile, be on llvm:17
2. Emerge net-fs/samba-4.19.0
Actual Results:  
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
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected Results:  
Build completes
Comment 1 Brahmajit Das 2023-09-28 19:52:31 UTC
Created attachment 871689 [details]
Build log and emerge --info
Comment 2 Brahmajit Das 2023-09-28 19:54:23 UTC
Created attachment 871690 [details, diff]
For now this workaround works
Comment 3 Pablo Cholaky 2024-03-08 07:14:14 UTC
I can confirm this patch works at samba-4.19.4.

Using regular profile with clang as default compiler and lld as default linker