TRIQS / triqs_0.x

DEPRECATED -- This is the repository of the older versions of TRIQS
Other
11 stars 9 forks source link

Compilation of branch 1.0 fails (@speed_sliding_view.cpp) [weiss] #120

Closed tayral closed 11 years ago

tayral commented 11 years ago

Hi, Compilation with latest version of 1.0 fails (on Weiss):

[...]
[ 82%] Built target speed
[ 83%] Built target speed2
[ 83%] Built target speed_lazy_assign
[ 83%] Building CXX object triqs/arrays/test/speed/CMakeFiles/speed_sliding_view.dir/speed_sliding_view.cpp.o
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp: In member function ‘void array_code::operator()()’:
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:38:3: error: reference to ‘array’ is ambiguous
In file included from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:22:0:
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/array.hpp:31:86: error: candidates are: template<class ValueType, int Rank, long long unsigned int Opt, long long unsigned int TraversalOrder> class triqs::arrays::array
In file included from /home/ayral/Work/TRIQS/src/triqs/./clef/clef.hpp:24:0,
                 from /home/ayral/Work/TRIQS/src/triqs/clef.hpp:1,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./../../impl/common.hpp:24,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./../common.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./domain.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/map.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/matrix.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:21:
/usr/local/gcc-4.7.0/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/tuple:857:42: error:                 template<class, long unsigned int <anonymous> > struct std::array
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:38:19: error: expected primary-expression before ‘,’ token
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:38:31: error: ‘A’ was not declared in this scope
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp: In member function ‘void with_sliding_view::operator()()’:
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:49:3: error: reference to ‘array’ is ambiguous
In file included from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:22:0:
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/array.hpp:31:86: error: candidates are: template<class ValueType, int Rank, long long unsigned int Opt, long long unsigned int TraversalOrder> class triqs::arrays::array
In file included from /home/ayral/Work/TRIQS/src/triqs/./clef/clef.hpp:24:0,
                 from /home/ayral/Work/TRIQS/src/triqs/clef.hpp:1,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./../../impl/common.hpp:24,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./../common.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./domain.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/map.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/matrix.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:21:
/usr/local/gcc-4.7.0/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/tuple:857:42: error:                 template<class, long unsigned int <anonymous> > struct std::array
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:49:19: error: expected primary-expression before ‘,’ token
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:49:31: error: ‘A’ was not declared in this scope
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:52:36: error: unable to deduce ‘auto’ from ‘<expression error>’
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp: In member function ‘void with_slices::operator()()’:
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:61:3: error: reference to ‘array’ is ambiguous
In file included from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:22:0:
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/array.hpp:31:86: error: candidates are: template<class ValueType, int Rank, long long unsigned int Opt, long long unsigned int TraversalOrder> class triqs::arrays::array
In file included from /home/ayral/Work/TRIQS/src/triqs/./clef/clef.hpp:24:0,
                 from /home/ayral/Work/TRIQS/src/triqs/clef.hpp:1,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./../../impl/common.hpp:24,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./../common.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/./domain.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/indexmaps/cuboid/map.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/./src/matrix.hpp:23,
                 from /home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:21:
/usr/local/gcc-4.7.0/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/tuple:857:42: error:                 template<class, long unsigned int <anonymous> > struct std::array
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:61:19: error: expected primary-expression before ‘,’ token
/home/ayral/Work/TRIQS/src/triqs/arrays/test/speed/speed_sliding_view.cpp:61:31: error: ‘A’ was not declared in this scope
make[2]: *** [triqs/arrays/test/speed/CMakeFiles/speed_sliding_view.dir/speed_sliding_view.cpp.o] Error 1
make[1]: *** [triqs/arrays/test/speed/CMakeFiles/speed_sliding_view.dir/all] Error 2
make: *** [all] Error 2
mferrero commented 11 years ago

There is an std::array somewhere in the tuple library. So if you use both std and triqs::arrays a call to array is indeed ambiguous... Should be fixed now. Reopen if problem persists.