I tried to build both: alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost If that isn't what you mean by "What version of ALPS did you try to build?" then can you clarify?
On 24/07/13 11:00, comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
Send Comp-phys-alps-users mailing list submissions to comp-phys-alps-users@lists.phys.ethz.ch
To subscribe or unsubscribe via the World Wide Web, visit https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users or, via email, send a message with subject or body 'help' to comp-phys-alps-users-request@lists.phys.ethz.ch
You can reach the person managing the list at comp-phys-alps-users-owner@lists.phys.ethz.ch
When replying, please edit your Subject line so it is more specific than "Re: Contents of Comp-phys-alps-users digest..."
Today's Topics:
1. "forming reference to void" error building ALPS (Jonathan Patterson) 2. Re: "forming reference to void" error building ALPS (Matthias Troyer)
Message: 1 Date: Tue, 23 Jul 2013 20:53:26 +0100 From: Jonathan Patterson jop@astro.ox.ac.uk To: comp-phys-alps-users@lists.phys.ethz.ch Subject: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 51EEDF36.5070705@astro.ox.ac.uk Content-Type: text/plain; charset="ISO-8859-1"
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
Message: 2 Date: Tue, 23 Jul 2013 13:54:52 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 94EA1D75-1070-47AB-813E-3EF8443E5F21@phys.ethz.ch Content-Type: text/plain; charset=iso-8859-1
What version of ALPS do you try to build?
On Jul 23, 2013, at 1:53 PM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
End of Comp-phys-alps-users Digest, Vol 88, Issue 8
I cannot reproduce this with g++ 4.7.2 and the versions you mentioned. Do you by chance have also another Boost version installed on your system?
On Jul 24, 2013, at 9:29 AM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
I tried to build both: alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost If that isn't what you mean by "What version of ALPS did you try to build?" then can you clarify?
On 24/07/13 11:00, comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
Date: Tue, 23 Jul 2013 20:53:26 +0100 From: Jonathan Patterson jop@astro.ox.ac.uk To: comp-phys-alps-users@lists.phys.ethz.ch Subject: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 51EEDF36.5070705@astro.ox.ac.uk Content-Type: text/plain; charset="ISO-8859-1"
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
Message: 2 Date: Tue, 23 Jul 2013 13:54:52 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 94EA1D75-1070-47AB-813E-3EF8443E5F21@phys.ethz.ch Content-Type: text/plain; charset=iso-8859-1
What version of ALPS do you try to build?
On Jul 23, 2013, at 1:53 PM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
End of Comp-phys-alps-users Digest, Vol 88, Issue 8
I've got two other boost versions, and I can't remove either - they're needed for other projects - this is a multi-user machine. I specified which one should be used by cmake though, shouldn't that be enough, at least during building? I tried using boost 1.47 instead of the one bundled with alps, but that gave me a different error, below - about threading support not being available. Have you heard of a similar error before - the "reference to void" one - that makes you suspect it is a boost problem?
In file included from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/thread/detail/platform.hpp:17:0, from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/thread/once.hpp:12, from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/libs/thread/src/pthread/once.cpp:7: /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
On 24/07/13 18:41, Matthias Troyer wrote:
I cannot reproduce this with g++ 4.7.2 and the versions you mentioned. Do you by chance have also another Boost version installed on your system?
On Jul 24, 2013, at 9:29 AM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
I tried to build both: alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost If that isn't what you mean by "What version of ALPS did you try to build?" then can you clarify?
On 24/07/13 11:00, comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
Date: Tue, 23 Jul 2013 20:53:26 +0100 From: Jonathan Patterson jop@astro.ox.ac.uk To: comp-phys-alps-users@lists.phys.ethz.ch Subject: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 51EEDF36.5070705@astro.ox.ac.uk Content-Type: text/plain; charset="ISO-8859-1"
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
Message: 2 Date: Tue, 23 Jul 2013 13:54:52 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 94EA1D75-1070-47AB-813E-3EF8443E5F21@phys.ethz.ch Content-Type: text/plain; charset=iso-8859-1
What version of ALPS do you try to build?
On Jul 23, 2013, at 1:53 PM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
End of Comp-phys-alps-users Digest, Vol 88, Issue 8
On Jul 24, 2013, at 1:55 PM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
I've got two other boost versions, and I can't remove either - they're needed for other projects - this is a multi-user machine. I specified which one should be used by cmake though, shouldn't that be enough, at least during building?
I think it is a conflict between your Boost versions, with one of them being in a standard include path, and then you start including a mix of headers from different Boost versions.
I tried using boost 1.47 instead of the one bundled with alps, but that gave me a different error, below - about threading support not being available. Have you heard of a similar error before - the "reference to void" one - that makes you suspect it is a boost problem?
This has never been a problem on any installation so far and I could not reproduce it either - that's why I suspect that it is a mixup of headers.
In file included from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/thread/detail/platform.hpp:17:0, from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/thread/once.hpp:12, from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/libs/thread/src/pthread/once.cpp:7: /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
Here you again probably run into a Boost conflict with the one installed in your standard include path. Why don't you try just using the Boost version that is already installed?
On 24/07/13 18:41, Matthias Troyer wrote:
I cannot reproduce this with g++ 4.7.2 and the versions you mentioned. Do you by chance have also another Boost version installed on your system?
On Jul 24, 2013, at 9:29 AM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
I tried to build both: alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost If that isn't what you mean by "What version of ALPS did you try to build?" then can you clarify?
On 24/07/13 11:00, comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
Date: Tue, 23 Jul 2013 20:53:26 +0100 From: Jonathan Patterson jop@astro.ox.ac.uk To: comp-phys-alps-users@lists.phys.ethz.ch Subject: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 51EEDF36.5070705@astro.ox.ac.uk Content-Type: text/plain; charset="ISO-8859-1"
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
Message: 2 Date: Tue, 23 Jul 2013 13:54:52 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 94EA1D75-1070-47AB-813E-3EF8443E5F21@phys.ethz.ch Content-Type: text/plain; charset=iso-8859-1
What version of ALPS do you try to build?
On Jul 23, 2013, at 1:53 PM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
End of Comp-phys-alps-users Digest, Vol 88, Issue 8
Thanks, I think you're right. The pre-installed version of boost is one that apparently doesn't work with alps, so I'm building alps on a different machine with no boost libs pre-installed. It's now got past the original error. Now I'm struggling to get it to link in some of the Intel libraries along with the hdf5 ones, but that's another story. The original problem has been solved, thanks.
On 24/07/13 21:11, Matthias Troyer wrote:
On Jul 24, 2013, at 1:55 PM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
I've got two other boost versions, and I can't remove either - they're needed for other projects - this is a multi-user machine. I specified which one should be used by cmake though, shouldn't that be enough, at least during building?
I think it is a conflict between your Boost versions, with one of them being in a standard include path, and then you start including a mix of headers from different Boost versions.
I tried using boost 1.47 instead of the one bundled with alps, but that gave me a different error, below - about threading support not being available. Have you heard of a similar error before - the "reference to void" one - that makes you suspect it is a boost problem?
This has never been a problem on any installation so far and I could not reproduce it either - that's why I suspect that it is a mixup of headers.
In file included from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/thread/detail/platform.hpp:17:0, from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/thread/once.hpp:12, from /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/libs/thread/src/pthread/once.cpp:7: /usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost_1_47_0/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
Here you again probably run into a Boost conflict with the one installed in your standard include path. Why don't you try just using the Boost version that is already installed?
On 24/07/13 18:41, Matthias Troyer wrote:
I cannot reproduce this with g++ 4.7.2 and the versions you mentioned. Do you by chance have also another Boost version installed on your system?
On Jul 24, 2013, at 9:29 AM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
I tried to build both: alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost If that isn't what you mean by "What version of ALPS did you try to build?" then can you clarify?
On 24/07/13 11:00, comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
Date: Tue, 23 Jul 2013 20:53:26 +0100 From: Jonathan Patterson jop@astro.ox.ac.uk To: comp-phys-alps-users@lists.phys.ethz.ch Subject: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 51EEDF36.5070705@astro.ox.ac.uk Content-Type: text/plain; charset="ISO-8859-1"
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
Message: 2 Date: Tue, 23 Jul 2013 13:54:52 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] "forming reference to void" error building ALPS Message-ID: 94EA1D75-1070-47AB-813E-3EF8443E5F21@phys.ethz.ch Content-Type: text/plain; charset=iso-8859-1
What version of ALPS do you try to build?
On Jul 23, 2013, at 1:53 PM, Jonathan Patterson jop@astro.ox.ac.uk wrote:
Hi! Firstly, sorry - I must be doing something wrong, but I can't see what. I've tried alps-2.1.1-r6176-src-with-boost alps-2.1.2-r6963-src-with-boost with gcc 4.1.2, gcc 4.7.2, Intel compilers 11.1 Each time I get a variation of the following error when compiling: alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/latticelibrary.C:147:59: required from here alps-2.1.1-r6176-src-with-boost/alps/src/alps/lattice/propertymap.h:212:13: error: forming reference to void I'm using the following to setup the build. Anyone got any ideas what's going wrong please? Thank you.
~jop/installed/cmake/cmake-2.8.8/bin/cmake -D FFTW_INCLUDE_DIR=/usr/local/shared/fftw3.3.3/include -D FFTW_LIBRARIES=/usr/local/shared/fftw3.3.3/lib/libfftw3.so.3 -D ALPS_BUILD_FORTRAN=ON -D ALPS_ENABLE_OPENMP=ON -D CMAKE_INSTALL_PREFIX=/usr/local/shared/alps-2.1.1 -D BLAS_LIBRARY=/usr/local/shared/lapack-3.4.1-gfortran/libblas.a -D LAPACK_LIBRARY=/usr/local/shared/lapack-3.4.1/liblapack.a -D PYTHON_INTERPRETER=/usr/local/shared/bin/python27fpic -D CMAKE_C_COMPILER=gcc472 -D CMAKE_Fortran_COMPILER=gfortran472 -D CMAKE_CXX_COMPILER=g++472 -D HDF5_INCLUDE_DIR=/usr/local/shared/hdf5-1.8.10/include -D HDF5_STATIC_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.a -D HDF5_LIBRARIES=/usr/local/shared/hdf5-1.8.10/lib/libhdf5.so.7 -D Boost_ROOT_DIR:PATH=/usersVol2/jop/installed/alps/alps-2.1.2-r6963-src-with-boost/boost/ /usersVol2/jop/installed/alps/alps-2.1.1-r6176-src-with-boost/alps/
End of Comp-phys-alps-users Digest, Vol 88, Issue 8
comp-phys-alps-users@lists.phys.ethz.ch