dorsal fails to build dolfin with PETSc support

Asked by Chris Tiee

Hi,

Running on OS X 10.8, (I used dorsal to install unstable versions which is the only thing that currently allows installation there). So far things have been working out quite well with it, at least under the things that I was doing in 10.7. I'm fairly new to the world of different preconditioners and Krylov solvers, so to learn of it, I'm trying different things out. Only problem is, I think I need a more advanced linear algebra backend, so I installed PETSc from Macports. Everything installed fine and dandy, set the appropriate PETSC_DIR environment variable (as instructed directly from Macports right after the install), but dorsal chokes on the PETSc test runs (in addition, it ignores my setting of PETSC_ARCH). I looked online and through here for answers on this, but they are from a while back and the problems that led to those errors have long been fixed. I checked the error log from CMake (and posted it below). It seems that it doesn't see I have all its required libraries (despite Macports installing them as well). Also, I notice that dorsal can build PETSc directly without having to go through Macports. How do you do that?

Performing C++ SOURCE FILE Test PETSC_TEST_RUNS failed with the following output:
Change Dir: /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp

Run Build Command:/opt/local/bin/gmake "cmTryCompileExec3402117558/fast"
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec3402117558.dir/build.make CMakeFiles/cmTryCompileExec3402117558.dir/build
gmake[1]: Entering directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3402117558.dir/src.cxx.o
/usr/bin/g++ -DMPICH_IGNORE_CXX_SEEK -DPETSC_TEST_RUNS -fopenmp -I/opt/local/lib/petsc/include -I/opt/local/include -I/opt/local/include/openmpi -o CMakeFiles/cmTryCompileExec3402117558.dir/src.cxx.o -c /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec3402117558
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3402117558.dir/link.txt --verbose=1
/usr/bin/g++ -DMPICH_IGNORE_CXX_SEEK -DPETSC_TEST_RUNS -fopenmp -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTryCompileExec3402117558.dir/src.cxx.o -o cmTryCompileExec3402117558 /opt/local/lib/petsc/lib/libpetsc.a /opt/local/lib/libSM.dylib /opt/local/lib/libICE.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libmpi.dylib /usr/lib/libm.dylib
Undefined symbols for architecture x86_64:
  "_H5Dclose", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Dcreate2", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Dget_space", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Dopen2", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Dread", referenced from:
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Dset_extent", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Dwrite", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Fclose", referenced from:
      PetscViewerDestroy_HDF5(_p_PetscViewer*) in libpetsc.a(hdf5v.c.o)
  "_H5Fcreate", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
  "_H5Fflush", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Fopen", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
  "_H5Gclose", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      PetscViewerHDF5OpenGroup(_p_PetscViewer*, int*, int*)in libpetsc.a(vecio.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Gcreate2", referenced from:
      PetscViewerHDF5OpenGroup(_p_PetscViewer*, int*, int*)in libpetsc.a(vecio.c.o)
  "_H5Gopen2", referenced from:
      PetscViewerHDF5OpenGroup(_p_PetscViewer*, int*, int*)in libpetsc.a(vecio.c.o)
  "_H5Lexists", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      PetscViewerHDF5OpenGroup(_p_PetscViewer*, int*, int*)in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5P_CLS_DATASET_CREATE_g", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5P_CLS_DATASET_XFER_g", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5P_CLS_FILE_ACCESS_g", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
  "_H5Pclose", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Pcreate", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Pset_chunk", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Pset_dxpl_mpio", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Pset_fapl_mpio", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
  "_H5Sclose", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Screate", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
  "_H5Screate_simple", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5Sget_simple_extent_dims", referenced from:
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
  "_H5Sselect_hyperslab", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5T_NATIVE_DOUBLE_g", referenced from:
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_H5check_version", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
  "_H5open", referenced from:
      _PetscViewerFileSetName_HDF5 in libpetsc.a(hdf5v.c.o)
      VecView_MPI_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(pdvec.c.o)
      VecLoad_HDF5(_p_Vec*, _p_PetscViewer*) in libpetsc.a(vecio.c.o)
      VecView_MPI_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
      VecLoad_HDF5_DA(_p_Vec*, _p_PetscViewer*) in libpetsc.a(gr2.c.o)
  "_ML_Aggregate_Create", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Destroy", referenced from:
      PCReset_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Set_CoarsenScheme_Coupled", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Set_CoarsenScheme_METIS", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Set_CoarsenScheme_MIS", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Set_DampingFactor", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Set_MaxCoarseSize", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Set_NullSpace", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Aggregate_Set_Threshold", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Comm_Set_UsrComm", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Create", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Destroy", referenced from:
      PCReset_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Gen_AmatrixRAP", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Gen_MGHierarchy_UsingAggregation", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Gen_MultiLevelHierarchy_UsingAggregation", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Init_Amatrix", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Operator_Apply", referenced from:
      MatMult_ML(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(ml.c.o)
      MatMultAdd_ML(_p_Mat*, _p_Vec*, _p_Vec*, _p_Vec*)in libpetsc.a(ml.c.o)
  "_ML_Operator_Clean", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Operator_Init", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Set_Amatrix_Getrow", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Set_Amatrix_Matvec", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Set_PrintLevel", referenced from:
      PCSetFromOptions_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Set_SpectralNormScheme_Anorm", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_Set_Symmetrize", referenced from:
      PCSetUp_ML(_p_PC*) in libpetsc.a(ml.c.o)
  "_ML_build_global_numbering", referenced from:
      MatWrapML_MPIAIJ(ML_Operator_Struct*, MatReuse, _p_Mat**) in libpetsc.a(ml.c.o)
  "_ParMETIS_V3_Mesh2Dual", referenced from:
      MatMeshToCellGraph(_p_Mat*, int, _p_Mat**)in libpetsc.a(pmetis.c.o)
  "_ParMETIS_V3_PartKway", referenced from:
      MatPartitioningApply_Parmetis(_p_MatPartitioning*, _p_IS**) in libpetsc.a(pmetis.c.o)
  "_SCOTCH_archCmpltw", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_archExit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_archInit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_dgraphBuild", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_dgraphCheck", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_dgraphExit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_dgraphInit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_dgraphMapCompute", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_dgraphMapExit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_dgraphMapInit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_stratDgraphMapBuild", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_stratExit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_SCOTCH_stratInit", referenced from:
      MatPartitioningApply_PTScotch(_p_MatPartitioning*, _p_IS**) in libpetsc.a(scotch.c.o)
  "_dasum_", referenced from:
      VecNorm_Seq(_p_Vec*, NormType, double*)in libpetsc.a(bvec2.c.o)
  "_daxpy_", referenced from:
      MatAXPY_MPIAIJ(_p_Mat*, double, _p_Mat*, MatStructure)in libpetsc.a(mpiaij.c.o)
      MatAXPY_SeqDense(_p_Mat*, double, _p_Mat*, MatStructure)in libpetsc.a(dense.c.o)
      VecAXPY_Seq(_p_Vec*, double, _p_Vec*)in libpetsc.a(bvec1.c.o)
      MatAXPY_SeqAIJ(_p_Mat*, double, _p_Mat*, MatStructure)in libpetsc.a(aij.c.o)
      MatAXPY_MPIBAIJ(_p_Mat*, double, _p_Mat*, MatStructure)in libpetsc.a(mpibaij.c.o)
      MatAXPY_SeqBAIJ(_p_Mat*, double, _p_Mat*, MatStructure)in libpetsc.a(baij.c.o)
      MatAXPY_MPISBAIJ(_p_Mat*, double, _p_Mat*, MatStructure)in libpetsc.a(mpisbaij.c.o)
      ...
  "_dcopy_", referenced from:
      PCTFS_gs_gop_vec_tree_plus(gather_scatter_id*, double*, int)in libpetsc.a(gs.c.o)
  "_ddot_", referenced from:
      VecNorm_Seq(_p_Vec*, NormType, double*)in libpetsc.a(bvec2.c.o)
      MatSOR_SeqDense(_p_Mat*, _p_Vec*, double, MatSORType, double, int, int, _p_Vec*)in libpetsc.a(dense.c.o)
      VecNorm_MPI(_p_Vec*, NormType, double*)in libpetsc.a(pvec2.c.o)
      VecDot_Seq(_p_Vec*, _p_Vec*, double*)in libpetsc.a(bvec1.c.o)
      VecTDot_Seq(_p_Vec*, _p_Vec*, double*)in libpetsc.a(bvec1.c.o)
      KSPSolve_BCGSL(_p_KSP*) in libpetsc.a(bcgsl.c.o)
      XXT_factor(xxt_CDT*, int*, int, int, void*, void*)in libpetsc.a(xxt.c.o)
      ...
  "_dgeev_", referenced from:
      KSPComputeEigenvaluesExplicitly(_p_KSP*, int, double*, double*)in libpetsc.a(eige.c.o)
      KSPComputeEigenvalues_GMRES(_p_KSP*, int, double*, double*, int*)in libpetsc.a(gmreig.c.o)
  "_dgelss_", referenced from:
      TSGLSchemeCreate(int, int, int, int, double const*, double const*, double const*, double const*, double const*, _TSGLScheme**)in libpetsc.a(gl.c.o)
      SNESSolve_NGMRES(_p_SNES*) in libpetsc.a(snesngmres.c.o)
  "_dgemm_", referenced from:
      MatMatMultNumeric_SeqDense_SeqDense(_p_Mat*, _p_Mat*, _p_Mat*)in libpetsc.a(dense.c.o)
      MatTransposeMatMultNumeric_SeqDense_SeqDense(_p_Mat*, _p_Mat*, _p_Mat*)in libpetsc.a(dense.c.o)
      MatILUDTFactor_SeqBAIJ(_p_Mat*, _p_IS*, _p_IS*, MatFactorInfo const*, _p_Mat**)in libpetsc.a(baijfact.c.o)
      MatCholeskyFactorNumeric_SeqSBAIJ_N(_p_Mat*, _p_Mat*, MatFactorInfo const*)in libpetsc.a(sbaijfact.c.o)
      MatCholeskyFactorNumeric_SeqSBAIJ_N_NaturalOrdering(_p_Mat*, _p_Mat*, MatFactorInfo const*)in libpetsc.a(sbaijfact.c.o)
      MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering(_p_Mat*, _p_Mat*, MatFactorInfo const*)in libpetsc.a(baijfact2.c.o)
      MatLUFactorNumeric_SeqBAIJ_N(_p_Mat*, _p_Mat*, MatFactorInfo const*)in libpetsc.a(baijfact2.c.o)
      ...
  "_dgemv_", referenced from:
      MatMultTranspose_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatMult_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatMultAdd_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatMultTransposeAdd_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatSOR_SeqBAIJ_N(_p_Mat*, _p_Vec*, double, MatSORType, double, int, int, _p_Vec*)in libpetsc.a(baij.c.o)
      KSPSolve_BCGSL(_p_KSP*) in libpetsc.a(bcgsl.c.o)
      MatSolve_SeqBAIJ_N_NaturalOrdering(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(baijfact.c.o)
      ...
  "_dgeqrf_", referenced from:
      PCCreateTransferOp_ASA(__PC_ASA_level*, PetscBool) in libpetsc.a(asa.c.o)
      PCGAMGProlongator_AGG(_p_PC*, _p_Mat*, _p_Mat*, _PetscCoarsenData*, _p_Mat**)in libpetsc.a(agg.c.o)
  "_dgerfs_", referenced from:
      _KSPDGMRESApplyDeflation_DGMRES in libpetsc.a(dgmres.c.o)
  "_dgesv_", referenced from:
      TSGLSchemeCreate(int, int, int, int, double const*, double const*, double const*, double const*, double const*, _TSGLScheme**)in libpetsc.a(gl.c.o)
  "_dgesvd_", referenced from:
      PCSetUp_SVD(_p_PC*) in libpetsc.a(svd.c.o)
      KSPComputeExtremeSingularValues_GMRES(_p_KSP*, double*, double*)in libpetsc.a(gmreig.c.o)
  "_dgetrf_", referenced from:
      MatLUFactor_SeqDense(_p_Mat*, _p_IS*, _p_IS*, MatFactorInfo const*)in libpetsc.a(dense.c.o)
      _KSPDGMRESComputeDeflationData_DGMRES in libpetsc.a(dgmres.c.o)
      _KSPDGMRESImproveEig_DGMRES in libpetsc.a(dgmres.c.o)
  "_dgetrs_", referenced from:
      TSGLSchemeCreate(int, int, int, int, double const*, double const*, double const*, double const*, double const*, _TSGLScheme**)in libpetsc.a(gl.c.o)
      MatSolve_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatMatSolve_SeqDense(_p_Mat*, _p_Mat*, _p_Mat*)in libpetsc.a(dense.c.o)
      MatSolveTranspose_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatSolveAdd_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatSolveTransposeAdd_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      _KSPDGMRESApplyDeflation_DGMRES in libpetsc.a(dgmres.c.o)
      ...
  "_dgges_", referenced from:
      _KSPDGMRESImproveEig_DGMRES in libpetsc.a(dgmres.c.o)
  "_dhseqr_", referenced from:
      _KSPDGMRESComputeSchurForm_DGMRES in libpetsc.a(dgmres.c.o)
  "_dmumps_c", referenced from:
      MatDestroy_MUMPS(_p_Mat*) in libpetsc.a(mumps.c.o)
      MatSolve_MUMPS(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(mumps.c.o)
      MatFactorNumeric_MUMPS(_p_Mat*, _p_Mat*, MatFactorInfo const*)in libpetsc.a(mumps.c.o)
      PetscInitializeMUMPS(_p_Mat*, Mat_MUMPS*) in libpetsc.a(mumps.c.o)
      MatLUFactorSymbolic_AIJMUMPS(_p_Mat*, _p_Mat*, _p_IS*, _p_IS*, MatFactorInfo const*)in libpetsc.a(mumps.c.o)
      MatLUFactorSymbolic_BAIJMUMPS(_p_Mat*, _p_Mat*, _p_IS*, _p_IS*, MatFactorInfo const*)in libpetsc.a(mumps.c.o)
      MatCholeskyFactorSymbolic_MUMPS(_p_Mat*, _p_Mat*, _p_IS*, MatFactorInfo const*)in libpetsc.a(mumps.c.o)
      ...
  "_dorgqr_", referenced from:
      PCCreateTransferOp_ASA(__PC_ASA_level*, PetscBool) in libpetsc.a(asa.c.o)
      PCGAMGProlongator_AGG(_p_PC*, _p_Mat*, _p_Mat*, _PetscCoarsenData*, _p_Mat**)in libpetsc.a(agg.c.o)
  "_dpotrf_", referenced from:
      MatCholeskyFactor_SeqDense(_p_Mat*, _p_IS*, MatFactorInfo const*)in libpetsc.a(dense.c.o)
      KSPSolve_BCGSL(_p_KSP*) in libpetsc.a(bcgsl.c.o)
  "_dpotrs_", referenced from:
      MatSolve_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatMatSolve_SeqDense(_p_Mat*, _p_Mat*, _p_Mat*)in libpetsc.a(dense.c.o)
      MatSolveTranspose_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatSolveAdd_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      MatSolveTransposeAdd_SeqDense(_p_Mat*, _p_Vec*, _p_Vec*, _p_Vec*)in libpetsc.a(dense.c.o)
      KSPSolve_BCGSL(_p_KSP*) in libpetsc.a(bcgsl.c.o)
  "_dpttrf_", referenced from:
      KSPSolve_GLTR(_p_KSP*) in libpetsc.a(gltr.c.o)
  "_dpttrs_", referenced from:
      KSPSolve_GLTR(_p_KSP*) in libpetsc.a(gltr.c.o)
  "_dscal_", referenced from:
      MatScale_SeqDense(_p_Mat*, double)in libpetsc.a(dense.c.o)
      VecScale_Seq(_p_Vec*, double)in libpetsc.a(bvec1.c.o)
      MatScale_SeqAIJ(_p_Mat*, double)in libpetsc.a(aij.c.o)
      MatScale_SeqBAIJ(_p_Mat*, double)in libpetsc.a(baij2.c.o)
      MatScale_SeqSBAIJ(_p_Mat*, double)in libpetsc.a(sbaij2.c.o)
      MatScale_MPIDense(_p_Mat*, double)in libpetsc.a(mmdense.c.o)
  "_dstebz_", referenced from:
      KSPSolve_GLTR(_p_KSP*) in libpetsc.a(gltr.c.o)
  "_dstein_", referenced from:
      KSPSolve_GLTR(_p_KSP*) in libpetsc.a(gltr.c.o)
  "_dswap_", referenced from:
      VecSwap_Seq(_p_Vec*, _p_Vec*)in libpetsc.a(bvec2.c.o)
  "_dtgsen_", referenced from:
      _KSPDGMRESImproveEig_DGMRES in libpetsc.a(dgmres.c.o)
  "_dtrsen_", referenced from:
      _KSPDGMRESComputeSchurForm_DGMRES in libpetsc.a(dgmres.c.o)
  "_ml_void_mem_ptr", referenced from:
      MatWrapML_MPIAIJ(ML_Operator_Struct*, MatReuse, _p_Mat**) in libpetsc.a(ml.c.o)
  "_yaml_alias_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_document_end_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_document_start_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_event_delete", referenced from:
      options_list_populate_yaml(char*, options_list_s*) in libpetsc.a(yamlimpls.c.o)
      alias_list_populate_yaml(char*, alias_list_s*) in libpetsc.a(yamlimpls.c.o)
      alias_list_delete(alias_list_s*) in libpetsc.a(yamlimpls.c.o)
  "_yaml_mapping_end_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_mapping_start_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_parser_delete", referenced from:
      options_list_populate_yaml(char*, options_list_s*) in libpetsc.a(yamlimpls.c.o)
      alias_list_populate_yaml(char*, alias_list_s*) in libpetsc.a(yamlimpls.c.o)
  "_yaml_parser_initialize", referenced from:
      options_list_populate_yaml(char*, options_list_s*) in libpetsc.a(yamlimpls.c.o)
      alias_list_populate_yaml(char*, alias_list_s*) in libpetsc.a(yamlimpls.c.o)
  "_yaml_parser_parse", referenced from:
      options_list_populate_yaml(char*, options_list_s*) in libpetsc.a(yamlimpls.c.o)
      alias_list_populate_yaml(char*, alias_list_s*) in libpetsc.a(yamlimpls.c.o)
  "_yaml_parser_set_input_string", referenced from:
      options_list_populate_yaml(char*, options_list_s*) in libpetsc.a(yamlimpls.c.o)
      alias_list_populate_yaml(char*, alias_list_s*) in libpetsc.a(yamlimpls.c.o)
  "_yaml_scalar_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_sequence_end_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_sequence_start_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_stream_end_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
  "_yaml_stream_start_event_initialize", referenced from:
      yaml_event_initialize(yaml_event_s*, yaml_event_s*)in libpetsc.a(yamlimpls.c.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec3402117558] Error 1
gmake[1]: Leaving directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec3402117558/fast] Error 2

Return value: 1
Source file was:

#include "petscts.h"
#include "petsc.h"
int main()
{
  PetscErrorCode ierr;
  TS ts;
  int argc = 0;
  char** argv = NULL;
  ierr = PetscInitialize(&argc, &argv, PETSC_NULL, PETSC_NULL);CHKERRQ(ierr);
  ierr = TSCreate(PETSC_COMM_WORLD,&ts);CHKERRQ(ierr);
  ierr = TSSetFromOptions(ts);CHKERRQ(ierr);
#if PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR <= 1
  ierr = TSDestroy(ts);CHKERRQ(ierr);
#else
  ierr = TSDestroy(&ts);CHKERRQ(ierr);
#endif
  ierr = PetscFinalize();CHKERRQ(ierr);
  return 0;
}

Performing C++ SOURCE FILE Test PETSC_CUSP_FOUND failed with the following output:
Change Dir: /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp

Run Build Command:/opt/local/bin/gmake "cmTryCompileExec2004696819/fast"
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec2004696819.dir/build.make CMakeFiles/cmTryCompileExec2004696819.dir/build
gmake[1]: Entering directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2004696819.dir/src.cxx.o
/usr/bin/g++ -DMPICH_IGNORE_CXX_SEEK -DPETSC_CUSP_FOUND -fopenmp -I/opt/local/lib/petsc/include -I/opt/local/include -I/opt/local/include/openmpi -o CMakeFiles/cmTryCompileExec2004696819.dir/src.cxx.o -c /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec2004696819
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2004696819.dir/link.txt --verbose=1
/usr/bin/g++ -DMPICH_IGNORE_CXX_SEEK -DPETSC_CUSP_FOUND -fopenmp -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTryCompileExec2004696819.dir/src.cxx.o -o cmTryCompileExec2004696819 /opt/local/lib/petsc/lib/libpetsc.a /opt/local/lib/libSM.dylib /opt/local/lib/libICE.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libmpi.dylib /usr/lib/libm.dylib
gmake[1]: Leaving directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'

Return value: 1
Source file was:

#include "petsc.h"
int main()
{
#if PETSC_HAVE_CUSP
  return 0;
#else
  return 1;
#endif
}

Determining if the Q_WS_X11 exist failed with the following output:
Change Dir: /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp

Run Build Command:/opt/local/bin/gmake "cmTryCompileExec1483805187/fast"
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec1483805187.dir/build.make CMakeFiles/cmTryCompileExec1483805187.dir/build
gmake[1]: Entering directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1483805187.dir/CheckSymbolExists.cxx.o
/usr/bin/g++ -DMPICH_IGNORE_CXX_SEEK -frounding-math -fno-strict-aliasing -I/Users/ch0ni/Documents/Math/FEniCS/include -I/opt/local/include -o CMakeFiles/cmTryCompileExec1483805187.dir/CheckSymbolExists.cxx.o -c /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8: error: ‘Q_WS_X11’ was not declared in this scope
gmake[1]: *** [CMakeFiles/cmTryCompileExec1483805187.dir/CheckSymbolExists.cxx.o] Error 1
gmake[1]: Leaving directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1483805187/fast] Error 2

File /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_X11
  return ((int*)(&Q_WS_X11))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp

Run Build Command:/opt/local/bin/gmake "cmTryCompileExec1850041973/fast"
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec1850041973.dir/build.make CMakeFiles/cmTryCompileExec1850041973.dir/build
gmake[1]: Entering directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1850041973.dir/CheckSymbolExists.cxx.o
/usr/bin/g++ -DMPICH_IGNORE_CXX_SEEK -frounding-math -fno-strict-aliasing -I/Users/ch0ni/Documents/Math/FEniCS/include -I/opt/local/include -o CMakeFiles/cmTryCompileExec1850041973.dir/CheckSymbolExists.cxx.o -c /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8: error: ‘Q_WS_WIN’ was not declared in this scope
gmake[1]: *** [CMakeFiles/cmTryCompileExec1850041973.dir/CheckSymbolExists.cxx.o] Error 1
gmake[1]: Leaving directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1850041973/fast] Error 2

File /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_WIN
  return ((int*)(&Q_WS_WIN))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp

Run Build Command:/opt/local/bin/gmake "cmTryCompileExec2526368077/fast"
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec2526368077.dir/build.make CMakeFiles/cmTryCompileExec2526368077.dir/build
gmake[1]: Entering directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2526368077.dir/CheckSymbolExists.cxx.o
/usr/bin/g++ -DMPICH_IGNORE_CXX_SEEK -frounding-math -fno-strict-aliasing -I/Users/ch0ni/Documents/Math/FEniCS/include -I/opt/local/include -o CMakeFiles/cmTryCompileExec2526368077.dir/CheckSymbolExists.cxx.o -c /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8: error: ‘Q_WS_QWS’ was not declared in this scope
gmake[1]: *** [CMakeFiles/cmTryCompileExec2526368077.dir/CheckSymbolExists.cxx.o] Error 1
gmake[1]: Leaving directory `/Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec2526368077/fast] Error 2

File /Users/ch0ni/Documents/Math/FEniCS/src/dolfin/dorsal_build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_QWS
  return ((int*)(&Q_WS_QWS))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Question information

Language:
English Edit question
Status:
Solved
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Solved by:
Chris Tiee
Solved:
Last query:
Last reply:
Revision history for this message
Chris Tiee (choni0281) said :
#1

Tweaked some package settings for my platform, so it is in fact installing now. Jury is still out till in finishes :)

Revision history for this message
Chris Tiee (choni0281) said :
#2

It works so long as I don't try to install it with cusp (which would be really nice, actually, although not my main goal)--same kind of deal: I tried a whole battery of environment variable settings, tweaking the platform file, symbolic linking, etc. and it cannot find my CUDA compiler. Consider it filed under a new bug?

Revision history for this message
Chris Tiee (choni0281) said :
#3

going to post this as a new thing