Giter Site home page Giter Site logo

Comments (5)

johanns avatar johanns commented on September 26, 2024 1

@StephanHarrer I'll add ARM CPU/Raspberry PI support as soon as I receive required hardware next week.

from sha3.

johanns avatar johanns commented on September 26, 2024

Hi @x011 Unfortunately, I'm out of town, and won't be able to investigate and/or add support for ARM CPU until this weekend. Meanwhile, this may help (note: I cannot test this):

gem install sha3 -v '1.0.1' -- --with-cflags=\"-O3 -g0 -march=native\"

Another option would be to clone, modify and build the project. If you decide to do this, you'll need to edit line 20 of extconf.rb found /ext/sha3 directory, removing -march=nocona from the file before building the gem.

from sha3.

StephanHarrer avatar StephanHarrer commented on September 26, 2024

Hello,

quite old but I ran in the same error. The command from johanns do not help. Any ideas?

Here is what I see on an raspberry pi 4:

_$ sudo gem install sha3 -v '1.0.1' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR: Error installing sha3:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.7.0/gems/sha3-1.0.1/ext/sha3

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20201118-9223-1snxz3z.rb extconf.rb
checking for sha3.h... yes
checking for digest.h... yes
creating Makefile

current directory: /var/lib/gems/2.7.0/gems/sha3-1.0.1/ext/sha3
make "DESTDIR=" clean

current directory: /var/lib/gems/2.7.0/gems/sha3-1.0.1/ext/sha3
make "DESTDIR="
compiling KeccakF-1600-reference.c
cc1: error: unknown value ‘nocona’ for ‘-march’
cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a native
make: *** [Makefile:245: KeccakF-1600-reference.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.7.0/gems/sha3-1.0.1 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/aarch64-linux/2.7.0/sha3-1.0.1/gem_make.out_

from sha3.

johanns avatar johanns commented on September 26, 2024

Released a new gem version (1.0.2) to address the native extension compilation issue on non-x86 CPUs (including Raspberry PI).

from sha3.

Related Issues (13)

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.