Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountering Error During CMake Execution #816

Open
RenQiuhan opened this issue Mar 2, 2024 · 1 comment
Open

Encountering Error During CMake Execution #816

RenQiuhan opened this issue Mar 2, 2024 · 1 comment

Comments

@RenQiuhan
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants