TRIQS / triqs

a Toolbox for Research on Interacting Quantum Systems
https://triqs.github.io
GNU General Public License v3.0
139 stars 72 forks source link

Compiling Triqs/unstable on #54~20.04.1-Ubuntu with clang 10.0.0-4ubuntu1 #812

Closed HugoStrand closed 3 years ago

HugoStrand commented 3 years ago

Dear Triqs devs,

I am trying to compile Triqs@unstable (with documentation) on my Ubuntu 20.04.1 machine with clang-10. The compilation stops in the nda library on the missing concepts header file, please se below.

Am I using an unsupported clang version? Any ideas what I am doing wrong?

Thank you. Best, Hugo

[ 13%] Building CXX object deps/nda/c++/nda/CMakeFiles/nda_c.dir/h5.cpp.o
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/h5.cpp:15:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/h5.hpp:19:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/basic_array.hpp:16:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/basic_array_view.hpp:18:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/declarations.hpp:19:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/layout/policies.hpp:16:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/layout/idx_map.hpp:26:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/layout/./for_each.hpp:16:
In file included from /home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/layout/permutation.hpp:17:
/home/hugstr/dev/triqs/cbuild/deps/nda_src/c++/nda/layout/../stdutil/concepts.hpp:18:10: fatal error: 'concepts' file not found
#include <concepts>
         ^~~~~~~~~~
1 error generated.
make[2]: *** [deps/nda/c++/nda/CMakeFiles/nda_c.dir/build.make:76: deps/nda/c++/nda/CMakeFiles/nda_c.dir/h5.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3242: deps/nda/c++/nda/CMakeFiles/nda_c.dir/all] Error 2
Wentzell commented 3 years ago

We are moving our unstable branches to C++20, which is the reason the compilation is failing in your case. Please use gcc>=10 or clang>=11 with -stdlib=libc++, both of which are available under Ubuntu 20.04 (the latter in focal-updates).

I have updated the compiler version checks in cmake, c.f. https://github.com/TRIQS/triqs/commit/9bd8c2bfdb1c4293f5d6265fe24a461593dd2f1f