chetzer-ncpa / ncpaprop

DEPRECATED: use https://github.com/chetzer-ncpa/ncpaprop-release instead. NCPA Atmospheric Acoustic Propagation Modeling Package
10 stars 6 forks source link

Unable to link with PETSc #11

Closed shaharkadmiel closed 4 years ago

shaharkadmiel commented 7 years ago

Hi,

Trying to recompile this package on a new Mac running macOS Sierra.

./configure works fine but then make exits with the following error:

Unable to link with PETSc
ERROR: See "arch-darwin16.4.0-c-complex/conf/configure.log" file for details
make[1]: *** [.slepc-complex] Error 1
make: *** [extern] Error 2

Looking at the configure.log everything seems to be okay... well, I cant see any errors there.

Any Ideas?

shaharkadmiel commented 6 years ago

I am having another go at this:

In the ncpaprop dir I did:

./configure --disable-library-guess \
  CXX=gcc CC=gcc FC=gfortran

gcc is version 7.3.0 (Homebrew GCC 7.3.0_1) and gcc, g++, and gfortran all point to the same version.

I got a positive output which ends in all Makefiles being created:

...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/extern/Makefile
config.status: creating src/common/Makefile
config.status: creating src/atmosphere/Makefile
config.status: creating src/raytrace/Makefile
config.status: creating src/modess/Makefile
config.status: creating src/modbb/Makefile
config.status: creating src/modess_rd_1wcm/Makefile
config.status: creating src/pade_pe/Makefile
config.status: creating src/wmod/Makefile
config.status: creating src/cmodess/Makefile
config.status: creating src/cmodbb/Makefile
config.status: creating src/tdpape/Makefile
config.status: creating src/wnlrt/Makefile
config.status: creating test/Makefile

I went on to make and made it as far as the .petsc-complex target. First I got:

===============================================================================
             Configuring PETSc to compile on your system
===============================================================================
TESTING: checkCxxCompiler from config.setCompilers(config/BuildSystem/config/set
*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
Cannot use C compiler gcc as the C++ compiler passed in with --with-cxx
*******************************************************************************

and compilation terminated.

I edited the src/extern/Makefile and removed the --with-cxx flag although it feels weird to have the --with-clanguage=cxx flag with only the --with-cc flag.

Now make made it to the .slepc-real target and died in the testing phase after this error:

...
C/C++ example src/eps/examples/tests/test10 run successfully with 1 MPI process
Possible error running Fortran src/eps/examples/tests/test7f with 1 MPI process
 All requested eigenvalues computed up to the required tolerance:
     3.98974, 3.95906, 3.90828, 3.83792

1-D Laplacian Eigenproblem, n = 30 (Fortran)
 Solution method: krylovschur

 Number of requested eigenvalues: 4
make[4]: *** [makefile:186: testtest7f] Error 1
make[3]: *** [makefile:134: test_build] Error 2

At this point I don't know how to move forward...

chetzer-ncpa commented 4 years ago

Sorry for the delay. The configuration process has been completely rewritten and updated. Please see the new manual for details, but in short, you can try to run:

./configure --with-localpetsc

to have the build process download and install PETSc/SLEPc for you while it's setting things up.