GROMACS version:2023.2
GROMACS modification: No
Here post your question:
Dear all,
I am trying to install gromacs on windows wsl2, I used ubuntu 18.04, updated gcc to 10.3.0, and here is the error message:
cmake … -DCMAKE_INSTALL_PREFIX=/usr/local/gmx2020.6 -DGMX_USE_RDTSCP=ON -DGMX_GPU=CUDA -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.2 -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_BUILD_OWN_FFTW=ON -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=/usr/bin/gcc-10
– The C compiler identification is GNU 10.3.0
– The CXX compiler identification is unknown
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/gcc-10 - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - failed
– Check for working CXX compiler: /usr/bin/gcc-10
– Check for working CXX compiler: /usr/bin/gcc-10 - broken
CMake Error at /opt/cmake-3.23.4/share/cmake-3.23/Modules/CMakeTestCXXCompiler.cmake:62 (message):
The C++ compiler
"/usr/bin/gcc-10"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /mnt/d/softPackage/gromacs-2023.2/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_5fd19/fast && /usr/bin/make -f CMakeFiles/cmTC_5fd19.dir/build.make CMakeFiles/cmTC_5fd19.dir/build
make[1]: Entering directory '/mnt/d/softPackage/gromacs-2023.2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5fd19.dir/testCXXCompiler.cxx.o
/usr/bin/gcc-10 -o CMakeFiles/cmTC_5fd19.dir/testCXXCompiler.cxx.o -c /mnt/d/softPackage/gromacs-2023.2/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
gcc-10: fatal error: cannot execute ‘cc1plus’: execvp: Permission denied
compilation terminated.
CMakeFiles/cmTC_5fd19.dir/build.make:77: recipe for target 'CMakeFiles/cmTC_5fd19.dir/testCXXCompiler.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_5fd19.dir/testCXXCompiler.cxx.o] Error 1
make[1]: Leaving directory '/mnt/d/softPackage/gromacs-2023.2/build/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_5fd19/fast' failed
make: *** [cmTC_5fd19/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:78 (project)
Any suggestion on fixing this?
Many thanks!