<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jul 12, 2015 at 3:12 AM, Denis Davydov <span dir="ltr"><<a href="mailto:davydden@gmail.com" target="_blank">davydden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I have Lapack-related undefined symbols errors when trying to run tests on Hypre, configured and compiled by PETSc<br>
(./configure --download-superlu_dist --download-metis --download-parmetis --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --with-debugging=0 --download-hypre).<br>
Any ideas what’s happening?<br></blockquote><div><br></div><div>We need configure.log. This certainly sounds like a problem from mixing builds. Had you had unsuccessful</div><div>builds in this directory before? I would recommend wiping out the $PETSC_ARCH directory completely in</div><div>these cases.</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
During the build also some "has no symbols” shows up, which does not look good either. There are no compiler errors though...<br>
<br>
<br>
Regards,<br>
Denis.<br>
<br>
p.s. Hypre configure resulting from PETSc is:<br>
./configure --prefix=/Users/davydden/Downloads/petsc-3.6.0/arch-darwin-c-opt MAKE=/usr/bin/make --libdir=/Users/davydden/Downloads/petsc-3.6.0/arch-darwin-c-opt/lib CC=mpicc CFLAGS=-fPIC -O CXX=mpicxx CXXFLAGS=-O -fPIC F90=mpif90 F90FLAGS=-fPIC -ffree-line-length-0 -O F77=mpif90 FFLAGS=-fPIC -ffree-line-length-0 -O FC=mpif90 FCFLAGS=-fPIC -ffree-line-length-0 -O --with-MPI-include=/usr/local/Cellar/open-mpi/1.8.6/include --with-MPI-lib-dirs= --with-MPI-libs= --with-blas-libs= --with-blas-lib-dir= --with-lapack-libs= --with-lapack-lib-dir= --with-blas=yes --with-lapack=yes --with-fmangle-blas=one-underscore --with-fmangle-lapack=one-underscore --without-babel --without-mli --without-fei --without-superlu AR=/usr/bin/ar cr<br>
<br>
<br>
=== check ===<br>
$ make check<br>
Checking the library ...<br>
mpicc -fPIC -O -DHAVE_CONFIG_H -I. -I./.. -I/Users/davydden/Downloads/petsc-3.6.0/arch-darwin-c-opt/externalpackages/hypre-2.10.0b-p1/src/hypre/include -I/usr/local/Cellar/open-mpi/1.8.6/include -DHYPRE_TIMING -DHYPRE_FORTRAN -c ij.c<br>
Building ij ...<br>
mpicc -o ij ij.o -L/Users/davydden/Downloads/petsc-3.6.0/arch-darwin-c-opt/externalpackages/hypre-2.10.0b-p1/src/hypre/lib -lHYPRE          -lm<br>
Undefined symbols for architecture x86_64:<br>
  "_dgels_", referenced from:<br>
      _ComputeValuesNonsym in libHYPRE.a(ParaSails.o)<br>
      _hypre_BoomerAMGFitVectors in libHYPRE.a(par_gsmg.o)<br>
  "_dgetrf_", referenced from:<br>
      _hypre_BoomerAMGRelax in libHYPRE.a(par_relax.o)<br>
      _hypre_GaussElimSolve in libHYPRE.a(par_relax.o)<br>
      _hypre_AMGCreateDomainDof in libHYPRE.a(schwarz.o)<br>
      _hypre_ParAMGCreateDomainDof in libHYPRE.a(schwarz.o)<br>
  "_dgetrs_", referenced from:<br>
      _hypre_BoomerAMGRelax in libHYPRE.a(par_relax.o)<br>
      _hypre_GaussElimSolve in libHYPRE.a(par_relax.o)<br>
      _hypre_ParMPSchwarzSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzCFSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzFWSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzCFFWSolve in libHYPRE.a(schwarz.o)<br>
      ...<br>
  "_dpotrf_", referenced from:<br>
      _dpotrf_interface in libHYPRE.a(HYPRE_lobpcg.o)<br>
      _ComputeValuesSym in libHYPRE.a(ParaSails.o)<br>
      _hypre_AMGNodalSchwarzSmoother in libHYPRE.a(schwarz.o)<br>
      _hypre_AMGCreateDomainDof in libHYPRE.a(schwarz.o)<br>
      _hypre_ParAMGCreateDomainDof in libHYPRE.a(schwarz.o)<br>
  "_dpotrs_", referenced from:<br>
      _ComputeValuesSym in libHYPRE.a(ParaSails.o)<br>
      _hypre_ParMPSchwarzSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzCFSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzFWSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_MPSchwarzCFFWSolve in libHYPRE.a(schwarz.o)<br>
      _hypre_AdSchwarzSolve in libHYPRE.a(schwarz.o)<br>
      ...<br>
  "_dsygv_", referenced from:<br>
      _dsygv_interface in libHYPRE.a(HYPRE_lobpcg.o)<br>
<br>
<br>
=== has no symbols: ===<br>
<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_utilities.a(hypre_complex.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_utilities.a(hypre_mpi_comm_f2c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_utilities.a(threading.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_utilities.a(hypre_complex.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_utilities.a(hypre_mpi_comm_f2c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_utilities.a(threading.o) has no symbols<br>
<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_MatrixMatrix.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE_MatrixMatrix.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(hypre_complex.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(hypre_mpi_comm_f2c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(threading.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(HYPRE_ConvertPETScMatrixToDistributedMatrix.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(hypre_complex.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(hypre_mpi_comm_f2c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libHYPRE.a(threading.o) has no symbols<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>