git: f03ed60314e0 - main - security/hs-cryptol: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Jul 2026 20:30:54 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f03ed60314e07e755d530818a6cb564ee7a543a7
commit f03ed60314e07e755d530818a6cb564ee7a543a7
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-07-01 08:15:09 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-07-03 20:30:44 +0000
security/hs-cryptol: fix build on powerpc64*
cbits/cycles.c:73:2: error:
error: Unsupported OS/architecture/compiler!
73 | #error Unsupported OS/architecture/compiler!
| ^
|
73 | #error Unsupported OS/architecture/compiler!
| ^
1 error generated.
---
...__deps_criterion-measurement-0.2.3.0_cbits_cycles.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/security/hs-cryptol/files/patch-__cabal__deps_criterion-measurement-0.2.3.0_cbits_cycles.c b/security/hs-cryptol/files/patch-__cabal__deps_criterion-measurement-0.2.3.0_cbits_cycles.c
new file mode 100644
index 000000000000..2669bdd6ffab
--- /dev/null
+++ b/security/hs-cryptol/files/patch-__cabal__deps_criterion-measurement-0.2.3.0_cbits_cycles.c
@@ -0,0 +1,18 @@
+--- _cabal_deps/criterion-measurement-0.2.3.0/cbits/cycles.c.orig 2001-09-09 01:46:40 UTC
++++ _cabal_deps/criterion-measurement-0.2.3.0/cbits/cycles.c
+@@ -68,6 +68,15 @@
+ return result;
+ }
+
++#elif powerpc64le_HOST_ARCH || powerpc64_HOST_ARCH
++
++StgWord64 criterion_rdtsc(void)
++{
++ StgWord64 ret;
++ __asm__ __volatile__ ("mfspr %0, 268" : "=r"(ret));
++ return ret;
++}
++
+ #else
+
+ #error Unsupported OS/architecture/compiler!