[OE-core] [PATCH 8/9] binutils: Bail out if gold is used on 32/64 bit RISC-V

Khem Raj raj.khem at gmail.com
Thu Feb 13 16:08:31 UTC 2020


On Wed, Feb 12, 2020 at 11:31 PM Adrian Bunk <bunk at stusta.de> wrote:

> On Wed, Feb 12, 2020 at 10:38:22PM -0800, Khem Raj wrote:
> > gold is not supporting risc-v yet and, this will cause subltle errors
> > during build e.g. autoconf not finding certain features like visibility
> > and it could take a while to unwind the problem. Its better to error out
> > early
> >...
> > @@ -163,3 +165,8 @@ inherit update-alternatives
> >  ALTERNATIVE_PRIORITY = "100"
> >
> >  ALTERNATIVE_${PN}_class-target = "${USE_ALTERNATIVES_FOR}"
> > +
> > +python () {
> > +    if bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', True, False,
> d):
> > +        bb.fatal("Gold linker does not _yet_ support RISC-V
> architecture please remove ld-is-gold from DISTRO_FEATURES")
> > +}
>
> This lacks some check for RISC-V,
> currently it errors for all architectures.


Yes this in itself was not enough please try the v2 series


>
> cu
> Adrian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20200213/a65f48cd/attachment-0001.html>


More information about the Openembedded-core mailing list