Giter Club home page Giter Club logo

Comments (8)

hvr avatar hvr commented on July 24, 2024

@maximpichler which compiler/version is used on OpenBSD?

from cryptohash-sha256.

maximpichler avatar maximpichler commented on July 24, 2024
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

from cryptohash-sha256.

hvr avatar hvr commented on July 24, 2024

@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.

maximpichler avatar maximpichler commented on July 24, 2024
$ gcc --version
gcc (GCC) 4.2.1 20070719 

http://man.openbsd.org/OpenBSD-5.9/man1/gcc-local.1

from cryptohash-sha256.

thoughtpolice avatar thoughtpolice commented on July 24, 2024

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.

hvr avatar hvr commented on July 24, 2024

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:

That being said, we can just tighten the version-check to check for >= 4.3 instead and call it a day :-)

from cryptohash-sha256.

maximpichler avatar maximpichler commented on July 24, 2024

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.

maximpichler avatar maximpichler commented on July 24, 2024

Thanks for the swift fix and release!

from cryptohash-sha256.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.