Closed xwry closed 6 years ago
Please use the following command and send us the output: gcc -dM -E - < /dev/null
@xwry Did you run cmake with -DMINIMAL_BUILD=ON? Had the same issue, that solved it.
Edit: Scratch that. There's a change required in the sources. @Creepsky it's the __arm__ not being defined on 64bit armv8 CPUs issue. Change lines with #if defined __arm__ or #ifdef __arm__ to #if defined __arm__ || defined __aarch64__
root@rock64:/home/rock64/creepMiner# gcc -dM -E - < /dev/null
root@rock64:/home/rock64/creepMiner#
I ve tried once again to compile it from the beginning and the same error appeared in other place :
root@rock64:/home/rock64/creepMiner# cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=RELEASE -DMINIMAL_BUILD=ON -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Current conanbuildinfo.cmake directory: /home/rock64/creepMiner -- Conan: Compiler GCC>=5, checking major version 6 -- Conan: Checking correct version: 6 -- Conan: Using cmake global configuration -- Conan: Adjusting default RPATHs Conan policies -- Conan: Adjusting language standard -- Configuring done -- Generating done -- Build files have been written to: /home/rock64/creepMiner root@rock64:/home/rock64/creepMiner# make Scanning dependencies of target creepMiner [ 2%] Building CXX object CMakeFiles/creepMiner.dir/src/Declarations.cpp.o [ 5%] Building CXX object CMakeFiles/creepMiner.dir/src/MinerUtil.cpp.o /home/rock64/creepMiner/src/MinerUtil.cpp:76:19: fatal error: cpuid.h: No such file or directory ^ compilation terminated. CMakeFiles/creepMiner.dir/build.make:86: recipe for target 'CMakeFiles/creepMiner.dir/src/MinerUtil.cpp.o' failed make[2]: [CMakeFiles/creepMiner.dir/src/MinerUtil.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/creepMiner.dir/all' failed make[1]: [CMakeFiles/creepMiner.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2
Seems like you didn't do the edit I mentioned.
Open the src/MinerUtil.cpp file in any text editor, find any line saying #ifdef __arm__
or #if defined __arm__
and replace them with #if defined __arm__ || defined __aarch64__
There should be two different lines for you to change. One at L77 and one L942.
Thanks @golyalpha i did what you suggest and it compiled without errors.
No probs. By the way, does it segfault for you when you run it? @xwry
@golyalpha I had segmentation fault with mining.conf example copied from creepMiner wiki and created by me in /home/rock64/creepMiner (in my case). Then i found other mining.conf automatically created by creepMiner in /root/.creepMiner /1.8.0/ folder, I copied that one to home dir and then, there was no segfault any more. Both files were using SSE2, but there must be some difference.
Thanks golyalpha. Your edit worked for me on a s912 android tv box running Armbian.
Hi all,
I clone pytorch from link:- https://github.com/pytorch/pytorch.git
I am building pytorch on riscv64, I am facing issue:-
In file included from /home/root/kush/pytorch/third_party/cpuinfo/src/x86/init.c:5:
/home/root/kush/pytorch/third_party/cpuinfo/src/x86/cpuid.h:5:11: fatal error: cpuid.h: No such file or directory
5 | #include <cpuid.h>
| ^~~~~~~~~
compilation terminated.
make[2]: *** [confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/build.make:121: confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/init.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1788: confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
if anyone know, where i am wrong, please guide me to build pytorch on riscv64.
T&R Kush
@kush930 wrong repo/issue?
Hi golyalpha,
I am using master branch of pytorch
https://github.com/pytorch/pytorch.git and using command python3 setup.py install
for building on riscv64 platform
.
T&R Kush Kumar
This is not the pytorch repository. Create a new issue on the repository you linked.
arm 我在rk3588安装openMVS也出现了这个问题,请问有解决办法吗?
/root/MVS/openMVS/libs/Common/Util.cpp:482:10: fatal error: cpuid.h: No such file or directory
482 | #include ~~~~
compilation terminated.
make[2]: [libs/Common/CMakeFiles/Common.dir/build.make:167: libs/Common/CMakeFiles/Common.dir/Util.cpp.o] Error 1
make[2]: Waiting for unfinished jobs....
make[1]: [CMakeFiles/Makefile2:389: libs/Common/CMakeFiles/Common.dir/all] Error 2
make: [Makefile:130: all] Error 2
@BaiDXia OpenMVS does not support your CPU, nothing you can do without changing the code (or ask the owners to change it for you). Try open a ticket there.
creepMiner version 1.8.0 and 1.7.16, gcc version 5 (ubuntu) and 6 (debian stretch)
Building from source on ARMv8 (RK 3328) goes fine until "make -j 4", then:
[ 11%] Building CXX object CMakeFiles/creepMiner.dir/src/gpu/impl/gpu_cuda_impl.cpp.o /home/rock64/creepMiner/src/MinerUtil.cpp:76:19: fatal error: cpuid.h: No such file or directory
compilation terminated. CMakeFiles/creepMiner.dir/build.make:86: recipe for target 'CMakeFiles/creepMiner.dir/src/MinerUtil.cpp.o' failed make[2]: [CMakeFiles/creepMiner.dir/src/MinerUtil.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/creepMiner.dir/all' failed make[1]: [CMakeFiles/creepMiner.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: [all] Error 2