Skip to content

Cannot compile on Mac with Nag 6.2 #7583

Closed
@pbrady

Description

@pbrady

I'm on MacOS Catalina and attempting to use Nag6.2 as the fortran compiler to build Open MPI v4.0.3 (source tarball). I have tried using the system clang compilers as well as gcc/g++ 9.3 from homebrew. If I use gfortran from homebrew then open mpi compiles without issue so Nag appears to be the culprit here.

The configure step appears to be successful and I've attached the config.log.

make is able to run for quite some time but I keep getting the following error:

Making all in mpi/fortran/use-mpi-tkr
  PPFC     mpi.lo
NAG Fortran Compiler Release 6.2(Chiyoda) Build 6255
Error: ../../../../../ompi/mpi/fortran/use-mpi-tkr/mpi.F90, line 23: Invalid #line directive
Error: ../../../../../ompi/mpi/fortran/use-mpi-tkr/mpi.F90, line 25: Syntax error
       detected at <invalid token>@MODULE
Error: ../../../../../ompi/mpi/fortran/use-mpi-tkr/mpi.F90, line 46: Invalid #line directive
Error: ../../../../../ompi/mpi/fortran/use-mpi-tkr/mpi.F90, line 47: Invalid #line directive
Error: ../../../../../ompi/mpi/fortran/use-mpi-tkr/mpi.F90, line 47: Syntax error
Error: ../../../../../ompi/mpi/fortran/use-mpi-tkr/mpi-f90-interfaces.h, line 27: Syntax error
       detected at END@FUNCTION

I get the same errors when trying to compile Open MPI v3.1.5.

Any advice on how to fix this would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions