View Single Post
Old 2020-11-28, 19:46   #61
Dylan14's Avatar
Mar 2017

2×7×41 Posts

I have posted a working PKGBUILD for the latest Mlucas to the AUR. You can find it here.

There are two patches that I had to make to the source to get it to build correctly:
1. In the file platform.h, I had to comment out line 1304:
#include <sys/sysctl.h>
This is because the sysctl.h header was removed in Linux Kernel 5.5, per this issue on the PowerShell GitHub.
2. In the file Mlucas.c, I removed the *fp part of FILE on line 100. This is because the linker (gcc 10.2.0) was complaining that fp was defined elsewhere (namely, in gcd_lehmer.c).
Dylan14 is offline   Reply With Quote