Comments (5)
@StephanHarrer I'll add ARM CPU/Raspberry PI support as soon as I receive required hardware next week.
from sha3.
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.
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.
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)
- Seems like this gem's 512 result is not the same as phusion / digest-sha3-ruby HOT 1
- Support --disable-march-tune-native HOT 4
- ruby 3.1 compatibility: error: '__declspec' attributes are not enabled HOT 4
- can't build gem: possible bug in the tools you use to build with? HOT 1
- CVE-2022-37454 Buffer overflow HOT 2
- SHAKE128/SHAKE256 support HOT 1
- error in readme (usage > basics) HOT 2
- Loading this gem breaks OpenSSL HMAC HOT 4
- HMAC? HOT 2
- Proper SHA3 implementation? HOT 8
- `:SHA512` does not output a correct hash HOT 2
- How can I use sha3 with OpenSSL in ruby? HOT 7
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 sha3.