Bug 298006 - security/libgcrypt: Fix build with CPUTYPE=skylake-avx512 with older clang
Summary: security/libgcrypt: Fix build with CPUTYPE=skylake-avx512 with older clang
Status: Closed DUPLICATE of bug 297987
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-28 03:47 UTC by Xin LI
Modified: 2026-08-28 04:47 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments
Proposed patch (2.44 KB, patch)
2026-08-28 03:47 UTC, Xin LI
delphij: maintainer-approval? (cy)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2026-08-28 03:47:00 UTC
The configure script is flawed that it does not check for support for %zmm* registers.  With llvm < 20, this means it would enable assembler for SM4, which will break build.
Comment 1 Xin LI freebsd_committer freebsd_triage 2026-08-28 03:47:30 UTC
Created attachment 274196 [details]
Proposed patch
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2026-08-28 04:47:42 UTC
See PR/297987. We tried that same patch in that PR. It doesn't work.

*** This bug has been marked as a duplicate of bug 297987 ***