Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Mar 2018 17:50:40 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        Tobias Kortkamp <tobik@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org,  svn-ports-head@freebsd.org
Subject:   Re: svn commit: r465725 - head/lang/myrddin
Message-ID:  <CAPyFy2AF%2BwL06wQ8LUUhJUrKKXga%2B1ys8YcWsB7zjAkVJ62P5Q@mail.gmail.com>
In-Reply-To: <CAPyFy2Dc4Kbv%2B1kG%2BjydXPhxYx6wuscSxxR2Wq4ZkOLzX3g-xg@mail.gmail.com>
References:  <201803271745.w2RHjUHI070331@repo.freebsd.org> <CAPyFy2Dc4Kbv%2B1kG%2BjydXPhxYx6wuscSxxR2Wq4ZkOLzX3g-xg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27 March 2018 at 16:21, Ed Maste <emaste@freebsd.org> wrote:
> On 27 March 2018 at 13:45, Tobias Kortkamp <tobik@freebsd.org> wrote:
>> Author: tobik
>> Date: Tue Mar 27 17:45:30 2018
>> New Revision: 465725
>> URL: https://svnweb.freebsd.org/changeset/ports/465725
>>
>> Log:
>>   lang/myrddin: Fix build when ld is ld.lld
>>
>>   ld: error: <internal>: section sh_addralign is not a power of 2
>>
>>   Myrddin's build system directly calls ld so LLD_UNSAFE can't work
>>   here.  Workaround the issue by adding a binary alias to ld.bfd to fix
>>   the build for now.
>
> Thanks - I wasn't aware of BINARY_ALIAS before. Also, thanks for
> adding LLD_UNSAFE in the comment so that it can be found along with
> the other lld-related failures in the future, with "grep -r
> LLD_UNSAFE".
>
> What would you think about setting BINARY_ALIAS=ld=ld.bfd
> automatically, under LLD_UNSAFE?

Antoine raised an important point in reply to my application of
BINARY_ALIAS to devel/pdcurses in r465755: arm64 has no ld.bfd by
default, and LLD_UNSAFE automatically handles using binutils from
ports for this case. So we need LLD_UNSAFE in addition to
BINARY_ALIAS.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2AF%2BwL06wQ8LUUhJUrKKXga%2B1ys8YcWsB7zjAkVJ62P5Q>