soedinglab / MMseqs2

MMseqs2: ultra fast and sensitive search and clustering suite
https://mmseqs.com
MIT License
1.44k stars 195 forks source link

Encountering Error During CMake Execution #816

Open RenQiuhan opened 8 months ago

RenQiuhan commented 8 months ago

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

milot-mirdita commented 8 months ago

Seems like something is wrong with the installed compilers within this conda environment.

You should be able to install the compilers conda meta package which should contain everything to compile mmseqs