Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2023 19:21:54 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        sgk@troutmask.apl.washington.edu
Cc:        freebsd-current@freebsd.org
Subject:   Re: core dump in ld during buildworld
Message-ID:  <148DE8E6-E1F2-4132-992A-1A2B9D438B63@FreeBSD.org>
In-Reply-To: <Y/Gwbr63I8e5oWDx@troutmask.apl.washington.edu>
References:  <Y/FuYLIbwo0xBPVK@troutmask.apl.washington.edu> <25B4B3AD-3791-44D0-9FFA-7F1C2A9E82B9@FreeBSD.org> <Y/F0CXM5Lo8WKYQs@troutmask.apl.washington.edu> <Y/Gwbr63I8e5oWDx@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_EACB1B30-8690-4903-AE71-997401390EDA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 19 Feb 2023, at 06:15, Steve Kargl <sgk@troutmask.apl.washington.edu> =
wrote:
>=20
> On Sat, Feb 18, 2023 at 04:57:45PM -0800, Steve Kargl wrote:
>>>=20
>>> At that point it is still using the system compiler and linker, and =
it
>>> seems that the latter is lld. Do you know which version it is?
>>>=20
>>=20
>> Good question.  Unfortunate ident(1) is useless in a git world.
>>=20
>> % ll /usr/bin/ld.lld
>> -r-xr-xr-x  1 root  wheel  - 41754432 Jan 15 12:03 /usr/bin/ld.lld
>>=20
>> This was built from source from Jan 15 2023.
>>=20
>> % /usr/bin/ld.lld --version
>> LLD 14.0.5 (FreeBSD llvmorg-14.0.5-0-gc12386ae247c-1400004) =
(compatible with GNU linkers)
>>=20
>=20
> So, is there some way to rebild only ld.lld and install a new loader?
>=20
> % cd /usr/src/usr.bin/clang/lld
> % make depend
> llvm-tblgen -gen-opt-parser-defs -I =
/usr/src/contrib/llvm-project/llvm/include -d Options.inc.d  -o =
Options.inc /usr/src/contrib/llvm-project/lld/ELF/Options.td
> make: exec(llvm-tblgen) failed (No such file or directory)
> *** Error code 1
>=20
> How to I fix this?

Assuming llvm-tblgen has already been built (it's a bootstrap-tool),
and you have a regular setup, it should be in:

=
/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.bin/clang/llvm-tblgen/llvm-=
tblgen

You could try setting LLVM_TBLGEN to that path, then first build libllvm
just to be sure, then usr.bin/clang/lld:

export =
LLVM_TBLGEN=3D/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.bin/clang/llv=
m-tblgen/llvm-tblgen
make -C /usr/src/lib/clang/libllvm
make -C /usr/src/usr.bin/clang/lld

If that works, you can run make install from usr.bin/clang/lld.

-Dimitry


--Apple-Mail=_EACB1B30-8690-4903-AE71-997401390EDA
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCY/JowgAKCRCwXqMKLiCW
o33SAKCctMa74JkhE+Id3cbKmfoFNDT3sgCg2slzcgTf1YN5LLsG7mjXjRKBoBM=
=z8yc
-----END PGP SIGNATURE-----

--Apple-Mail=_EACB1B30-8690-4903-AE71-997401390EDA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?148DE8E6-E1F2-4132-992A-1A2B9D438B63>