-
Notifications
You must be signed in to change notification settings - Fork 63
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
Errors while installing gem in raspberry pi (armv6) #23
Comments
Cloning the repository and deleting the -msse and -msse2 options from |
Actually it didn't worked because when I am trying to launch my application using thin I get these errors:
So any help will be appreciated :) |
The issue is the SSE processor extensions that are specific to x86 CPUs. If you use those files the extension should compile. I might look into ensuring those files are used on non-x86 platforms. |
In fact I am not sure if I should be replacing @vasilakisfil would you be able to check if either of those alt implementations work for you? I assume Then I'll update the library to copy in the correct file for each platform before compiling. @pbhogan any ideas? |
@stakach I have a Raspberry PI, and will check to see which works later this evening (-nosse.c vs -ref.c). |
Deleting the
|
I have a feeling the ref version will not fail. From memory it deals with little and big edian platforms. |
Again the same tests fail:
|
@vasilakisfil and @johanns would either of you be able to see if you can find a solution for arm processors? Might be solved by updating the scrypt implementation - http://www.tarsnap.com/news.html mentions adding support for ARM OABI |
@stakach I'll look into it (although, it may not be till tomorrow evening). |
👍 |
need Tutorial to compile Scrypt/Scrypt_ext for ARM.. Its a little bit tricky for me. |
(Ping) Have the C sources been updated yet? |
No.. If someone can compile the original sources on ARM I'm happy to rewrite the build script to detect the platform and build appropriately |
I don't have a Raspberry Pi, but maybe someone else does. What would be the necessary details they would need to post? Configure triple, preprocessor defines (platform detection), etc.? |
Well scrypt should build on ARM when using one of the alternative implementations Building the original implementation on ARM might be insightful too http://www.tarsnap.com/scrypt/scrypt-1.1.6.tgz |
Would really love some help installing the gem onto a ARM machine... I can build the gem using either crypto_scrypt-nosse.c or crypto_scrypt-ref.c, but rails throws an exception (cannot find 'scrypt_ext' library). |
Hi, all - trying to get scrypt running in an ARM (chromebook) environment, and ran into this. Has anyone made progress on it? Thanks!
|
I've hit this on POWER too (ppc64le). Any progress on a generic solution? |
I wrote a build script that detects ARM and SSE support, that then selects alternative implementations to compile etc however I never successfully compiled any of the implementations on ARM. If anyone can give me cflags / ldflags or build script that will work on ARM I can make it happen. |
Same with power arch too |
The tests likely fail on raspberry pi because of the memory use; With 1048576 as "N", a malloc of 128_r_N+63 is made, r is 8, and in total this is requesting a G of memory. I grabbed the updated code from the Tarsnip git, merged that in repagh/scrypt. The tarsnip code can detects & selects between different implementations. This passes the tests except for large N tests, which I commented out. I am new at ruby & gemfile stuff, I hope you can test from my git version. |
I'll take a look now |
Anyone who has a ARM PC - could you please confirm scrypt now works on the platform? Use the following to install: |
Tried installing, but got the following error:
|
Dang. Could you try it without HighSecurity?
|
I just got v3 to install on an ARMv7 Chromebook in ubuntu trusty in a crouton environment. Nice! That had been a long-standing issue for us, thanks!
|
I have the same problem with Archlinux in a Rpi2 - ARMv7 . But I can't upgrade to scrypt3, I have an old dependency :( (authlogic--) |
Works on Power too 💯 |
Good to hear! Closing this issue for now. Feel free to re-open if v3.0.1 causes any issues ;) |
So, is there no solution for people like me and @Shelvak who have a dependency on an old version (2.0.2)? Can you back port the changes to make those versions compile on ARM? |
There is no functional difference between v2 and v3 except that it runs on ARM. |
I get these errors as soon as bundler tries to install the scrypt gem (version 1.2.0) in my raspberry pi:
Any ideas?
The text was updated successfully, but these errors were encountered: