-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pcg-c fails to build unless 128-bit ops are supported (as e.g. on NetBSD/powerpc) #32
Comments
You don't seem to have checked out the current version as this was fixed in 2017. |
That's entirely possibly. I'm referring to the latest published C version, 0.94, which appears to have this issue. Has there been a later release of that code base? https://www.pcg-random.org/download.html appears to say "no". |
Ah, I see, so the zip on the website needs updating or pointing at this repository for the zip. I didn't notice because I looked at the code here and then downloaded the most recent version. For example: https://github.com/imneme/pcg-c/archive/refs/heads/master.zip |
I come at this problem working on the packaging system originating at NetBSD, I hope you're not allergic to making a full release? At the minimum, a tag should be created in the repository to mark exactly which point corresponds to this release, but of course a "full" 0.95 release would be preferable. |
This isn't my repo, so like you I can only suggest to @imneme to label up a release. However, for you now, Git is designed to be able to uniquely identify any commit. It is usual to choose a commit for your submodule and freeze your reference at that commit. Also for the commit of the current master Github will create a zip if you ask for the URL |
This popped up on my radar due to a build failure on NetBSD/powerpc. This platform
does not have native support for 128-bit integer operations.
Inspecting
include/pcg_variants.h
reveals thatPCG_HAS_128BIT_OPS
ends upas undefined on this platform, due to lack of
__SIZEOF_INT128__
being defined, andhence
PCG_STATE_SETSEQ_64_INITIALIZER
also ends up being undefined, as it'sonly defined if
PCG_HAS_128BIT_OPS
is defined.The text was updated successfully, but these errors were encountered: