Connect with us

Error in using the make command on terminal Charmm installation

Browse QuestionsCategory: QuestionsError in using the make command on terminal Charmm installation
Hannah asked 9 months ago

I was getting that error message when trying to use the make command on terminal in ubuntu
cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
cc1plus: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1plus: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
make[2]: *** [CMakeFiles/charmm_cxx.dir/build.make:63: CMakeFiles/charmm_cxx.dir/source/machdep/uninf.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:167: CMakeFiles/charmm_cxx.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

1 Answers
Dr. Muniba Faiza Staff answered 9 months ago

Hi, Try the following commands:

sudo apt install g++-10
sudo apt install gcc-10

After that run make with the following command:

make CC=gcc-10 CPP=g++-10 CXX=g++-10 LD=g++-10

LATEST ISSUE

ADVERT