OpenCMISS / manage

The main project for CMake-based OpenCMISS builds
Apache License 2.0
3 stars 15 forks source link

Example builds do not respect build type #103

Closed chrispbradley closed 6 years ago

chrispbradley commented 6 years ago

When building a debug version of an example the release libraries are linked in. It should be possible to select the build type to Debug and have it link a proper debug build i.e., with all debug libraries. In addition standard OPENCMISS_BUILD_TYPE is not respected.

cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): rm -rf * cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): cmake -DOpenCMISSLibs_DIR=/data/OpenCMISS/install -DOPENCMISS_BUILD_TYPE=Debug ../../. -- The C compiler identification is GNU 7.2.1 -- The Fortran compiler identification is GNU 7.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working Fortran compiler: /usr/bin/gfortran -- Check for working Fortran compiler: /usr/bin/gfortran -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/gfortran supports Fortran 90 -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes -- Looking for an MPI ... -- Looking for an MPI ... found mpich -- Unknown instrumentation option. Ignoring. -- Looking for OpenCMISS-Iron ... -- FindLAPACK wrapper: System search enabled -- FindLAPACK wrapper: Trying to find version 3.5.0 on system in MODULE mode -- Looking for Fortran sgemm -- Looking for Fortran sgemm - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not 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
-- A library with BLAS API found. -- Looking for Fortran cheev -- Looking for Fortran cheev - found -- FindLAPACK wrapper: Found: /usr/lib64/liblapack.so;/usr/lib64/libblas.so -- FindBLAS wrapper: System search enabled -- FindBLAS wrapper: Trying to find version on system in MODULE mode -- FindBLAS wrapper: Found: /usr/lib64/libblas.so -- FindSCALAPACK wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- Found MPI_C: /usr/lib64/mpich/lib/libmpi.so (found version "3.1") -- Found MPI_Fortran: /usr/lib64/mpich/lib/libmpifort.so (found version "3.1") -- Found MPI: TRUE (found version "3.1")
-- FindPARMETIS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindMUMPS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUPERLU wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindHYPRE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUNDIALS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindZLIB wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindBZip2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindPASTIX wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUITESPARSE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindSUPERLU_DIST wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindPETSC wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindLibXml2 wrapper: System search enabled -- FindLibXml2 wrapper: Trying to find version 2.7.6 on system in MODULE mode -- FindLibXml2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- Looking for OpenCMISS-Iron ... Success -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

OPENCMISS_BUILD_TYPE

-- Build files have been written to: /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): make VERBOSE=1 /usr/bin/cmake -H/data/OpenCMISS/examples/active_contraction -B/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/depend make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /data/OpenCMISS/examples/active_contraction /data/OpenCMISS/examples/active_contraction/src/fortran /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/DependInfo.cmake --color= Dependee "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/DependInfo.cmake" is newer than depender "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/depend.internal". Dependee "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/depend.internal". Scanning dependencies of target active_contraction make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/requires make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make[2]: Nothing to be done for 'src/fortran/CMakeFiles/active_contraction.dir/requires'. make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/build make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' [ 50%] Building Fortran object src/fortran/CMakeFiles/active_contraction.dir/active_contraction.F90.o cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran && /usr/bin/gfortran -DDOUBLE_REAL_PRECISION -DNOMPIMOD -DWITH_CELLML -DWITH_FIELDML -DWITH_HYPRE -DWITH_MUMPS -DWITH_PETSC -DWITH_SCALAPACK -DWITH_SUNDIALS -I/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/include/opencmiss -I/usr/include/mpich-x86_64 -I/usr/lib64/gfortran/modules/mpich -I/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/include -c /data/OpenCMISS/examples/active_contraction/src/fortran/active_contraction.F90 -o CMakeFiles/active_contraction.dir/active_contraction.F90.o [100%] Linking Fortran executable active_contraction cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran && /usr/bin/cmake -E cmake_link_script CMakeFiles/active_contraction.dir/link.txt --verbose=1 /usr/bin/gfortran CMakeFiles/active_contraction.dir/active_contraction.F90.o -o active_contraction -Wl,-rpath,/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib:/usr/lib64/mpich/lib:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron_c.so /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron.so -Wl,-rpath -Wl,/usr/lib64/mpich/lib -Wl,--enable-new-dtags /usr/lib64/mpich/lib/libmpifort.so /usr/lib64/mpich/lib/libmpi.so make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' [100%] Built target active_contraction make[1]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' /usr/bin/cmake -E cmake_progress_start /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles 0 cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): cmake -DOpenCMISSLibs_DIR=/data/OpenCMISS/install -DCMAKE_BUILD_TYPE=Debug ../../. -- Looking for an MPI ... -- Looking for an MPI ... found mpich -- Unknown instrumentation option. Ignoring. -- Looking for OpenCMISS-Iron ... -- FindLAPACK wrapper: System search enabled -- FindLAPACK wrapper: Trying to find version 3.5.0 on system in MODULE mode -- A library with BLAS API found. -- FindLAPACK wrapper: Found: /usr/lib64/liblapack.so;/usr/lib64/libblas.so -- FindBLAS wrapper: System search enabled -- FindBLAS wrapper: Trying to find version on system in MODULE mode -- FindBLAS wrapper: Found: /usr/lib64/libblas.so -- FindSCALAPACK wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindPARMETIS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindMUMPS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUPERLU wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindHYPRE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUNDIALS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindZLIB wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindBZip2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindPASTIX wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUITESPARSE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindSUPERLU_DIST wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindPETSC wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindLibXml2 wrapper: System search enabled -- FindLibXml2 wrapper: Trying to find version 2.7.6 on system in MODULE mode -- FindLibXml2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- Looking for OpenCMISS-Iron ... Success -- Configuring done -- Generating done -- Build files have been written to: /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): make VERBOSE=1 /usr/bin/cmake -H/data/OpenCMISS/examples/active_contraction -B/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/depend make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /data/OpenCMISS/examples/active_contraction /data/OpenCMISS/examples/active_contraction/src/fortran /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/DependInfo.cmake --color= make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/requires make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make[2]: Nothing to be done for 'src/fortran/CMakeFiles/active_contraction.dir/requires'. make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/build make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' [ 50%] Building Fortran object src/fortran/CMakeFiles/active_contraction.dir/active_contraction.F90.o cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran && /usr/bin/gfortran -DDOUBLE_REAL_PRECISION -DNOMPIMOD -DWITH_CELLML -DWITH_FIELDML -DWITH_HYPRE -DWITH_MUMPS -DWITH_PETSC -DWITH_SCALAPACK -DWITH_SUNDIALS -I/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/include/opencmiss -I/usr/include/mpich-x86_64 -I/usr/lib64/gfortran/modules/mpich -I/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/include -g -c /data/OpenCMISS/examples/active_contraction/src/fortran/active_contraction.F90 -o CMakeFiles/active_contraction.dir/active_contraction.F90.o [100%] Linking Fortran executable active_contraction cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran && /usr/bin/cmake -E cmake_link_script CMakeFiles/active_contraction.dir/link.txt --verbose=1 /usr/bin/gfortran -g CMakeFiles/active_contraction.dir/active_contraction.F90.o -o active_contraction -Wl,-rpath,/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib:/usr/lib64/mpich/lib:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron_c.so /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron.so -Wl,-rpath -Wl,/usr/lib64/mpich/lib -Wl,--enable-new-dtags /usr/lib64/mpich/lib/libmpifort.so /usr/lib64/mpich/lib/libmpi.so make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' [100%] Built target active_contraction make[1]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' /usr/bin/cmake -E cmake_progress_start /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles 0 cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): rm -rf * cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): cmake -DOpenCMISSLibs_DIR=/data/OpenCMISS/install -DOPENCMISS_BUILD_TYPE=Debug ../../. -- The C compiler identification is GNU 7.2.1 -- The Fortran compiler identification is GNU 7.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working Fortran compiler: /usr/bin/gfortran -- Check for working Fortran compiler: /usr/bin/gfortran -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/gfortran supports Fortran 90 -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes -- Looking for an MPI ... -- Looking for an MPI ... found mpich -- Unknown instrumentation option. Ignoring. -- Looking for OpenCMISS-Iron ... -- FindLAPACK wrapper: System search enabled -- FindLAPACK wrapper: Trying to find version 3.5.0 on system in MODULE mode -- Looking for Fortran sgemm -- Looking for Fortran sgemm - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not 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
-- A library with BLAS API found. -- Looking for Fortran cheev -- Looking for Fortran cheev - found -- FindLAPACK wrapper: Found: /usr/lib64/liblapack.so;/usr/lib64/libblas.so -- FindBLAS wrapper: System search enabled -- FindBLAS wrapper: Trying to find version on system in MODULE mode -- FindBLAS wrapper: Found: /usr/lib64/libblas.so -- FindSCALAPACK wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- Found MPI_C: /usr/lib64/mpich/lib/libmpi.so (found version "3.1") -- Found MPI_Fortran: /usr/lib64/mpich/lib/libmpifort.so (found version "3.1") -- Found MPI: TRUE (found version "3.1")
-- FindPARMETIS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindMUMPS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUPERLU wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindHYPRE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUNDIALS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindZLIB wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindBZip2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindPASTIX wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUITESPARSE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindSUPERLU_DIST wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindPETSC wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindLibXml2 wrapper: System search enabled -- FindLibXml2 wrapper: Trying to find version 2.7.6 on system in MODULE mode -- FindLibXml2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- Looking for OpenCMISS-Iron ... Success -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

OPENCMISS_BUILD_TYPE

-- Build files have been written to: /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): rm -rf * cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): cmake -DOpenCMISSLibs_DIR=/data/OpenCMISS/install -DCMAKE_BUILD_TYPE=Debug ../../. -- The C compiler identification is GNU 7.2.1 -- The Fortran compiler identification is GNU 7.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working Fortran compiler: /usr/bin/gfortran -- Check for working Fortran compiler: /usr/bin/gfortran -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/gfortran supports Fortran 90 -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes -- Looking for an MPI ... -- Looking for an MPI ... found mpich -- Unknown instrumentation option. Ignoring. -- Looking for OpenCMISS-Iron ... -- FindLAPACK wrapper: System search enabled -- FindLAPACK wrapper: Trying to find version 3.5.0 on system in MODULE mode -- Looking for Fortran sgemm -- Looking for Fortran sgemm - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not 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
-- A library with BLAS API found. -- Looking for Fortran cheev -- Looking for Fortran cheev - found -- FindLAPACK wrapper: Found: /usr/lib64/liblapack.so;/usr/lib64/libblas.so -- FindBLAS wrapper: System search enabled -- FindBLAS wrapper: Trying to find version on system in MODULE mode -- FindBLAS wrapper: Found: /usr/lib64/libblas.so -- FindSCALAPACK wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- Found MPI_C: /usr/lib64/mpich/lib/libmpi.so (found version "3.1") -- Found MPI_Fortran: /usr/lib64/mpich/lib/libmpifort.so (found version "3.1") -- Found MPI: TRUE (found version "3.1")
-- FindPARMETIS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindMUMPS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUPERLU wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindHYPRE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUNDIALS wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindZLIB wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindBZip2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindPASTIX wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindSUITESPARSE wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- FindSUPERLU_DIST wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindPETSC wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/cmake in CONFIG mode -- FindLibXml2 wrapper: System search enabled -- FindLibXml2 wrapper: Trying to find version 2.7.6 on system in MODULE mode -- FindLibXml2 wrapper: Found at /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/no_mpi/cmake in CONFIG mode -- Looking for OpenCMISS-Iron ... Success -- Configuring done -- Generating done -- Build files have been written to: /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): make VERBOSE=1 /usr/bin/cmake -H/data/OpenCMISS/examples/active_contraction -B/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/depend make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /data/OpenCMISS/examples/active_contraction /data/OpenCMISS/examples/active_contraction/src/fortran /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/DependInfo.cmake --color= Dependee "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/DependInfo.cmake" is newer than depender "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/depend.internal". Dependee "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran/CMakeFiles/active_contraction.dir/depend.internal". Scanning dependencies of target active_contraction make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/requires make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make[2]: Nothing to be done for 'src/fortran/CMakeFiles/active_contraction.dir/requires'. make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' make -f src/fortran/CMakeFiles/active_contraction.dir/build.make src/fortran/CMakeFiles/active_contraction.dir/build make[2]: Entering directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' [ 50%] Building Fortran object src/fortran/CMakeFiles/active_contraction.dir/active_contraction.F90.o cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran && /usr/bin/gfortran -DDOUBLE_REAL_PRECISION -DNOMPIMOD -DWITH_CELLML -DWITH_FIELDML -DWITH_HYPRE -DWITH_MUMPS -DWITH_PETSC -DWITH_SCALAPACK -DWITH_SUNDIALS -I/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/include/opencmiss -I/usr/include/mpich-x86_64 -I/usr/lib64/gfortran/modules/mpich -I/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/include -g -c /data/OpenCMISS/examples/active_contraction/src/fortran/active_contraction.F90 -o CMakeFiles/active_contraction.dir/active_contraction.F90.o [100%] Linking Fortran executable active_contraction cd /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/src/fortran && /usr/bin/cmake -E cmake_link_script CMakeFiles/active_contraction.dir/link.txt --verbose=1 /usr/bin/gfortran -g CMakeFiles/active_contraction.dir/active_contraction.F90.o -o active_contraction -Wl,-rpath,/data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib:/usr/lib64/mpich/lib:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron_c.so /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron.so -Wl,-rpath -Wl,/usr/lib64/mpich/lib -Wl,--enable-new-dtags /usr/lib64/mpich/lib/libmpifort.so /usr/lib64/mpich/lib/libmpi.so make[2]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' [100%] Built target active_contraction make[1]: Leaving directory '/data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora' /usr/bin/cmake -E cmake_progress_start /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora/CMakeFiles 0 cbra009@bn356540 /data/OpenCMISS/examples/active_contraction/build/gnu_mpich_debug_fedora (develop %=): ls -la /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron* -rwxrwxrwx. 1 root root 1716400 Dec 17 16:38 /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron_cd.so -rwxrwxrwx. 1 root root 628776 Dec 17 16:46 /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron_c.so -rwxrwxrwx. 1 root root 107999200 Dec 17 16:38 /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libirond.so -rwxrwxrwx. 1 root root 34627896 Dec 17 16:46 /data/OpenCMISS/install/x86_64_linux/gnu-C7.2-gnu-F7.2/mpich_system/lib/libiron.so

Note that OPENCMISS_BUILD_TYPE is not used.

Note that the iron library linked in is libiron.so rather than libirond.so.

chrispbradley commented 6 years ago

OK, sorted. I missed a cmake error. The iron-config-dependencies was missing a newline which caused the iron-config-* include to fail.