Comments (8)
@maximpichler which compiler/version is used on OpenBSD?
from cryptohash-sha256.
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
from cryptohash-sha256.
@maximpichler sorry, I meant the c compiler. This is about the __builtin_bswap32
C compiler primitives missing even though the compiler seems to claim to be GCC-compatible...
from cryptohash-sha256.
$ gcc --version
gcc (GCC) 4.2.1 20070719
http://man.openbsd.org/OpenBSD-5.9/man1/gcc-local.1
from cryptohash-sha256.
Yeah, so GCC 4.3 was when __builtin_bswap32
was added (and also when GCC moved to GPLv3), so we're a bit stuck there (I imagine that's part of the reason OpenBSD has not upgraded - aside from the fact they have their own forked modifications). Sigh.
from cryptohash-sha256.
That's strange... when searching for __builtin_bswap32
you rather find evidence that __builtin_bswap32
was added starting with GCC >= 4.2 rather than >= 4.3:
- https://www.sourceware.org/ml/libc-alpha/2012-04/msg00205.html
- https://cmake.org/Bug/view.php?id=13430
That being said, we can just tighten the version-check to check for >= 4.3
instead and call it a day :-)
from cryptohash-sha256.
The manuals suggest otherwise: https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Keyword-Index.html mentions __builtin_bswap32, wheras https://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Keyword-Index.html doesn't.
from cryptohash-sha256.
Thanks for the swift fix and release!
from cryptohash-sha256.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryptohash-sha256.