cmake and 8.0

667 views
Skip to first unread message

Craig Michoski

unread,
Nov 26, 2013, 7:36:25 PM11/26/13
to dea...@googlegroups.com
Hey guys,

I'm getting a new weird cmake error configuring with the latest petsc and p4est with the 8.0 release.  I am getting a ton of stuff like the below using the following:

cmake ../deal.II -DP4EST_DIR=$ArcOn_DIR/p4est -DPETSC-DIR=$PETSC_DIR -DCMAKE_INSTALL_PREFIX=$ArcOn_DIR/trigger -DDEAL_II_WITH_THREADS=OFF

My module layout is 

1) TACC   2) TACC-paths   3) Linux   4) cluster   5) cluster-paths   6) intel/13.0.2.146   7) mvapich2/1.9a2   8) boost/1.51.0   9) qt/4.8.4  10) cmake/2.8.9  11) git/1.8.1.1  12) valgrind/3.8.1  13) hdf5/1.8.9  14) netcdf/4.2.1.1

where p4est and pestc seem to compile and install without any problems. 

sh p4est-setup.sh p4est-0.3.4.2.tar.gz $ArcOn_DIR/p4est

./configure --with-shared-libraries --with-debugging=false \
--COPTFLAGS='-O3' --CXXOPTFLAGS='-O3' --FOPTFLAGS='-O3' \
--with-mpi-compilers=1 --with-mpi-dir=/opt/apps/intel13/mvapich2/1.9 \
--with-scalar-type=real --with-dynamic-loading=0 \
--with-shared-libraries=1 --with-spai=1 --download-spai --with-hypre=1 \
--download-hypre --with-mumps=1 --download-mumps --with-scalapack=1 \
--download-scalapack --with-blacs=1 --download-blacs --with-spooles=1 \
--download-spooles --with-superlu=1 --download-superlu \
--with-superlu_dist=1 --download-superlu_dist --with-parmetis=1 \
--download-parmetis --with-metis=1 --download-metis \
--with-blas-lapack-dir=/opt/apps/intel/13/composer_xe_2013.1.117/mkl/lib/intel64

Can anyone point me in the right direction by chance?

Many thanks,
Craig


===========================================================================

8.0 warnings:


-- Configuring done
CMake Warning at cmake/scripts/CMakeLists.txt:51 (ADD_EXECUTABLE):
  Cannot generate a safe linker search path for target report_features
  because there is a cycle in the constraint graph:

    dir 0 is [/opt/apps/intel/13/composer_xe_2013.1.117/mkl/lib/intel64]
      dir 1 must precede it due to link library [libmkl_gf_lp64.so]
    dir 1 is [/opt/apps/intel/13/composer_xe_2013.2.146/mkl/lib/intel64]
      dir 0 must precede it due to link library [libmkl_intel_lp64.so]

  Some of these libraries may not be found correctly.


CMake Warning at cmake/scripts/CMakeLists.txt:51 (ADD_EXECUTABLE):
  Cannot generate a safe runtime search path for target report_features
  because there is a cycle in the constraint graph:

    dir 0 is [/work/00004/michoski/arcOn-r2-11.13/arcOn/petsc-3.4.3/intel-13.0.2.146-MVAPICH2-1.9a2-cxx-opt/lib]
    dir 1 is [/opt/apps/intel/13/composer_xe_2013.1.117/mkl/lib/intel64]
      dir 3 must precede it due to runtime library [libmkl_gf_lp64.so]
    dir 2 is [/work/00004/michoski/arcOn-r2-11.13/arcOn/p4est/FAST/lib]
    dir 3 is [/opt/apps/intel/13/composer_xe_2013.2.146/mkl/lib/intel64]
      dir 1 must precede it due to runtime library [libmkl_intel_lp64.so]

  Some of these libraries may not be found correctly.

etc.


Timo Heister

unread,
Nov 26, 2013, 7:53:38 PM11/26/13
to dea...@googlegroups.com
> dir 0 is [/opt/apps/intel/13/composer_xe_2013.1.117/mkl/lib/intel64]
> dir 1 is [/opt/apps/intel/13/composer_xe_2013.2.146/mkl/lib/intel64]

You are trying to link with two different MKL libraries from different
directories, which will get you into trouble. Did you change the
modules between compiling any of the other libraries (like PETSc or
p4est)? You can find out by looking at the output of ldd.

--
Timo Heister
http://www.math.clemson.edu/~heister/

Craig Michoski

unread,
Nov 27, 2013, 12:41:15 PM11/27/13
to dea...@googlegroups.com
Ah, thanks Timo!  This was actually being caused from configuring PETSc with 117 and deal.ii with 146, weirdly.
Reply all
Reply to author
Forward
0 new messages