Skip to content
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

Won't build on armv7 #102

Open
weboide opened this issue May 3, 2017 · 16 comments
Open

Won't build on armv7 #102

weboide opened this issue May 3, 2017 · 16 comments

Comments

@weboide
Copy link

weboide commented May 3, 2017

On a beaglebone black: Linux bbb 4.4.59-ti-r96 #1 SMP Tue Apr 4 17:50:34 UTC 2017 armv7l armv7l armv7l GNU/Linux

With a clone of the master branch, this is what I get:

$ make install
Scanning dependencies of target xmr-stak-c
[  5%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_blake256.c.o
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-maes’
CMakeFiles/xmr-stak-c.dir/build.make:62: recipe for target 'CMakeFiles/xmr-stak-c.dir/crypto/c_blake256.c.o' failed
make[2]: *** [CMakeFiles/xmr-stak-c.dir/crypto/c_blake256.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-c.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-c.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Removing the sse2 and aes options, this is what I get:

$ make install
[  5%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_blake256.c.o
[ 11%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_skein.c.o
[ 16%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_jh.c.o
[ 22%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/soft_aes.c.o
/home/weboide/mining/xmr-stak-cpu/crypto/soft_aes.c:29:23: fatal error: x86intrin.h: No such file or directory
compilation terminated.
CMakeFiles/xmr-stak-c.dir/build.make:134: recipe for target 'CMakeFiles/xmr-stak-c.dir/crypto/soft_aes.c.o' failed
make[2]: *** [CMakeFiles/xmr-stak-c.dir/crypto/soft_aes.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-c.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-c.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
@fireice-uk
Copy link
Owner

Hi, unfortunately the CPU version is SSE2 optimised and won't work without it. We have a more flexible hashing selection algorithm now, so ARM build is possible by lifting the code from monero-core. Do you feel like testing that =)?

@weboide
Copy link
Author

weboide commented May 4, 2017

I'm using monerod from monero-core to run a node on the beaglebone black, although it's super slow, it actually works. I'd be happy to test arm builds for xmr-stak-cpu.

@fireice-uk
Copy link
Owner

Watch this issue over the next month or so then =). I'm fairly busy right now, but this is on my todo list. Do you happen to know if beaglebone supports hardware AES (it is an optional feature on ARMv8)?

@weboide
Copy link
Author

weboide commented May 7, 2017

I don't believe any of the ARMv7 support AES.
Here's a cat /proc/cpuinfo of my beaglebone black and my raspberry pi2 (they both have an arm v7)

processor       : 0
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 716.63
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc08
CPU revision    : 2
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 57.60
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

@fireice-uk
Copy link
Owner

Ah... My primary target will be ARMv8 with AES support, but I will try to get something to work on soft-aes too - doubt the hashrate will cover the electricity used though (even in the under 10W range).

@weboide
Copy link
Author

weboide commented May 8, 2017

That's understandable, even running monerod takes a whole week on a beaglebone :)
I've got a raspberry pi 3 laying around too, so I could test the ARMv8 AES version.

@fireice-uk
Copy link
Owner

I think Pi3 doesn't have the AES enabled (remember it's optional), but please correct me if I'm wrong.

@nilsmeyer
Copy link

It doesn't build on ARMv8 either (after removing the -msse2 and -maes flags):
/usr/src/xmr-stak-cpu/crypto/soft_aes.c:29:23: fatal error: x86intrin.h: No such file or directory #include <x86intrin.h>

@psychocrypt
Copy link
Collaborator

psychocrypt commented Oct 22, 2017 via email

@foice
Copy link

foice commented Oct 24, 2017

Anything to go beyond this x86intrin.h ? I got stuck there as well ...

@kreidler1234
Copy link

Is there coming another version for a83t arm a7 octa core? stuck at msse2 and maes fault.
Ubuntu on banana pi m3.
Thanks for the answer.

@semeion
Copy link

semeion commented Feb 3, 2018

@psychocrypt
Copy link
Collaborator

psychocrypt commented Apr 1, 2018 via email

@cjwsam
Copy link

cjwsam commented Apr 6, 2018

gpu (mali) and armv7 dual mining (tested n working)
https://forum.odroid.com/viewtopic.php?f=98&t=29571

@ghost
Copy link

ghost commented Apr 28, 2018

Also looking for miner that can run on arm. just clicked @cjwsam links. TY for the odroid forum, this is actualy what i'm trying to play with.
Would be glad to help testing stuff and reporting back if you ever plan on doing so.
Thanks for sharing your time and knowledge.

FIY cat /proc/cpuinfo
Running 4 core:
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 90.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 3

And 4 other core:
ARMv7 Processor rev 3 (v7l)
BogoMIPS : 120.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc0f
CPU revision : 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants