Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 May 2024 11:40:22 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: Our ld doesn't like elf_aarch64: error: unknown emulation
Message-ID:  <CAFDf7UJM9uEKLCoK8u5%2BwVwA_b9T8NOhUF5AkVK3sCQtmrwNPA@mail.gmail.com>
In-Reply-To: <CAFDf7UK05i11Ppcv=O16_eDx3w6ZBFha_RkJUhRqFpcJKL2ngQ@mail.gmail.com>
References:  <CAFDf7UK05i11Ppcv=O16_eDx3w6ZBFha_RkJUhRqFpcJKL2ngQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000011eb40617c6b370
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,

I instructed port to use binutils from ports (version 2.40 native) instead
of base:

`/usr/local/bin/ld: unrecognised emulation mode: elf_aarch64`

```
/usr/local/bin/ld -V |grep aarch64
   aarch64cloudabi
   aarch64cloudabib
   aarch64elf
   aarch64elf32
   aarch64elf32b
   aarch64elfb
   aarch64fbsd
   aarch64fbsdb
   aarch64haiku
   aarch64linux
   aarch64linux32
   aarch64linux32b
   aarch64linuxb
   aarch64pe
```

Any clues about "elf_aarch64" and "aarch64elf" mismatch?

Thanks,

Nuno Teixeira <eduardo@freebsd.org> escreveu (domingo, 5/05/2024 =C3=A0(s)
09:57):

> Hello all,
>
> Trying to figure out why sysutils/slurm-wlm fails to build on aarch64.
>
> `ld: error: unknown emulation: elf_aarch64`
>
> Upstream answer:
>
> "All I can think is that your ld doesn't like elf_aarch64, from the log
> your posting it looks that's being injected from the FreeBSD ports system=
.
> Looking at the man page for ld on Linux it says:
>
> -m emulation Emulate the emulation linker. You can list the available
> emulations with the --verbose or -V options.
>
> So I'd guess you'd need to look at what that version of ld supports and
> then update the ports system to match."
> Does devel/binutils should be used to fix that? And how?
>
> Full log:
>
> https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/pb78025a96=
ed9_s3c1be0b2615/logs/slurm-wlm-23.11.6.log
>
> Thanks in advance,
> --
> Nuno Teixeira
> FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org
>


--=20
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

--000000000000011eb40617c6b370
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>I instructed port to =
use binutils from ports (version 2.40 native) instead of base:<br></div><di=
v><br></div><div>`/usr/local/bin/ld: unrecognised emulation mode: elf_aarch=
64`</div><div><br></div><div>```</div><div>/usr/local/bin/ld -V |grep aarch=
64<br>=C2=A0 =C2=A0aarch64cloudabi<br>=C2=A0 =C2=A0aarch64cloudabib<br>=C2=
=A0 =C2=A0aarch64elf<br>=C2=A0 =C2=A0aarch64elf32<br>=C2=A0 =C2=A0aarch64el=
f32b<br>=C2=A0 =C2=A0aarch64elfb<br>=C2=A0 =C2=A0aarch64fbsd<br>=C2=A0 =C2=
=A0aarch64fbsdb<br>=C2=A0 =C2=A0aarch64haiku<br>=C2=A0 =C2=A0aarch64linux<b=
r>=C2=A0 =C2=A0aarch64linux32<br>=C2=A0 =C2=A0aarch64linux32b<br>=C2=A0 =C2=
=A0aarch64linuxb<br>=C2=A0 =C2=A0aarch64pe</div><div>```</div><div><br></di=
v><div>Any clues about &quot;elf_aarch64&quot; and &quot;aarch64elf&quot; m=
ismatch?</div><div><br></div><div>Thanks,</div></div><br><div class=3D"gmai=
l_quote"><div dir=3D"ltr" class=3D"gmail_attr">Nuno Teixeira &lt;<a href=3D=
"mailto:eduardo@freebsd.org">eduardo@freebsd.org</a>&gt; escreveu (domingo,=
 5/05/2024 =C3=A0(s) 09:57):<br></div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex"><div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>Tryi=
ng to figure out why sysutils/slurm-wlm fails to build on aarch64.</div><di=
v><br></div><div>`ld: error: unknown emulation: elf_aarch64`</div><div><br>=
</div><div>Upstream answer:</div><div><p>&quot;All I can think is that your=
 ld doesn&#39;t like elf_aarch64, from the log=20
your posting it looks that&#39;s being injected from the FreeBSD ports=20
system. Looking at the man page for ld on Linux it says:</p>
<p>-m emulation
        Emulate the emulation linker.  You can list the available=20
emulations with the --verbose or -V options.</p>
<p>So I&#39;d guess you&#39;d need to look at what that version of ld suppo=
rts and=20
then update the ports system to match.&quot;</p></div><div>Does devel/binut=
ils should be used to fix that? And how?</div><div><br></div><div>Full log:=
</div><div><a href=3D"https://pkg-status.freebsd.org/ampere2/data/main-arm6=
4-default/pb78025a96ed9_s3c1be0b2615/logs/slurm-wlm-23.11.6.log" target=3D"=
_blank">https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/pb78=
025a96ed9_s3c1be0b2615/logs/slurm-wlm-23.11.6.log</a></div><div><br></div><=
div>Thanks in advance,<br></div><div><span class=3D"gmail_signature_prefix"=
>-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr">=
<div><font color=3D"#888888">Nuno Teixeira</font></div><div><div><font colo=
r=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div></div></div>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div><div><font =
color=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div>

--000000000000011eb40617c6b370--



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