-
Notifications
You must be signed in to change notification settings - Fork 60
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
Installing on an OrangePi failure #4
Comments
@Mijntje if you are still on that problem try this:
It should compile now....(fingers crossed) The problem is that the Makefile that is generated by "./configure" states "-march=native" and that is the problem if you replace that with the "-mcpu=..." then the compiler knows what to do. 😃 If you want to compile it for the RPi 3 you can use "cortex-a53" I hope I am correct with the a7 for the OrangePi Have fun mining |
Hi Schinivision, Thanks for your reply! Already presumed it was something about the different cpu kind of thing. Which is I could find on the internet. But had no clue what to do about it. Looked for the specifications of the OrangePi and it has a A53 as well as the Rpi. Now I'm getting this error. Will try a bit to fool around a bit more.
|
Did now the apt-get install build-essential commando to update the C compiler but still no result. And now I only used this command ./configure CFLAGS="-O2 -mcpu=cortex-a53 " and it shows this result. The libcurl should be the latest version. |
@Mijntje Hi... interesting.. Maybe you can try omitting the -mcpu flag in step 2
It is neccesary in step 3 but might also work if you do not state the -mcpu flag in step 2.. Hope that helped |
If you want to run the miner on multiple devices you can think about using docker. Here is a dockerfile that worked for me:
|
Happy New year Schinivision! This is what I'm getting:
root@Orangepi: |
Hi. apt-get update
apt-get install -y automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git libgmp-dev |
Yep I did a recheck and everything is installed. Which is a bit weird when you see the error that the C compiler doesn't work. Even it's installed to the newest version. :/ Tried to copy the config.log. This file contains any messages produced by compilers while It was created by cpuminer configure 2.4, which was $ ./configure CFLAGS=-O2 -mcpu=cortex-a7 ---------Platform.---------hostname = Orangepi /usr/bin/uname -p = unknown /bin/arch = unknown PATH: /usr/local/sbin -----------Core tests.-----------configure:2384: checking build system type configure:3485: $? = 0 ----------------Cache variables.----------------ac_cv_build=aarch64-unknown-linux-gnu -----------------Output variables.-----------------ACLOCAL='${SHELL} /root/m-cpuminer-v2/missing aclocal-1.14' -----------confdefs.h.-----------/* confdefs.h */ configure: exit 77 |
What does uname -a output? |
Its saying this: orangepi@Orangepi:~ uname -a |
@Mijntje sorry I am out of suggestions now.. I got the miner running on a Tinkerboard and on the Raspberry pi 3... All of those state an architecture "armv7l" On your side it states "aarch64"... As it seems the supplier of your distro managed it to build an real 64bit OS... which is not true for the Tinkerboard and the RPi Image that I use (they run 32bit). Maybe it has something to do with that. You are on your own now... Hope you will find someone that can help you out. |
The Orange Pi I have is a real 64bit according to the website. Any way thanks a lot still for the help! Really appreciate it 👍 |
Any update on this. I am assuming this is for the H5 CPU. |
the only way I could build this miner on my rp3 is to do this :
but still, I don't see how other people get around 11kh/s on m7m with rpi3 on 64bit OS. |
I'm trying to install the miner on an OrangePi with Debian. Did the git clone command and using the command for make and configure.
But on some point I'm getting this fault:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./m7 -Im7 -Ofast -march=native -flto -fuse-linker-plugin -O3 -MT m_minerd-cpu-miner.o -MD -MP -MF .deps/m_minerd-cpu-miner.Tpo -c -o m_minerd-cpu-miner.o
test -f 'cpu-miner.c' || echo './'
cpu-miner.ccpu-miner.c:1:0: error: unknown value 'native' for -march
/*
^
Makefile:641: recipe for target 'm_minerd-cpu-miner.o' failed
make[2]: *** [m_minerd-cpu-miner.o] Error 1
make[2]: Leaving directory '/root/m-cpuminer-v2'
Makefile:760: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/m-cpuminer-v2'
Makefile:410: recipe for target 'all' failed
make: *** [all] Error 2
root@Orangepi:~/m-cpuminer-v2#
What is happening and how can I fix the problem?
The text was updated successfully, but these errors were encountered: