From nobody Mon May 06 10:40:22 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VXyc264Myz5Jvjr for ; Mon, 06 May 2024 10:40:34 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VXyc25Z6vz3wZb for ; Mon, 6 May 2024 10:40:34 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714992034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ewOpzKPh9zf55RPANgQanKnbY1ErmsS6Ovyzr30TFYI=; b=VfM8R8wgKcUi3Lbx1mYKUMygTXwMjSyuERyiP38w1GJEKscMofFcFKMjTiP0Ty3vBm8YFN 76w+ynm8u2eKAIQlyUJCKRb36qoJ8HqnLTHGn3IMPonheLlDKyBjz46RB4INBMROPHX20E sScotTdHHTTFUXuph9ocSe43QKcBI11+31B2EM9T9mWg4VYKg1uMJelPFum197F5SVd4kn mP8i5lgoqYNjBAJBXuVG9taAR1Torzu2eJK4yLvkO+sWI/bkU/2e7kQpw9RdUIfHrvcqRK Nq5RMQlXK2Of1HdWCMohCQRic9UGDFj+HMKfUZ46bdxILNGDiG04sUkKSp+H/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714992034; a=rsa-sha256; cv=none; b=GOZv2gbD1Mq/MhaV5tBjkZzye//ekwg5Y/88AnKnkXLSuWlcldeyMvb2tVgK865N003D+/ JCUKiqPeFVXQzurtjrCmObBqYo4PePPC1AjCGjzmlQhtJTN7eL0b6BThJcvpcuT1Oqa5nQ o8p65u8T+CIEZ+GTwYN+jTH3dxVR4r1rbVpCEjZREDgIDz65ZhXVlW3QXBIEuu10O4BLaQ OvuxUQKW6Ot5GTXPcWSQ6mUxFWNO45Ss0Qxzviz2UtZMx5M8iB1YfJLHy/SXuq6VxpaqdV J1QM4Gd6zJ6q0R5ea8zeS46I8BzqbQTOqieCX6Niefhtlhft1vzK8jRW8FF2lA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714992034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ewOpzKPh9zf55RPANgQanKnbY1ErmsS6Ovyzr30TFYI=; b=YflOYky9MW4X7EzMT4GfOtR5tBROZ7JalG03DVc2nnZN87rfstzO3t/Bai5yQhNC/gSth2 ZlixRVHsEDxehWk5QzlZGdGv/dwGj9v0wVB/Pzlnx/FQxTxXX+scwbQg2MTvpqAKnsy7Od 9adZXxud1olpREC5wV8zf4dx2FHDL1WvgBPEvODEffVCW60Usm+SHQnxxykuib9WKzYtSv LH18WGW7FedJJ2YNahdsoLy03i2sxPWsApGjljeBStH24si4gSj0yx2tWINHEec5BrwxXk /lc19ZKHh+t36Y8WSD359CUgIr4uX8AhfRYLVlDX6He+rFrUCGnVnaSpGfYHrw== Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VXyc253Lnz1BKs for ; Mon, 6 May 2024 10:40:34 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-deb99fa47b6so223497276.0 for ; Mon, 06 May 2024 03:40:34 -0700 (PDT) X-Gm-Message-State: AOJu0YykQ/SjaxOfobFt/hSKoUBPwW/sWdJsHNmLcBNcORtfvcWrWte9 R5jkajnckSoGU+3vhoVzQy9Sp2zMA2aEIWvYPTMpMqK9h5Y0MQJif7s7Rm8cANKK9X5kstQeDeW llyIcyAD6Rtlj4VUj3q1gCw5YvM8= X-Google-Smtp-Source: AGHT+IEUmi/x+M7urOPnM5PdgerP5FrJfrO2ye/imUGzQT595Pbqxh+UV5HjSoUJFmFF73SmZhB3twul1JvL1IpBbpk= X-Received: by 2002:a05:6902:1370:b0:de5:416a:f9ab with SMTP id bt16-20020a056902137000b00de5416af9abmr9276281ybb.25.1714992034417; Mon, 06 May 2024 03:40:34 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Mon, 6 May 2024 11:40:22 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Our ld doesn't like elf_aarch64: error: unknown emulation To: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000011eb40617c6b370" --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 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: Web: https://FreeBSD.org > --=20 Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org --000000000000011eb40617c6b370 Content-Type: text/html; 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_aarch= 64`

```
/usr/local/bin/ld -V |grep aarch= 64
=C2=A0 =C2=A0aarch64cloudabi
=C2=A0 =C2=A0aarch64cloudabib
=C2= =A0 =C2=A0aarch64elf
=C2=A0 =C2=A0aarch64elf32
=C2=A0 =C2=A0aarch64el= f32b
=C2=A0 =C2=A0aarch64elfb
=C2=A0 =C2=A0aarch64fbsd
=C2=A0 =C2= =A0aarch64fbsdb
=C2=A0 =C2=A0aarch64haiku
=C2=A0 =C2=A0aarch64linux=C2=A0 =C2=A0aarch64linux32
=C2=A0 =C2=A0aarch64linux32b
=C2=A0 =C2= =A0aarch64linuxb
=C2=A0 =C2=A0aarch64pe
```

Any clues about "elf_aarch64" and "aarch64elf" m= ismatch?

Thanks,

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

Tryi= ng 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=20 your posting it looks that's being injected from the FreeBSD ports=20 system. Looking at the man page for ld on Linux it says:

-m emulation Emulate the emulation linker. You can list the available=20 emulations with the --verbose or -V options.

So I'd guess you'd need to look at what that version of ld suppo= rts and=20 then update the ports system to match."

Does devel/binut= ils should be used to fix that? And how?

Full log:=

<= div>Thanks in advance,
--
=
Nuno Teixeira
FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://Fr= eeBSD.org


--
Nuno Teixeira
FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://Fr= eeBSD.org
--000000000000011eb40617c6b370--