Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2021 10:43:40 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Alex Richardson <arichardson@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 021385aba562 - main - Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain
Message-ID:  <20210911144340.pmpxca7obksc7v5g@mutt-hbsd>
In-Reply-To: <202109060924.1869O2Dk045877@gitrepo.freebsd.org>
References:  <202109060924.1869O2Dk045877@gitrepo.freebsd.org>

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

--oonxqctudmjayiat
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 06, 2021 at 09:24:02AM +0000, Alex Richardson wrote:
> The branch main has been updated by arichardson:
>=20
> URL: https://cgit.FreeBSD.org/src/commit/?id=3D021385aba56279febcfdcc64d2=
3673a0106ae45d
>=20
> commit 021385aba56279febcfdcc64d23673a0106ae45d
> Author:     Alex Richardson <arichardson@FreeBSD.org>
> AuthorDate: 2021-09-06 08:49:49 +0000
> Commit:     Alex Richardson <arichardson@FreeBSD.org>
> CommitDate: 2021-09-06 08:49:49 +0000
>=20
>     Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolcha=
in
>    =20
>     When WITH_LLVM_BINUTILS is set, we will install the LLVM binutils as
>     ar/ranlib/nm/objcopy/etc. instead of the elftoolchain ones.
>     Having the LLVM binutils instead of the elftoolchain ones allows us t=
o use
>     features such as LTO that depend on binutils that understand LLVM IR.
>     Another benefit will be an improved user-experience when compiling wi=
th
>     AddressSanitizer, since ASAN does not symbolize backtraces correctly =
if
>     addr2line is elftoolchain addr2line instead of llvm-symbolizer.
>     See https://lists.freebsd.org/archives/freebsd-toolchain/2021-July/00=
0062.html
>     for more details.
>    =20
>     This is currently off by default but will be turned on by default at =
some
>     point in the near future.

Hey Alex,

It appears when MK_LLVM_BINUTILS is set, a strip binary/link doesn't
get installed. So /usr/bin/strip doesn't exist. This causes a problem
when building packages since even ports-mgmt/pkg relies on strip.

I'm working on a candidate patch to fix this right now. But if you
beat me to the punch, all the better. ;-)

Thanks,

--=20
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A=
4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc

--oonxqctudmjayiat
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmE8wJkACgkQ/y5nonf4
4fphpA/8CIm0S2DGg5Hau2eKSPGLsgpbhmkj9kwpB4zXPdMm6Go7YqQFSlTXHvaI
nyzP2X+QZgt4z794fUiiFzX/y0P2elW02WQZG60fJKLZ0RetG32SLT/IUG6tM6at
Ngwwed5UEOMRfocdT5oSW7lt8kyZk7XRgWqx3zresEg/mNKsCj7LecLbX3J0UQeV
naoDAmrTCAJVBqPka3dIW6VycTbbUiEI8ysZbnu5BHe/N4/uLXGUIiT0xvPozJNS
pljHZc8Y4Sahf52AGEUa7b0EVZprGH1DwI2d1oi7iW8YinZ4Kw5TvwYgw3Zvglt1
A3pt0vIOBEfskCtxrQlDdhPqnVSs2v2jGAWhpupH3V5+em8cPvvpDl7Js2cZ3Leg
7X4nvWPTewM9PgnX7ToCZeKrGr02+hMLe77KQri6ymnVy5duFxD6+bjB9yugOeRO
ADGnKRFxTq9J5KOuOa2wguJQ/q4DtVj+5N50gb9v/UWWGF174TPpL+nQ5UGTJB/f
kIKnYCu+b9uHXXUHtLzdpCVCPklOsG8yquPdrN94N5276FkxRS2a5hmPn8GEy5fS
YR30eXMQoc1gq5s+Q7Kqw89+lLPPmskmZ62Kmx/ib7boXL/cr/dWFfQEkRNmxoJM
gvynHP+U68pEkoHyiSaMJ49yuqY+IfTSvYUWazDrSsy+/xMA0cQ=
=EqXr
-----END PGP SIGNATURE-----

--oonxqctudmjayiat--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210911144340.pmpxca7obksc7v5g>