[petsc-users] p4est configure error
Satish Balay
balay at mcs.anl.gov
Thu Mar 5 07:48:05 CST 2020
you are using --with-fc=0
>>>>
Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --with-mpi-dir=/usr/local/Cellar/mpich/3.3.2 COPTFLAGS="-g -O0" CXXOPTFLAGS="-g -O0" FOPTFLAGS="-g -O0" --with-fc=0 --download-metis=1 --download-parmetis=1 --download-fftw --download-p4est=1 --download-zlib --with-cxx-dialect=C++11 --download-triangle=1 --download-hdf5=1 -with-cuda=0 --with-x=1 --with-debugging=1 PETSC_ARCH=arch-macosx-gnu-g --with-64-bit-indices=0
<<<
Lapack is found by petsc configure
>>>>
Executing: /usr/local/Cellar/mpich/3.3.2/bin/mpicc -o /var/folders/sw/67cq0mmx43g93vrb5xkf1j7c0000gn/T/petsc-bVUXvO/config.libraries/conftest -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs -Wl,-search_paths_first -Wl,-no_compact_unwind -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g -O0 /var/folders/sw/67cq0mmx43g93vrb5xkf1j7c0000gn/T/petsc-bVUXvO/config.libraries/conftest.o -llapack -lblas -llapack -lblas -lc++ -ldl
Defined "HAVE_LIBLAPACK" to "1"
<<<<<
And p4est is configured with ' --disable-fortran --disable-fc --disable-f77 --disable-f90' options.
>>>>>>>>>>>
Executing: ./configure --prefix=/Users/markadams/Codes/petsc/arch-macosx-gnu-g MAKE=/usr/bin/make --libdir=/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib CC="/usr/local/Cellar/mpich/3.3.2/bin/mpicc" CFLAGS="-fstack-protector -fno-stack-check -Qunused-arguments -g -O0" AR="/usr/bin/ar" ARFLAGS="cr" CXX="/usr/local/Cellar/mpich/3.3.2/bin/mpicxx" CXXFLAGS="-fstack-protector -fno-stack-check -g -O0 -std=c++11" --disable-fortran --disable-fc --disable-f77 --disable-f90 --enable-shared --enable-mpi CPPFLAGS="-I/Users/markadams/Codes/petsc/arch-macosx-gnu-g/include -I/usr/local/Cellar/mpich/3.3.2/include" LIBS="-Wl,-rpath,/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -L/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -lz -llapack -lblas" --enable-memalign=16
<<<<<<<<<
yet its trying to use mpif77
>>>>>
configure:4356: mpif77 conftest.f -Wl,-rpath,/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -L/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -lz -llapack -lblas >&5
ld: library not found for -llapack
<<<<<
For now - I'll recommend getting your MPI fixed to include functional mpif90
Satish
On Thu, 5 Mar 2020, Matthew Knepley wrote:
> It checks the F77 compiler by trying to compile an LAPACK thing, and cannot
> find LAPACK
>
> configure:4356: mpif77 conftest.f
> -Wl,-rpath,/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib
> -L/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -lz -llapack -lblas >&5
> ld: library not found for -llapack
> collect2: error: ld returned 1 exit status
> configure:4360: $? = 1
> configure:4398: result: no
> configure: failed program was:
> | program main
> |
> | end
> configure:4403: error: in
> `/Users/markadams/Codes/petsc/arch-macosx-gnu-g/externalpackages/git.p4est':
> configure:4405: error: Fortran 77 compiler cannot create executables
>
> Is your LAPACK screwed up somehow?
>
> Thanks,
>
> Matt
>
> On Thu, Mar 5, 2020 at 8:33 AM Mark Adams <mfadams at lbl.gov> wrote:
>
> > I had a user report a problem on Cori and I see it on my Mac.
> >
>
>
>
More information about the petsc-users
mailing list