[Bug 224673] misc/seabios: fails to link with lld as /usr/bin/ld and does honour LD env variable override

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 29 14:54:00 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224673

            Bug ID: 224673
           Summary: misc/seabios: fails to link with lld as /usr/bin/ld
                    and does honour LD env variable override
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: royger at freebsd.org
          Reporter: emaste at freebsd.org
            Blocks: 214864
          Assignee: royger at freebsd.org
             Flags: maintainer-feedback?(royger at freebsd.org)

When lld is /usr/bin/ld (WITH_LLD_IS_LD in src.conf) seabios fails to build due
to a test for an old binutils ld issue:


The version of LD on this system (ld) does not properly handle
alignments.  As a result, this project can not be built.

The problem may be the result of this LD bug report:
 http://sourceware.org/bugzilla/show_bug.cgi?id=12726

Please update to a working version of binutils and retry.


Normally we can use LLD_UNSAFE=yes in the ports Makefile which sets LD=ld.bfd
and adds -fuse-ld=bfd to LDFLAGS, but seabios's Makefile doesn't honour LD set
from the environment because it overrides it with:

LD=$(CROSS_PREFIX)ld

FWIW lld also fails to link the test case, but I suspect the failure is not the
same as the old binutils issue. I do not know if lld can successfully link
seabios. lld's error (from the invocation in scripts/test-build.sh) is:

ld.lld: error: tmp/tmp_testcompile1.lds:4: unable to move location counter
backward for: .mysection


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214864
[Bug 214864] [exp-run] test build with lld as /usr/bin/ld
-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list