Bug 233463 - japanese/mh: runtime error due to lld 6.0 issue.
Summary: japanese/mh: runtime error due to lld 6.0 issue.
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords: easy, needs-qa
Depends on:
Blocks:
 
Reported: 2018-11-24 06:14 UTC by Takahashi Yoshihiro
Modified: 2018-12-01 10:27 UTC (History)
3 users (show)

See Also:
nyan: maintainer-feedback+
koobs: merge-quarterly?


Attachments
a work-around patch (498 bytes, patch)
2018-11-24 06:14 UTC, Takahashi Yoshihiro
no flags Details | Diff
poudriere testport log on 12.0-RC1 without the patch (699.58 KB, text/plain)
2018-11-28 12:33 UTC, WATANABE Kazuhiro
no flags Details
poudriere testport log on 12.0-RC1 with the patch (702.40 KB, text/plain)
2018-11-28 12:35 UTC, WATANABE Kazuhiro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Takahashi Yoshihiro freebsd_committer 2018-11-24 06:14:33 UTC
Created attachment 199508 [details]
a work-around patch

Some programs (ex. rcvstore) linked by lld 6.0 fail with 'Undefined symbol' error.

For example:
% ./rcvstore
ld-elf.so.1: /usr/local/lib/libmh.so.3: Undefined symbol "tw_dotw"

The tw_dotw is in libzot.a, and it is linked with no error:
cc -L../sbr -fstack-protector  -Xlinker -rpath -Xlinker /usr/local/lib -o xrcvstore rcvstore.o ../config/config.o  -lmh ../mts/libmts.a  ../zotnet/libzot.a ../config/version.o
(xrcvstore is installed as rcvstore)

But libzot.a isn't linked in fact...

When using lld 7.0 instead of lld 6.0, it works fine.
So I attach a work-around patch until lld 7.0 is in base.
Comment 1 WATANABE Kazuhiro 2018-11-27 12:43:56 UTC
Hi, Takahashi-san.

Thanks for your report!  I have reproduced the problem on 12.0-RC1.
Your workaround (and ld.lld70) works good, so I accept the patch 
as the maintainer.
Comment 2 WATANABE Kazuhiro 2018-11-28 12:33:49 UTC
Created attachment 199637 [details]
poudriere testport log on 12.0-RC1 without the patch
Comment 3 WATANABE Kazuhiro 2018-11-28 12:35:23 UTC
Created attachment 199638 [details]
poudriere testport log on 12.0-RC1 with the patch