Skip to content

GCM + FreeBSD + HWCAP_PMULL#736

Merged
sjaeckel merged 1 commit intodevelopfrom
pr/gcm-freebsd
Apr 24, 2026
Merged

GCM + FreeBSD + HWCAP_PMULL#736
sjaeckel merged 1 commit intodevelopfrom
pr/gcm-freebsd

Conversation

@karel-m
Copy link
Copy Markdown
Member

@karel-m karel-m commented Apr 22, 2026

A fix for this type of build failure (seen on FreeBSD/arm64)

cc -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPIC -fPIC -O2 -pipe  -DARGTYPE=4 -c ltc/encauth/gcm/gcm_gf_mult.c -o ltc/encauth/gcm/gcm_gf_mult.o
ltc/encauth/gcm/gcm_gf_mult.c:135:10: fatal error: 'asm/hwcap.h' file not found
  135 | #include <asm/hwcap.h>
      |          ^~~~~~~~~~~~~
1 error generated.
*** Error code 1

AFAIK asm/hwcap.h is a Linux kernel userspace API header, therefore guarded by if defined(__linux__)

Copy link
Copy Markdown
Member

@sjaeckel sjaeckel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sjlombardo what do you think?

@sjlombardo
Copy link
Copy Markdown
Contributor

Agreed, this looks great and will be nice to extend this to FreeBSD!

@sjaeckel sjaeckel merged commit 14d9bd0 into develop Apr 24, 2026
0 of 246 checks passed
@sjaeckel sjaeckel deleted the pr/gcm-freebsd branch April 24, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants