Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error 1.2 on Ubuntu 14.04 #140

Closed
phansmann opened this issue Oct 22, 2014 · 1 comment
Closed

Compilation error 1.2 on Ubuntu 14.04 #140

phansmann opened this issue Oct 22, 2014 · 1 comment

Comments

@phansmann
Copy link

Hi,

Using gcc 4.8.2 I first ran

cmake -DPYTHON_LIBRARY=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so ../src_triqs1.2

without problems. Subsequently, however, "make" stopped with the following error:

[  4%] Building CXX object triqs/CMakeFiles/triqs.dir/gfs/local/functions.cpp.o
In file included from /home/philipp/SOURCES/src_triqs1.2/triqs/mpi.hpp:24:0,
                 from /home/philipp/SOURCES/src_triqs1.2/triqs/gfs/local/.././meshes/matsubara_freq.hpp:24,
                 from /home/philipp/SOURCES/src_triqs1.2/triqs/gfs/local/../imfreq.hpp:26,
                 from /home/philipp/SOURCES/src_triqs1.2/triqs/gfs/local/functions.hpp:25,
                 from /home/philipp/SOURCES/src_triqs1.2/triqs/gfs/local/functions.cpp:21:
/home/philipp/SOURCES/src_triqs1.2/triqs/./mpi/vector.hpp: In static member function ‘static void triqs::mpi::mpi_impl_std_vector_basic<T>::broadcast(triqs::mpi::communicator, triqs::mpi::mpi_impl_std_vector_basic<T>::V&, int)’:
/home/philipp/SOURCES/src_triqs1.2/triqs/./mpi/vector.hpp:47:21: error: incomplete type ‘triqs::mpi::mpi_datatype<unsigned int>’ used in nested name specifier
    MPI_Bcast(&s, 1, mpi_datatype<size_t>::invoke(), root, c.get());
                     ^
make[2]: *** [triqs/CMakeFiles/triqs.dir/gfs/local/functions.cpp.o] Error 1
make[1]: *** [triqs/CMakeFiles/triqs.dir/all] Error 2
make: *** [all] Error 2

Anyone seen this before?

Cheers,
Philipp

@parcollet
Copy link
Member

Strange. Are you on 32 bits machine by any chance ? size_t is unsigned int ?

parcollet pushed a commit that referenced this issue Oct 22, 2014
- no need to include mpi, it is automatic from the array, gf containers.
- Fix example from issue 133.
- remove old example code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants