Changeset 25800


Ignore:
Timestamp:
12/01/20 16:07:40 (4 years ago)
Author:
jdquinn
Message:

CHG: Best guess at required compiler flags plus documentation

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

Legend:

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

    r25745 r25800  
    2929#               Either run using --with-shared-libraries or --with-pic=0 and supply the
    3030#               compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
     31#
    3132# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12.
    32 #       May need to remove it for earlier versions not using the C99 standard.
     33#       (may need to remove it for earlier versions not using the C99 standard).
    3334# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
    3435#
     
    3637#               the same routine with arguments of different types.
    3738#
    38 #       This has only been added to macOS static builds, but may be needed
    39 #       elsewhere.
     39#       for gfortran 10 or later (may need to remove it for earlier versions).
    4040# - Added -static-libgfortran to all macOS static builds, but this will not
    4141#       work out of the box on Linux.
  • issm/trunk-jpl/externalpackages/petsc/install-3.12-mac.sh

    r25713 r25800  
    2929#               the same routine with arguments of different types.
    3030#
    31 #       for gfortran 10 or later.
     31#       for gfortran 10 or later (may need to remove it for earlier versions).
     32# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12.
     33#       (may need to remove it for earlier versions not using the C99 standard).
    3234#
    3335cd src
     
    3537        --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
    3638        --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
     39        --CFLAGS="-Wno-error=implicit-function-declaration" \
    3740        --FFLAGS="-fallow-argument-mismatch" \
    3841        --with-debugging=0 \
  • issm/trunk-jpl/externalpackages/petsc/install-3.14-mac.sh

    r25713 r25800  
    2121
    2222# Configure
     23#
     24# NOTE:
     25# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
     26#
     27#               error: The Fortran compiler gfortran will not compile files that call
     28#               the same routine with arguments of different types.
     29#
     30#       for gfortran 10 or later (may need to remove it for earlier versions).
     31# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12.
     32#       (may need to remove it for earlier versions not using the C99 standard).
     33#
    2334cd src
    2435./config/configure.py \
    2536        --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
    2637        --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
     38        --CFLAGS="-Wno-error=implicit-function-declaration" \
     39        --FFLAGS="-fallow-argument-mismatch" \
    2740        --with-debugging=0 \
    2841        --with-valgrind=0 \
Note: See TracChangeset for help on using the changeset viewer.