Re: git: 0be0c12df923 - main - security/libgcrypt: Fix build on older LLVM

From: Alexey Dokuchaev <danfe_at_freebsd.org>
Date: Fri, 28 Aug 2026 13:14:10 UTC
On Fri, Aug 28, 2026 at 06:02:03AM -0700, Cy Schubert wrote:
> In message <apFSYhwKj1NOujoK@FreeBSD.org>, Alexey Dokuchaev writes:
> > On Thu, Aug 27, 2026 at 11:53:07PM +0000, Cy Schubert wrote:
> > > commit 0be0c12df92354b1782a8bde72f1b82d0c403044
> > > 
> > >   security/libgcrypt: Fix build on older LLVM
> > > 
> > >   According to dim@ LLVM20 was the first LLVM to properly support the
> > >   requried SM4-EVEX instruction set. Let's make sure we have the minimum
> > >   needed LLVM installed.
> >
> > Given that `security/libgcrypt' sits quite low on the dependency chain
> > for many ports, pulling heavy LLVM to translate a few instructions might
> > be an overkill.  Can't we patch it up to avoid their usage or manually
> > provide pre-generated bytecode for that specific case?
> 
> The suggested patch does NOT work.

There was no patch in this email subthread so I'm uncertain what are you
referring to.  Since I cannot afford to download or build LLVM20 locally
I've simply disabled Intel AVX512 support so I can continue working on
ports and thus am now less invested in this issue.  I'm sure you'll find
a more adequate solution eventually. :)

./danfe