Dear developers,
is it possible to compile ALPS in Archlinux? I always obtain the errors like:
[ 68%] Building CXX object applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/solver.cpp.o In file included from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp:40:0, from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /home/t/alps_build/alps/applications/dmft/qmc/green_function.h: In instantiation of «const green_function<T>& green_function<T>::operator=(const green_function<T>&) [with T = double; green_function<T> = green_function<double>]»: /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:104:21: required from here /home/t/alps_build/alps/applications/dmft/qmc/green_function.h:75:5: error: «memcpy» was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/cstring:44:0, ... from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /usr/include/string.h:44:14: warning: «void* memcpy(void*, const void*, size_t)» declared here, later in the translation unit In file included from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp:40:0, from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /home/t/alps_build/alps/applications/dmft/qmc/green_function.h:76:5: error: «memcpy» was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/cstring:44:0, ... from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /usr/include/string.h:44:14: warning: «void* memcpy(void*, const void*, size_t)» declared here, later in the translation unit make[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/solver.cpp.o] error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] error 2 make: *** [all] error 2
Is it compiler version issue or something else? Please, see also short discussion about that https://aur.archlinux.org/packages.php?ID=55549
Interesting.
It's not clear to me why this won't work. Could you please try to add
#include <string.h>
at the beginning of the file green_function.hpp in /home/t/alps_build/alps/applications/dmft/qmc/?
That may do the trick.
Emanuel
On May 30, 2012, at 12:32 PM, Dmitry Zio wrote:
Dear developers,
is it possible to compile ALPS in Archlinux? I always obtain the errors like:
[ 68%] Building CXX object applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/solver.cpp.o In file included from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp:40:0, from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /home/t/alps_build/alps/applications/dmft/qmc/green_function.h: In instantiation of «const green_function<T>& green_function<T>::operator=(const green_function<T>&) [with T = double; green_function<T> = green_function<double>]»: /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:104:21: required from here /home/t/alps_build/alps/applications/dmft/qmc/green_function.h:75:5: error: «memcpy» was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/cstring:44:0, ... from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /usr/include/string.h:44:14: warning: «void* memcpy(void*, const void*, size_t)» declared here, later in the translation unit In file included from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/interaction_expansion.hpp:40:0, from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /home/t/alps_build/alps/applications/dmft/qmc/green_function.h:76:5: error: «memcpy» was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/cstring:44:0, ... from /home/t/alps_build/alps/applications/dmft/qmc/interaction_expansion/solver.cpp:30: /usr/include/string.h:44:14: warning: «void* memcpy(void*, const void*, size_t)» declared here, later in the translation unit make[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/solver.cpp.o] error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] error 2 make: *** [all] error 2
Is it compiler version issue or something else? Please, see also short discussion about that https://aur.archlinux.org/packages.php?ID=55549
comp-phys-alps-users@lists.phys.ethz.ch