spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
118 stars 52 forks source link

Compile error on ubuntu 22.04 #638

Open albenstein opened 4 months ago

albenstein commented 4 months ago

Hi there all, I try to compile spirit on ubuntu 22.04 with CUDA support with gcc 11.4, but I get make error like below:

/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’ /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’ make[2]: *** [core/CMakeFiles/Spirit.dir/build.make:314: core/CMakeFiles/Spirit.dir/src/engine/Vectormath.cpp.o] Error 1 make[2]: *** [core/CMakeFiles/Spirit.dir/build.make:188: core/CMakeFiles/Spirit.dir/src/engine/Eigenmodes.cpp.o] Error 1 make[2]: *** [core/CMakeFiles/Spirit.dir/build.make:216: core/CMakeFiles/Spirit.dir/src/engine/Sparse_HTST.cpp.o] Error 1 make[2]: *** [core/CMakeFiles/Spirit.dir/build.make:202: core/CMakeFiles/Spirit.dir/src/engine/HTST.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:653: core/CMakeFiles/Spirit.dir/all] Error 2 make: *** [Makefile:166: all] Error 2