Hi,
I am trying to install alps-2.1.1-r6670-src-with-boost on my Desktop(ubuntu 12.04, 64 bit machine).
The following is the script I run at the terminal. After cmake it seems to me everything fine. After that I issued a command make -j 3. Then I got an error at 100% build. You can see that error at the end of this mail. Could any one help me to solve this problem?
export Boost_ROOT_DIR=/opt/boost_1_49_0 export CXX=/usr/bin/g++ export CXXFLAGS="-W -march=native -O3" export CC=/usr/bin/gcc export BUILD_SHARED_LIBS=OFF export MPI_COMPILER=/usr/bin/mpicc export MPIEXEC=/usr/lib/openmpi/bin/mpiexec export CMAKE_BUILD_TYPE=RELEASE export ALPS_BUILD_TESTS=OFF export CMAKE_INSTALL_PREFIX=/home/dasari/DMFT_ALPS/alps export HDF5_LIB=/opt/hdf5/lib/libhdf5.so export HDF5_INC=/opt/hdf5/include export MPI_EXTRA_LIBRARY=/usr/lib/openmpi/lib/libmpi.so
cmake ../alps-2.1.1-r6670-src-with-boost/alps -DBoost_ROOT_DIR=$Boost_ROOT_DIR \ -DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS \ -DALPS_BUILD_APPLICATIONS=ON \ -DALPS_BUILD_EXAMPLES=ON \ -DALPS_INSTALL_HEADERS=OFF \ --DALPS_INCLUDE_TUTORIALS=ON \ -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \ -DALPS_BUILD_TESTS=$ALPS_BUILD_TESTS \ -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX \ -DALPS_BUILD_NGS="ON" \ -DHDF5_LIBRARIES=$HDF5_LIB \ -DHDF5_INCLUDE_DIR=$HDF5_INC\ -DALPS_BUILD_PYTHON="ON"\ -DMPIEXEC=$MPIEXEC \ -DMPI_COMPILER=$MPI_COMPILER \ -DMPI_EXTRA_LIBRARY=$MPI_EXTRA_LIBRARY
This is the error I got.
Linking CXX executable spinmc_evaluate [100%] Built target spinmc_evaluate Scanning dependencies of target worm [100%] Building CXX object applications/qmc/worms/CMakeFiles/worm.dir/main.C.o In file included from /opt/boost_1_49_0/boost/python/detail/wrap_python.hpp:50:0, from /opt/boost_1_49_0/boost/python/detail/prefix.hpp:13, from /opt/boost_1_49_0/boost/python/args.hpp:8, from /opt/boost_1_49_0/boost/python.hpp:11, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/mcdata.hpp:76, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler.h:31, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/WRun.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/main.C:29: /usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:164:0: note: this is the location of the previous definition /usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default] /usr/include/features.h:166:0: note: this is the location of the previous definition Scanning dependencies of target worm_evaluate [100%] Building CXX object applications/qmc/worms/CMakeFiles/worm_evaluate.dir/evaluate.C.o In file included from /opt/boost_1_49_0/boost/python/detail/wrap_python.hpp:50:0, from /opt/boost_1_49_0/boost/python/detail/prefix.hpp:13, from /opt/boost_1_49_0/boost/python/args.hpp:8, from /opt/boost_1_49_0/boost/python.hpp:11, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/mcdata.hpp:76, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler.h:31, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/evaluate.C:29: /usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:164:0: note: this is the location of the previous definition /usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default] /usr/include/features.h:166:0: note: this is the location of the previous definition Linking CXX executable worm Linking CXX shared library cthyb.so /usr/bin/ld: ../../../src/alps/libalps.a(hdf5.cpp.o): relocation R_X86_64_32S against `vtable for alps::bad_cast' can not be used when making a shared object; recompile with -fPIC ../../../src/alps/libalps.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [applications/dmft/qmc/cthyb.so] Error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/cthyb.so.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Built target worm Linking CXX executable worm_evaluate [100%] Built target worm_evaluate make: *** [all] Error 2
With regards, Dasari.
Hi Dasari,
the error message tells you to use the flag -fPIC. Just use ccmake and add that flag to the CMAKE_CXX_FLAGS variable. Then recompile again.
Matthias Troyer
On Feb 8, 2013, at 1:48 PM, dasari@jncasr.ac.in wrote:
Hi,
I am trying to install alps-2.1.1-r6670-src-with-boost on my Desktop(ubuntu 12.04, 64 bit machine).
The following is the script I run at the terminal. After cmake it seems to me everything fine. After that I issued a command make -j 3. Then I got an error at 100% build. You can see that error at the end of this mail. Could any one help me to solve this problem?
export Boost_ROOT_DIR=/opt/boost_1_49_0 export CXX=/usr/bin/g++ export CXXFLAGS="-W -march=native -O3" export CC=/usr/bin/gcc export BUILD_SHARED_LIBS=OFF export MPI_COMPILER=/usr/bin/mpicc export MPIEXEC=/usr/lib/openmpi/bin/mpiexec export CMAKE_BUILD_TYPE=RELEASE export ALPS_BUILD_TESTS=OFF export CMAKE_INSTALL_PREFIX=/home/dasari/DMFT_ALPS/alps export HDF5_LIB=/opt/hdf5/lib/libhdf5.so export HDF5_INC=/opt/hdf5/include export MPI_EXTRA_LIBRARY=/usr/lib/openmpi/lib/libmpi.so
cmake ../alps-2.1.1-r6670-src-with-boost/alps -DBoost_ROOT_DIR=$Boost_ROOT_DIR \ -DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS \ -DALPS_BUILD_APPLICATIONS=ON \ -DALPS_BUILD_EXAMPLES=ON \ -DALPS_INSTALL_HEADERS=OFF \ --DALPS_INCLUDE_TUTORIALS=ON \ -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \ -DALPS_BUILD_TESTS=$ALPS_BUILD_TESTS \ -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX \ -DALPS_BUILD_NGS="ON" \ -DHDF5_LIBRARIES=$HDF5_LIB \ -DHDF5_INCLUDE_DIR=$HDF5_INC\ -DALPS_BUILD_PYTHON="ON"\ -DMPIEXEC=$MPIEXEC \ -DMPI_COMPILER=$MPI_COMPILER \ -DMPI_EXTRA_LIBRARY=$MPI_EXTRA_LIBRARY
This is the error I got.
Linking CXX executable spinmc_evaluate [100%] Built target spinmc_evaluate Scanning dependencies of target worm [100%] Building CXX object applications/qmc/worms/CMakeFiles/worm.dir/main.C.o In file included from /opt/boost_1_49_0/boost/python/detail/wrap_python.hpp:50:0, from /opt/boost_1_49_0/boost/python/detail/prefix.hpp:13, from /opt/boost_1_49_0/boost/python/args.hpp:8, from /opt/boost_1_49_0/boost/python.hpp:11, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/mcdata.hpp:76, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler.h:31, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/WRun.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/main.C:29: /usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:164:0: note: this is the location of the previous definition /usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default] /usr/include/features.h:166:0: note: this is the location of the previous definition Scanning dependencies of target worm_evaluate [100%] Building CXX object applications/qmc/worms/CMakeFiles/worm_evaluate.dir/evaluate.C.o In file included from /opt/boost_1_49_0/boost/python/detail/wrap_python.hpp:50:0, from /opt/boost_1_49_0/boost/python/detail/prefix.hpp:13, from /opt/boost_1_49_0/boost/python/args.hpp:8, from /opt/boost_1_49_0/boost/python.hpp:11, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/mcdata.hpp:76, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler.h:31, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/evaluate.C:29: /usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:164:0: note: this is the location of the previous definition /usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default] /usr/include/features.h:166:0: note: this is the location of the previous definition Linking CXX executable worm Linking CXX shared library cthyb.so /usr/bin/ld: ../../../src/alps/libalps.a(hdf5.cpp.o): relocation R_X86_64_32S against `vtable for alps::bad_cast' can not be used when making a shared object; recompile with -fPIC ../../../src/alps/libalps.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [applications/dmft/qmc/cthyb.so] Error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/cthyb.so.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Built target worm Linking CXX executable worm_evaluate [100%] Built target worm_evaluate make: *** [all] Error 2
With regards, Dasari.
Dear Sir/Madam,
I am looking for the reply to my previous mail. Below I am showing the screen output of cmake command. I attached my CMakeCache.txt also. Previously I installed alps-2.1.1-r6176-src-with-boost on my Desktop. But on the same Desktop I am not able to install alps-2.1.1-r6670-src-with-boost. Please help me.
The following is the output of cmake command.
-- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ -- Check for working CXX compiler: /usr/bin/g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Compiler version: g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 -- Build type: RELEASE -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.7.3 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib/python2.7/dist-packages/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages -- PYTHON_LIBRARY = /usr/lib/python2.7/config/libpython2.7.a -- PYTHON_EXTRA_LIBS =-lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -- ALPS version: 2.1.1 -- Looking for rpc/rpc.h -- Looking for rpc/rpc.h - found -- Looking for stdarg.h -- Looking for stdarg.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/systeminfo.h -- Looking for sys/systeminfo.h - not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for windows.h -- Looking for windows.h - not found -- Looking for C++ include valarray -- Looking for C++ include valarray - found -- Looking for Boost Source -- Found Boost Source: /opt/boost_1_49_0 -- Boost Version: 1_49_0 -- Adding Boost dir: /opt/boost_1_49_0 -- Found MPI_C: /usr/lib/openmpi/lib/libmpi_cxx.so -- Found MPI_CXX: /usr/lib/openmpi/lib/libmpi_cxx.so -- MPI compiler was /usr/bin/mpicc -- LAPACK DEBUG::Compiler id GNU -- LAPACK DEBUG::Compiler version -- LAPACK DEBUG::Processor x86_64 -- LAPACK DEBUG::ENV{MKL} -- LAPACK DEBUG::ENV{MKLROOT} /opt/intel/composer_xe_2011_sp1.10.319/mkl -- LAPACK DEBUG::ENV{MKL_HOME} -- LAPACK DEBUG::MKL_VERSION (raw) 1.10.319 -- LAPACK DEBUG::MKL_VERSION 10.3.1 -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for sgemm -- Looking for sgemm - found -- Found intel/mkl library -- LAPACK DEBUG::LAPACK_LIBRARY = -L/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/intel64;-lmkl_intel_lp64;-lmkl_sequential;-lmkl_core;-lpthread;-lm -- SQLite Library: not found -- Found FFTW: /usr/lib/libfftw3.so -- LPSolve Library: not found -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so -- Could NOT find SZIP (missing: SZIP_LIBRARIES SZIP_INCLUDE_DIRS) -- Found HDF5: /opt/hdf5/lib/libhdf5.so -- HDF5: /opt/hdf5/include /opt/hdf5/lib/libhdf5.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.7.3 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib/python2.7/dist-packages/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages -- PYTHON_LIBRARY = /usr/lib/python2.7/config/libpython2.7.a -- PYTHON_EXTRA_LIBS =-lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -- Numpy include in /usr/lib/python2.7/dist-packages/numpy/core/include -- ALPS XML dir is /home/dasari/DMFT_ALPS/alps/lib/xml -- HDF5: /opt/hdf5/include /opt/hdf5/lib/libhdf5.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND -- HDF5: /opt/hdf5/include /opt/hdf5/lib/libhdf5.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND -- tebd will not be built -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:
ALPS_BUILD_NGS -- Build files have been written to: /home/dasari/DMFT_ALPS/alps_build
I used a command make -j 3. Then I got an error with mpi external library. The following is the error.
Linking CXX executable convert2xml Linking CXX static library libpyngsresults_c.a [ 82%] Built target pyngsresults_c Scanning dependencies of target lattice2xml /usr/bin/ld: ../src/alps/libalps.a(process.C.o): undefined reference to symbol 'MPI_Type_indexed' /usr/bin/ld: note: 'MPI_Type_indexed' is defined in DSO /usr/lib/libmpi.so.0 so try adding it to the linker command line /usr/lib/libmpi.so.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [tool/convert2xml] Error 1 make[1]: *** [tool/CMakeFiles/convert2xml.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 82%] Building CXX object tool/CMakeFiles/lattice2xml.dir/lattice2xml.C.o Linking CXX executable compactrun /usr/bin/ld: ../src/alps/libalps.a(process.C.o): undefined reference to symbol 'MPI_Type_indexed' /usr/bin/ld: note: 'MPI_Type_indexed' is defined in DSO /usr/lib/libmpi.so.0 so try adding it to the linker command line /usr/lib/libmpi.so.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [tool/compactrun] Error 1 make[1]: *** [tool/CMakeFiles/compactrun.dir/all] Error 2 Linking CXX executable lattice2xml [ 82%] Built target lattice2xml make: *** [all] Error 2
I solved the above error by adding a path of libmpi_cxx.so to the mpi-external library in the CMakeCache.txt. Next I run the command make -j 3. Then I got a following error(Already I showed in my previous mail).
Linking CXX shared library cthyb.so /usr/bin/ld: ../../../src/alps/libalps.a(hdf5.cpp.o): relocation R_X86_64_32S against `vtable for alps::bad_cast' can not be used when making a shared object; recompile with -fPIC ../../../src/alps/libalps.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [applications/dmft/qmc/cthyb.so] Error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/cthyb.so.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Linking CXX executable worm [100%] Built target worm Linking CXX executable worm_evaluate [100%] Built target worm_evaluate make: *** [all] Error 2
With regards, Dasari.
----- Original Message ----- From: dasari@jncasr.ac.in To: comp-phys-alps-users@lists.phys.ethz.ch Sent: Friday, February 8, 2013 5:48:39 PM Subject: alps-2.1.1-r6670-src-with-boost installation error on ubuntu 12.04
Hi,
I am trying to install alps-2.1.1-r6670-src-with-boost on my Desktop(ubuntu 12.04, 64 bit machine).
The following is the script I run at the terminal. After cmake it seems to me everything fine. After that I issued a command make -j 3. Then I got an error at 100% build. You can see that error at the end of this mail. Could any one help me to solve this problem?
export Boost_ROOT_DIR=/opt/boost_1_49_0 export CXX=/usr/bin/g++ export CXXFLAGS="-W -march=native -O3" export CC=/usr/bin/gcc export BUILD_SHARED_LIBS=OFF export MPI_COMPILER=/usr/bin/mpicc export MPIEXEC=/usr/lib/openmpi/bin/mpiexec export CMAKE_BUILD_TYPE=RELEASE export ALPS_BUILD_TESTS=OFF export CMAKE_INSTALL_PREFIX=/home/dasari/DMFT_ALPS/alps export HDF5_LIB=/opt/hdf5/lib/libhdf5.so export HDF5_INC=/opt/hdf5/include export MPI_EXTRA_LIBRARY=/usr/lib/openmpi/lib/libmpi.so
cmake ../alps-2.1.1-r6670-src-with-boost/alps -DBoost_ROOT_DIR=$Boost_ROOT_DIR \ -DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS \ -DALPS_BUILD_APPLICATIONS=ON \ -DALPS_BUILD_EXAMPLES=ON \ -DALPS_INSTALL_HEADERS=OFF \ --DALPS_INCLUDE_TUTORIALS=ON \ -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \ -DALPS_BUILD_TESTS=$ALPS_BUILD_TESTS \ -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX \ -DALPS_BUILD_NGS="ON" \ -DHDF5_LIBRARIES=$HDF5_LIB \ -DHDF5_INCLUDE_DIR=$HDF5_INC\ -DALPS_BUILD_PYTHON="ON"\ -DMPIEXEC=$MPIEXEC \ -DMPI_COMPILER=$MPI_COMPILER \ -DMPI_EXTRA_LIBRARY=$MPI_EXTRA_LIBRARY
This is the error I got.
Linking CXX executable spinmc_evaluate [100%] Built target spinmc_evaluate Scanning dependencies of target worm [100%] Building CXX object applications/qmc/worms/CMakeFiles/worm.dir/main.C.o In file included from /opt/boost_1_49_0/boost/python/detail/wrap_python.hpp:50:0, from /opt/boost_1_49_0/boost/python/detail/prefix.hpp:13, from /opt/boost_1_49_0/boost/python/args.hpp:8, from /opt/boost_1_49_0/boost/python.hpp:11, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/mcdata.hpp:76, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler.h:31, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/WRun.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/main.C:29: /usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:164:0: note: this is the location of the previous definition /usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default] /usr/include/features.h:166:0: note: this is the location of the previous definition Scanning dependencies of target worm_evaluate [100%] Building CXX object applications/qmc/worms/CMakeFiles/worm_evaluate.dir/evaluate.C.o In file included from /opt/boost_1_49_0/boost/python/detail/wrap_python.hpp:50:0, from /opt/boost_1_49_0/boost/python/detail/prefix.hpp:13, from /opt/boost_1_49_0/boost/python/args.hpp:8, from /opt/boost_1_49_0/boost/python.hpp:11, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/mcdata.hpp:76, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea.h:34, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/src/alps/scheduler.h:31, from /home/dasari/DMFT_ALPS/alps-2.1.1-r6670-src-with-boost/alps/applications/qmc/worms/evaluate.C:29: /usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:164:0: note: this is the location of the previous definition /usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default] /usr/include/features.h:166:0: note: this is the location of the previous definition Linking CXX executable worm Linking CXX shared library cthyb.so /usr/bin/ld: ../../../src/alps/libalps.a(hdf5.cpp.o): relocation R_X86_64_32S against `vtable for alps::bad_cast' can not be used when making a shared object; recompile with -fPIC ../../../src/alps/libalps.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [applications/dmft/qmc/cthyb.so] Error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/cthyb.so.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Built target worm Linking CXX executable worm_evaluate [100%] Built target worm_evaluate make: *** [all] Error 2
With regards, Dasari.
Dear Prof. Matthias Troyer,
I used -fPIC flag at CXXFLAGS in CMakeCache.txt. My previous error was solved. But I got an another error. Please see it below. I solved this error by went through the previous postings in the Alps forum. Finally I installed ALPS. Thanks to ALPS forum.
Linking CXX shared library cthyb.so /usr/bin/ld: /usr/lib/python2.7/config/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/lib/python2.7/config/libpython2.7.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [applications/dmft/qmc/cthyb.so] Error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/cthyb.so.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Linking CXX executable worm [100%] Built target worm Linking CXX executable worm_evaluate [100%] Built target worm_evaluate make: *** [all] Error 2
With regards, Dasari.
----- Original Message ----- From: "Matthias Troyer" troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Sent: Tuesday, February 12, 2013 11:39:30 AM Subject: Re: [ALPS-users] alps-2.1.1-r6670-src-with-boost installation error on ubuntu 12.04
Dear Sir/Madam,
I am looking for the reply to my previous mail.
Just look at the mails on the list. The reply has already been posted.
The error "/usr/lib/python2.7/config/libpython2.7.a: could not read symbols: Bad value" probably means that this library was not compiled for 64 bits.
On Feb 11, 2013, at 10:11 PM, dasari@jncasr.ac.in wrote:
Dear Prof. Matthias Troyer,
I used -fPIC flag at CXXFLAGS in CMakeCache.txt. My previous error was solved. But I got an another error. Please see it below. I solved this error by went through the previous postings in the Alps forum. Finally I installed ALPS. Thanks to ALPS forum.
Linking CXX shared library cthyb.so /usr/bin/ld: /usr/lib/python2.7/config/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/lib/python2.7/config/libpython2.7.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [applications/dmft/qmc/cthyb.so] Error 1 make[1]: *** [applications/dmft/qmc/CMakeFiles/cthyb.so.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Linking CXX executable worm [100%] Built target worm Linking CXX executable worm_evaluate [100%] Built target worm_evaluate make: *** [all] Error 2
With regards, Dasari.
----- Original Message ----- From: "Matthias Troyer" troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Sent: Tuesday, February 12, 2013 11:39:30 AM Subject: Re: [ALPS-users] alps-2.1.1-r6670-src-with-boost installation error on ubuntu 12.04
Dear Sir/Madam,
I am looking for the reply to my previous mail.
Just look at the mails on the list. The reply has already been posted.
comp-phys-alps-users@lists.phys.ethz.ch