openfold icon indicating copy to clipboard operation
openfold copied to clipboard

Unable to downgrade g++

Open GiammaFer75 opened this issue 1 year ago • 1 comments

I am facing this error trying to install OpenFold launching setup.py

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 |     	function(_Functor&& __f)
  |                                                                                                                                             	^
/usr/include/c++/11/bits/std_function.h:435:145: note:     	‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |     	operator=(_Functor&& __f)
  |                                                                                                                                              	^
/usr/include/c++/11/bits/std_function.h:530:146: note:     	‘_ArgTypes’
error: command '/usr/bin/nvcc' failed with exit code 1


One of the possible solution I found was to downgrade g++ from version 11 to 10 So I launched thiese commands:

sudo apt install g++-10
cmake -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-10 -Bbuild

But I got this error from the second command CMake Error: The source directory "/SSD/openfold" does not appear to contain CMakeLists.txt

I assumed that -B flag generates the /build directory by itself but was not like that. However, the problem does not seem to be the building directory. CMakeLists.txt is not found and I do not why.

Any suggestion?

Thanks

GiammaFer75 avatar May 15 '23 18:05 GiammaFer75

I can confirm that I've had issues with the newest versions of gcc, but I don't think any of those issues are specific to OpenFold. This isn't something I'm very familiar with, and I'm not sure I can provide much help.

gahdritz avatar Jun 24 '23 06:06 gahdritz