I encountered an error while executing the command cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=. ... My cmake version is 3.28.0, and gcc version 7.3. The error message I received is as follows:
-- The CXX compiler identification is GNU 7.3.0
-- The C compiler identification is GNU 7.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /home/anaconda3/envs/AlphaFlow/bin/c++
-- Check for working CXX compiler: /home/anaconda3/envs/AlphaFlow/bin/c++ - broken
CMake Error at /usr/local/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message):
The C++ compiler
"/home/anaconda3/envs/AlphaFlow/bin/c++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz'
Run Build Command(s): /usr/local/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_8b7b3/fast
/usr/bin/gmake -f CMakeFiles/cmTC_8b7b3.dir/build.make CMakeFiles/cmTC_8b7b3.dir/build
gmake[1]: Entering directory /home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz' Building CXX object CMakeFiles/cmTC_8b7b3.dir/testCXXCompiler.cxx.o /home/anaconda3/envs/AlphaFlow/bin/c++ -o CMakeFiles/cmTC_8b7b3.dir/testCXXCompiler.cxx.o -c /home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz/testCXXCompiler.cxx Linking CXX executable cmTC_8b7b3 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8b7b3.dir/link.txt --verbose=1 /home/anaconda3/envs/AlphaFlow/bin/c++ -rdynamic CMakeFiles/cmTC_8b7b3.dir/testCXXCompiler.cxx.o -o cmTC_8b7b3 collect2: fatal error: cannot find 'ld' compilation terminated. gmake[1]: *** [cmTC_8b7b3] Error 1 gmake[1]: Leaving directory/home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz'
gmake: *** [cmTC_8b7b3/fast] Error 2
I encountered an error while executing the command cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=. ... My cmake version is 3.28.0, and gcc version 7.3. The error message I received is as follows:
-- The CXX compiler identification is GNU 7.3.0 -- The C compiler identification is GNU 7.3.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /home/anaconda3/envs/AlphaFlow/bin/c++ -- Check for working CXX compiler: /home/anaconda3/envs/AlphaFlow/bin/c++ - broken CMake Error at /usr/local/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message): The C++ compiler "/home/anaconda3/envs/AlphaFlow/bin/c++" is not able to compile a simple test program. It fails with the following output: Change Dir: '/home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz' Run Build Command(s): /usr/local/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_8b7b3/fast /usr/bin/gmake -f CMakeFiles/cmTC_8b7b3.dir/build.make CMakeFiles/cmTC_8b7b3.dir/build gmake[1]: Entering directory
/home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz' Building CXX object CMakeFiles/cmTC_8b7b3.dir/testCXXCompiler.cxx.o /home/anaconda3/envs/AlphaFlow/bin/c++ -o CMakeFiles/cmTC_8b7b3.dir/testCXXCompiler.cxx.o -c /home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz/testCXXCompiler.cxx Linking CXX executable cmTC_8b7b3 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8b7b3.dir/link.txt --verbose=1 /home/anaconda3/envs/AlphaFlow/bin/c++ -rdynamic CMakeFiles/cmTC_8b7b3.dir/testCXXCompiler.cxx.o -o cmTC_8b7b3 collect2: fatal error: cannot find 'ld' compilation terminated. gmake[1]: *** [cmTC_8b7b3] Error 1 gmake[1]: Leaving directory
/home/MMseqs2/build/CMakeFiles/CMakeScratch/TryCompile-PJYDVz' gmake: *** [cmTC_8b7b3/fast] Error 2