Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Dec 2017 14:53:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 224673] misc/seabios: fails to link with lld as /usr/bin/ld and does honour LD env variable override
Message-ID:  <bug-224673-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224673

            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@freebsd.org
          Reporter: emaste@freebsd.org
            Blocks: 214864
          Assignee: royger@freebsd.org
             Flags: maintainer-feedback?(royger@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=3D12726

Please update to a working version of binutils and retry.


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

LD=3D$(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=3D214864
[Bug 214864] [exp-run] test build with lld as /usr/bin/ld
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224673-13>