Bug 274000 - devel/talloc: fix build with lld 17
Summary: devel/talloc: fix build with lld 17
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks: 273753
  Show dependency treegraph
 
Reported: 2023-09-21 16:44 UTC by Dimitry Andric
Modified: 2023-10-06 17:55 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (timur)


Attachments
devel/talloc: fix build with lld 17 (621 bytes, patch)
2023-09-21 16:45 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2023-09-21 16:44:01 UTC
Building devel/talloc with lld 17 results in the following link error:

08:58:52 runner ['cc', '-Wl,--version-script=/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/talloc.vscript', '-shared', '-Wl,-h,libtalloc.so.2', 'talloc.c.6.o', 'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o', 'lib/replace/xattr.c.2.o', '-o/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/libtalloc.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-fstack-protector-strong', '-Wl,-no-undefined']
ld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
ld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined
ld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)
script file to fix the error.

Since the linker version scripts are generated dynamically, suppress
errors with lld >= 17 due to these undefined symbols.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-09-21 16:45:40 UTC
Created attachment 245095 [details]
devel/talloc: fix build with lld 17
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-10-06 17:52:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=641e12af41cd9fe92a41a83d59626a43d84e94d2

commit 641e12af41cd9fe92a41a83d59626a43d84e94d2
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-21 16:41:39 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-10-06 17:48:52 +0000

    devel/talloc: fix build with lld 17

    Building devel/talloc with lld 17 results in the following link error:

      08:58:52 runner ['cc', '-Wl,--version-script=/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/talloc.vscript', '-shared', '-Wl,-h,libtalloc.so.2', 'talloc.c.6.o', 'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o', 'lib/replace/xattr.c.2.o', '-o/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/libtalloc.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-fstack-protector-strong', '-Wl,-no-undefined']
      ld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
      ld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined
      ld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined
      cc: error: linker command failed with exit code 1 (use -v to see invocation)
      script file to fix the error.

    Since the linker version scripts are generated dynamically, suppress
    errors with lld >= 17 due to these undefined symbols.

    PR:             274000
    Approved by:    maintainer timeout (2 weeks)
    MFH:            2023Q4

 devel/talloc/Makefile | 4 ++++
 1 file changed, 4 insertions(+)