


























change in PKGBUILD for gcc7 cmake \ -DCMAKE_SKIP_BUILD_RPATH=true \ -DCMAKE_C_COMPILER=/usr/bin/gcc-7 \ -DCMAKE_CXX_COMPILER=/usr/bin/g++-7 \ -DCMAKE_RANLIB=/usr/bin/gcc-ranlib-7 \ -DCMAKE_AR=/usr/bin/gcc-ar-7 \ -DUSE_CUDA_DJEZO=true \ -DUSE_CPU_XENONCAT=false \ ../${pkgname}
thanks huiyiqun, merged your changes!
Having some problems installing this. Was wondering if someone could help. After it downloads and completes a long compilation process (about 30 mins on my i5 machine), I get the following error message:
==> Starting build()... -- The C compiler identification is GNU 5.5.0 -- The CXX compiler identification is GNU 5.5.0 -- Check for working C compiler: /usr/bin/gcc-5 -- Check for working C compiler: /usr/bin/gcc-5 -- broken CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler
"/usr/bin/gcc-5"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/mwelke/.cache/pacaur/nheqminer-cuda-git/src/build_cuda/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_2cb1d/fast"
/usr/bin/make -f CMakeFiles/cmTC_2cb1d.dir/build.make CMakeFiles/cmTC_2cb1d.dir/build
make[1]: Entering directory '/home/mwelke/.cache/pacaur/nheqminer-cuda-git/src/build_cuda/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2cb1d.dir/testCCompiler.c.o
/usr/bin/gcc-5 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o CMakeFiles/cmTC_2cb1d.dir/testCCompiler.c.o -c /home/mwelke/.cache/pacaur/nheqminer-cuda-git/src/build_cuda/CMakeFiles/CMakeTmp/testCCompiler.c
gcc-5: error: unrecognized command line option ‘-fno-plt’
make[1]: *** [CMakeFiles/cmTC_2cb1d.dir/build.make:66: CMakeFiles/cmTC_2cb1d.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory '/home/mwelke/.cache/pacaur/nheqminer-cuda-git/src/build_cuda/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_2cb1d/fast] Error 2
It looks like some problem with the version of GCC it installs, a compile flag not being supported by the installed GCC.
Compilation errors were solved by changing string in the source CMakeLists.txt to set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH") # -Wall Compilation didn't work without it somehow.
Updated, thanks. I didn't bump the pkgrel as this change doesn't change the produced package in any way, so ppl don't have to make an unnecessary rebuild. BTW is this piece of software still relevant? Development stalled in January and in the fast moving zcash mining community I'd assume this to mean a project is dead?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Add COMPUTE=30 (or similar) right after 'cmake' if you need to change nvidia compute version of your card(s)
Did anybody manage to get this right?