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
GCC version must be at least 5.1! but gcc 6.3.0 #206
Comments
Please post the full cmake output plus the output of g++ --version |
The system is: Linux - 4.9.16-gentoo - x86_64 The output was: Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/home/jim/monero/xmr-stak-cpu/CMakeFiles/3.8.0/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. The output was: Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is GNU, found in "/home/jim/monero/xmr-stak-cpu/CMakeFiles/3.8.0/CompilerIdCXX/a.out" Determining if the C compiler works passed with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_577e3/fast" Detecting C compiler ABI info compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_380b2/fast" Parsed C implicit link information from above output: Detecting C [-std=c11] compiler features compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_01ee0/fast"
Detecting C [-std=c99] compiler features compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_c72c0/fast"
Detecting C [-std=c90] compiler features compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_18297/fast"
Determining if the CXX compiler works passed with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_1e0d9/fast" Detecting CXX compiler ABI info compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_8b3fb/fast" Parsed CXX implicit link information from above output: Detecting CXX [-std=c++14] compiler features compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_28ef5/fast"
Detecting CXX [-std=c++11] compiler features compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_67d7e/fast"
Detecting CXX [-std=c++98] compiler features compiled with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_4669b/fast"
|
Hm... it looks like it still using 4.9.3? |
I'm done here. some magic with env-update && source /etc/profile and -DCMAKE_CC_COMPILER=gcc6 |
So what was fix? @jimisan im having this issue currently. |
env-update && source /etc/profile; |
The key is to force the compiler choices |
CentOS 6sudo wget -O /etc/yum.repos.d/ https://copr.fedoraproject.org/coprs/hhorak/devtoolset-4-rebuild-bootstrap/repo/epel-6/hhorak-devtoolset-4-rebuild-bootstrap-epel-6.repo CentOS 7sudo wget -O /etc/yum.repos.d/ https://copr.fedoraproject.org/coprs/hhorak/devtoolset-4-rebuild-bootstrap/repo/epel-7/hhorak-devtoolset-4-rebuild-bootstrap-epel-7.repo |
cmake -DCMAKE_CXX_COMPILER_VERSION=6.3.0 |
Here's what I've done and fixed in CentOS 7.4:
This process will finish in a long time. GCC will be installed in somewhere under Reference:
After installing newer version of gcc, temporary specify the location of it:
|
gcc --version
gcc (Gentoo 6.3.0 p1.0) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cmake .
CMake Error at CMakeLists.txt:27 (message):
GCC version must be at least 5.1!
-- Configuring incomplete, errors occurred!
See also "/home/jim/monero/xmr-stak-cpu/CMakeFiles/CMakeOutput.log".
The text was updated successfully, but these errors were encountered: