nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
768 stars 583 forks source link

Cc1plus-error-unrecognized-command-line-option-std-c-11 nheqminer_cpu CENTOS #173

Closed antonica1 closed 7 years ago

antonica1 commented 8 years ago

hi guys,

Can someonee help with this error. I am in CENTOS 6.8

[root@supernovacont nheqminer_cpu]# make -j $(nproc)
Scanning dependencies of target nheqminer_cpu
[  5%] [ 23%] [ 23%] [ 23%] [ 29%] Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/arith_uint256.cpp.o
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/api.cpp.o
[ 35%] Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/crypto/sha256.cpp.o
[ 41%] cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/amount.cpp.o
[ 47%] Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_reader.cpp.o
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_writer.cpp.o
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_value.cpp.o
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/api.cpp.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/arith_uint256.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/crypto/sha256.cpp.o] Error 1
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"

cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/amount.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_reader.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_writer.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_value.cpp.o] Error 1
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/libstratum/ZcashStratum.cpp.o
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
make[2]: *** 
```[CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/libstratum/ZcashStratum.cpp.o] Error 1
make[1]: *** [CMakeFiles/nheqminer_cpu.dir/all] Error 2
make: *** [all] Error 2

[root@supernovacont nheqminer_cpu]# g++ --version g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)

ramonhugo commented 8 years ago

Did yum install libcxx solve it? You may need to clean the compilation - I'm not sure how that works with cmake. When I had some problems I've just re-cloned the project.

antonica1 commented 8 years ago

work.. thank you

BakuDev commented 8 years ago

CentOS 6 after running:

make -j $(nproc)

Still gives error:

cc1plus: error: unrecognized command line option "-std=c++11"

ramonhugo commented 8 years ago

If you have installed the licxx you should have the c++11. May try to re-clone it and restart the process.

BakuDev commented 8 years ago

Here is full tutorial on how to install on CentOS 6

UPDATE COMPILER

wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran cmake libcxx
scl enable devtoolset-2 bash
source /opt/rh/devtoolset-2/enable

INSTALL BOOST

wget http://downloads.sourceforge.net/project/boost/boost/1.62.0/boost_1_62_0.tar.gz
tar -xzvf boost_1_62_0.tar.gz
cd boost_1_62_0
./bootstrap.sh
./b2
./b2 install

INSTALL MINER

git clone -b Linux https://github.com/nicehash/nheqminer.git
cd nheqminer/cpu_xenoncat/Linux/asm/
sh assemble.sh
cd ../../../Linux_cmake/nheqminer_cpu_xenoncat
cmake . -DBOOST_ROOT=/opt/boost -DBOOST_LIBRARYDIR=/opt/boost/libs
make -j $(nproc)
S74nk0 commented 7 years ago

Issue related to older version. Closing...

techvilleca commented 7 years ago

BakuDev - I just wanted to say THANKS MAN! Wow I have been ripping my hair out trying to make this work. Followed your directions for CENTOS-6 and Yee Ha!!! Kudos to you dude!

sharif2008 commented 6 years ago

@BakuDev thanks