Hi Joseph,

I'm not at all a Fortran expert, but it looks to me you need OpenMP enabled.
To do so, add this definition to your configuration command: -DALPS_ENABLE_OPENMP=ON.


Best,
Michele

--
ETH Zurich
Michele Dolfi
Institute for Theoretical Physics
HIT G 32.4
Wolfgang-Pauli-Str. 27
8093 Zurich
Switzerland


+41 44 633 78 56 phone
+41 44 633 11 15 fax 





On Jul 18, 2013, at 5:51 PM, Joseph Prentice <Joseph.Prentice@physics.ox.ac.uk> wrote:

Hi all,

Apologies for changing tack, given my previous message about installing on Mac OS X 10.7.5, but I have instead tried installing ALPS on Ubuntu 12.04, following the instructions on the wiki, with admin privileges now. After getting the dependent libraries as described, to compile ALPS I initially used the command:
$ sudo cmake -DALPS_BUILD_FORTRAN=ON -DCMAKE_INSTALL_PREFIX=/home/prentice/Documents/ALPSInstall/ /home/prentice/Documents/ALPS/alps-2.1.1-r6176-src/alps 
and this seemed to work well. I then used sudo make and let ALPS build. However, at about 64% in, I got the following message:
Scanning dependencies of target tebd
[ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/GlobalData.f90.o
[ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LinearOps.f90.o
[ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/HamiOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/StateOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LocalOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/ObOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o
[ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/PropOps.f90.o
[ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/tebd.f90.o
Linking Fortran executable tebd
CMakeFiles/tebd.dir/tebd.f90.o: In function `MAIN__':
tebd.f90:(.text+0x8b0): undefined reference to `omp_get_num_procs_'
tebd.f90:(.text+0x9ab): undefined reference to `omp_set_num_threads_'
collect2: ld returned 1 exit status
make[2]: *** [applications/dmrg/tebd/tebd] Error 1
make[1]: *** [applications/dmrg/tebd/CMakeFiles/tebd.dir/all] Error 2
make: *** [all] Error 2

Are there any ideas about what can be done with this? There doesn't appear to be a problem with OpenMP, as we have tested it with another simple program, and I have Googled the error too, with no results. I am stumped, and any help would be greatly appreciated. I will attach the CMakeCache.txt file if that is of use.

Thank you very much,
Joseph Prentice
<TEBD Fail Ubuntu CMakeCache.txt.gz>