Changeset 25567


Ignore:
Timestamp:
09/12/20 22:00:47 (5 years ago)
Author:
jdquinn
Message:

CHG: Added Fortran compiler flag to clear error (apparently MPICH does not provide proper interface for functions with void * arguments).

Location:
issm/trunk-jpl/externalpackages/petsc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/petsc/install-3.12-mac-solid_earth-static.sh

    r25199 r25567  
    2929# Configure
    3030#
    31 # NOTE: Cannot use --with-fpic option when compiling static libs,
     31# NOTE:
     32# - Cannot use --with-fpic option when compiling static libs,
    3233#
    3334#               Cannot determine compiler PIC flags if shared libraries is turned off
    3435#               Either run using --with-shared-libraries or --with-pic=0 and supply the
    3536#               compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
     37#
     38# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
     39#
     40#               error: The Fortran compiler gfortran will not compile files that call
     41#               the same routine with arguments of different types.
     42#
     43#       This has only been added to macOS static builds, but may be needed
     44#       elsewhere.
    3645#
    3746cd src
     
    4251        --CFLAGS="-fPIC" \
    4352        --CXXFLAGS="-fPIC" \
    44         --FFLAGS="-fPIC -static-libgfortran" \
     53        --FFLAGS="-fPIC -fallow-argument-mismatch -static-libgfortran" \
    4554        --with-debugging=0 \
    4655        --with-valgrind=0 \
  • issm/trunk-jpl/externalpackages/petsc/install-3.12-mac-static.sh

    r25199 r25567  
    2929# Configure
    3030#
    31 # NOTE: Cannot use --with-fpic option when compiling static libs,
     31# NOTE:
     32# - Cannot use --with-fpic option when compiling static libs,
    3233#
    3334#               Cannot determine compiler PIC flags if shared libraries is turned off
    3435#               Either run using --with-shared-libraries or --with-pic=0 and supply the
    3536#               compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
     37#
     38# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
     39#
     40#               error: The Fortran compiler gfortran will not compile files that call
     41#               the same routine with arguments of different types.
     42#
     43#       This has only been added to macOS static builds, but may be needed
     44#       elsewhere.
    3645#
    3746cd src
     
    4251        --CFLAGS="-fPIC" \
    4352        --CXXFLAGS="-fPIC" \
    44         --FFLAGS="-fPIC -static-libgfortran" \
     53        --FFLAGS="-fPIC -fallow-argument-mismatch -static-libgfortran" \
    4554        --with-debugging=0 \
    4655        --with-valgrind=0 \
Note: See TracChangeset for help on using the changeset viewer.