Changeset 28161


Ignore:
Timestamp:
03/21/24 11:14:20 (12 months ago)
Author:
jdquinn
Message:

CHG: Support for macOS distributable configurations for both Intel and Silicon

Location:
issm/trunk-jpl
Files:
11 added
2 deleted
16 edited
1 copied
2 moved

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/etc/environment.sh

    r28144 r28161  
    203203
    204204        if [[ ${BUILD_TOOL_VER} -ge 15 ]]; then
    205                 export LDFLAGS="${LDFLAGS} -Wl,-ld_classic"
     205                 # Add flag for classic linker only if it has not already been added
     206                if [[ -z $(echo $LDFLAGS | /usr/bin/grep "\-Wl,\-ld_classic") ]]; then
     207                        export LDFLAGS="${LDFLAGS} -Wl,-ld_classic"
     208                fi
    206209        else
    207210                export LDFLAGS="${LDFLAGS}" # At least set LDFLAGS to null string if it is not already set (used in installation of ISSM and some external packages). Can remove this when issues with new Xcode linker have settled.
  • TabularUnified issm/trunk-jpl/externalpackages/boost/install-1.55-pleiades.sh

    r27768 r28161  
    22set -eu
    33
    4 #Note of caution:  stop after boostrap phase, and run
    5 #bjam --debug-configuration, to figure out which paths boost is using to include
    6 #python. make sure everyone of these paths is covered by python. If not, just make
    7 #symlinks in externalpackages/python to what boost is expecting. Ther is NO WAY
    8 #to get the boost library to include python support without doing that.
     4# NOTE: Stop after bootstrap phase, and run,
     5#
     6#       bjam --debug-configuration
     7#
     8# to figure out which paths Boost is using to include Python. Make sure
     9# every one of these paths is covered by Python. If not, make symlinks in
     10# externalpackages/python to what Boost is expecting (assumes that you are
     11# using copy of Python installed as an external package of ISSM). There is
     12# NO WAY to get the Boost library to include Python support under this
     13# configuration without doing this
     14#
    915
    1016export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost"
  • TabularUnified issm/trunk-jpl/externalpackages/dakota/configs/6.2/linux/cmake/BuildDakotaCustom.cmake

    r26315 r28161  
    6464set( DAKOTA_HAVE_MPI ON
    6565     CACHE BOOL "Build with MPI enabled" FORCE)
    66 set( MPI_INCLUDE_PATH "$ENV{MPI_INSTALL}/include"
     66set( MPI_INCLUDE_PATH "$ENV{MPI_HOME}/include"
    6767     CACHE FILEPATH "Use MPI headers" FORCE)
    68 set( MPI_LIBRARY "-L$ENV{MPI_INSTALL}/lib -lmpich"
     68set( MPI_LIBRARY "-L$ENV{MPI_HOME}/lib -lmpich"
    6969     CACHE FILEPATH "Use MPI library" FORCE)
    70 set( MPI_EXTRA_LIBRARY "-L$ENV{MPI_INSTALL}/lib -lmpich"
     70set( MPI_EXTRA_LIBRARY "-L$ENV{MPI_HOME}/lib -lmpich"
    7171          CACHE FILEPATH "Use MPI extra libraries" FORCE)
    7272
  • TabularUnified issm/trunk-jpl/externalpackages/dakota/configs/6.2/mac/cmake/BuildDakotaCustom.cmake

    r24649 r28161  
    6464set( DAKOTA_HAVE_MPI ON
    6565     CACHE BOOL "Build with MPI enabled" FORCE)
    66 set( MPI_INCLUDE_PATH "$ENV{MPI_INSTALL}/include"
     66set( MPI_INCLUDE_PATH "$ENV{MPI_HOME}/include"
    6767     CACHE FILEPATH "Use MPI headers" FORCE)
    68 set( MPI_LIBRARY "-L$ENV{MPI_INSTALL}/lib -lmpich"
     68set( MPI_LIBRARY "-L$ENV{MPI_HOME}/lib -lmpich"
    6969     CACHE FILEPATH "Use MPI library" FORCE)
    7070
  • TabularUnified issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh

    r27565 r28161  
    5454
    5555# Copy customized source and configuration files specific to Mac to 'src' directory
    56 cp configs/${VER}/mac/cmake/BuildDakotaCustom.cmake ${DAK_SRC}/cmake
     56cp configs/${VER}/mac/static/cmake/BuildDakotaCustom.cmake ${DAK_SRC}/cmake
    5757cp configs/${VER}/mac/cmake/DakotaDev.cmake ${DAK_SRC}/cmake
    5858cp configs/${VER}/mac/cmake/InstallDarwinDylibs.cmake ${DAK_SRC}/cmake
     
    8585        -DBUILD_STATIC_LIBS=ON \
    8686        -DCMAKE_C_COMPILER=${MPI_HOME}/bin/mpicc \
    87         -DCMAKE_C_FLAGS="-fPIC -Wno-error=implicit-function-declaration -w" \
     87        -DCMAKE_C_FLAGS="-fPIC -w -Wno-error=implicit-int -Wno-error=implicit-function-declaration" \
    8888        -DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
    8989        -DCMAKE_CXX_FLAGS="-fPIC -fdelayed-template-parsing -w" \
  • TabularUnified issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/mac/cmake/ConfigUser.static.cmake

    r27616 r28161  
    11#
    2 #
    3 # Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
     2# Copyright (c) 1991-2022 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
    43# See LICENSE.TXT file for copying and redistribution conditions.
    54#
     
    1615# ----------------------------------------------------------------------------
    1716
    18 # Use this file to override variables in 'ConfigDefault.cmake' on a per-user
    19 # basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
    20 # edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
     17# INSTRUCTIONS TO USERS:
     18#
     19# 1. Copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake' and make any edits
     20#    related to install directory, the whereabouts of GSHHS, DCW.
     21# 2. If you are an advanced user who wishes to tinker with the more advanced
     22#    settings, then copy 'ConfigUserAdvancedTemplate.cmake' to 'ConfigUserAdvanced.cmake',
     23#    explore and make changes to your ConfigUserAdvanced.cmake file
     24#    to override variables in 'ConfigDefault.cmake' on a per-user basis.
     25# 3. Follow the rest of the installation instructions in BUILDING.md.
     26#
     27# 'ConfigUser.cmake' and 'ConfigUserAdvanced.cmake' are not version controlled
    2128# (currently listed in .gitignore).
    2229#
     
    2734# OFF, or YES and NO for your booleans.
    2835
     36# set (CMAKE_OSX_DEPLOYMENT_TARGET "12.3")
     37
    2938##
    3039## Section 1: Installation paths
    3140##
    32 
    33 # ============================================================================
    34 # Basic setup begins here.  All settings are optional.  In most cases, setting
    35 # CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
    36 # reasonable defaults enabled.  Note: If you need to specify directory names
    37 # with spaces (e.g., on Windows) then you must put them in quotes.
    38 # ============================================================================
    39 
    40 # Installation path (usually defaults to /usr/local) [auto]:
     41# Set install name suffix used for directories and gmt executables [undefined]:
    4142set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
    42 
    43 # Set install name suffix used for directories and gmt executables
    44 # [undefined]:
    45 #set (GMT_INSTALL_NAME_SUFFIX "suffix")
    4643
    4744# Install into traditional directory structure. Disable to install a
     
    4946#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
    5047
    51 # Install convenience links for GMT modules. Disable to install only the main
    52 # gmt program and access modules as "gmt modulename options" [TRUE]:
    53 #set (GMT_INSTALL_MODULE_LINKS FALSE)
    54 
    5548# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
    5649set (GMT_INSTALL_RELOCATABLE TRUE)
    5750
    58 # Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
    59 #set (GMT_EXCLUDE_GDAL TRUE)
     51# Exclude optional GEOS, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
     52#set (GMT_EXCLUDE_GEOS TRUE)
    6053set (GMT_EXCLUDE_PCRE TRUE)
    6154set (GMT_EXCLUDE_PCRE2 TRUE)
     
    8477#set (GMT_DATADIR "share/gmt")
    8578
    86 # Set doc installation path [share/doc or
    87 # share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
     79# Set doc installation path [share/doc or share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
    8880#set (GMT_DOCDIR "share/doc/gmt")
    8981
    90 # Set manpage installation path [share/man or
    91 # share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
     82# Set manpage installation path [share/man or share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
    9283#set (GMT_MANDIR "share/doc/gmt/man")
    9384
     
    10899#set (GMT_DATA_SERVER "data_server_url")
    109100
    110 # Set path to GSHHG Shoreline Database [auto]:
    111 set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
    112 
    113 # Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
    114 set (COPY_GSHHG TRUE)
    115 
    116 # Set path to DCW Digital Chart of the World for GMT [auto]:
    117 #set (DCW_ROOT "dcw-gmt_path")
    118 
    119 # Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
    120 #set (COPY_DCW TRUE)
    121 
    122 # Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
    123 #set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
    124 
    125 # Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
    126 #set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
    127 
    128 # FOR WINDOWS ONLY
    129 # Set path to location of Ghostscript binaries (optional install)
    130 #set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
    131 
    132 # FOR WINDOWS ONLY
    133 # Set path to location where the gmtmex is located.
    134 #set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
    135 
    136101# Set location of NetCDF (can be root directory, path to header file or path
    137102# to nc-config) [auto]:
    138 set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
     103#set (NETCDF_ROOT "netcdf_install_prefix")
    139104
    140105# Set location of GDAL (can be root directory, path to header file or path to
    141106# gdal-config) [auto]:
    142 set (GDAL_ROOT "$ENV{GDAL_ROOT}")
     107#set (GDAL_ROOT "gdal_install_prefix")
     108
     109# Set location of GEOS (can be root directory, path to header file or path to
     110# geos-config) [auto]:
     111#set (GEOS_ROOT "geos_install_prefix")
    143112
    144113# Set location of PCRE (can be root directory, path to header file or path to
     
    167136
    168137# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
    169 #set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack")
    170 #set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas")
     138#set (LAPACK_LIBRARY "V:/lapack-3.5.0/build/lib/liblapack.lib")
     139#set (BLAS_LIBRARY "V:/lapack-3.5.0/build/lib/libblas.lib")
    171140
    172141##
     
    180149
    181150# Allow building of OpenMP if compiler supports it
    182 # set (GMT_ENABLE_OPENMP TRUE)
     151#set (GMT_ENABLE_OPENMP TRUE)
    183152
    184153# Configure default units (possible values are SI and US) [SI]:
     
    187156# Enable building of shared libraries [TRUE] (disable to use static libraries;
    188157# not recommended; on non-x86 architectures uncomment the next option as well):
    189 set (BUILD_SHARED_LIBS FALSE)
     158# NOTE: currently only support shared libraries
     159#set (BUILD_SHARED_LIBS FALSE)
    190160
    191161# Create position independent code on all targets [auto] (needed for static
     
    194164
    195165# Build GMT shared lib with supplemental modules [TRUE]:
    196 set (BUILD_SUPPLEMENTS FALSE)
     166#set (BUILD_SUPPLEMENTS FALSE)
    197167
    198168# Build/Install GMT Developer include files [TRUE]:
     
    216186#set (DO_EXAMPLES TRUE)
    217187#set (DO_TESTS TRUE)
    218 #set (DO_ANIMATIONS TRUE)
    219188# Number of parallel test jobs with "make check":
    220189#set (N_TEST_JOBS 4)
     190
     191# Ignore the "GMT_KNOWN_FAILURE" comment in tests to let tests fail normally
     192# Can only be "ON" or "OFF" in uppercase!
     193#set (GMT_ENABLE_KNOWN2FAIL OFF)
    221194
    222195# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
     
    225198#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
    226199
    227 # List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
    228 # that link against the full gmt libs (not just the API; for building codes
    229 # that only need the GMT API, see the gmt-custom project).
    230 #set (EXTRA_BUILD_DIRS apidemo)
    231200# Uncomment the following line to enable running low-level C tests of the API
    232201#set (DO_API_TESTS ON)
     202
     203# Uncomment the following line to enable running tests of the GMT supplements
     204#set (DO_SUPPLEMENT_TESTS ON)
     205
     206# Uncomment the following line if you need to run the full tests suite using
     207# the gmtserver "test" distribution instead of the default server.
     208# You may wish to rename existing cache and server dirs so you can restore afterwards
     209# set (GMT_DATA_SERVER "test")
     210
     211# List extra sub-dirs of 'src' with a CMakeLists.txt to build custom modules
     212# that link against the full gmt libs. (For building codes that only need the GMT API,
     213# see the https://github.com/GenericMappingTools/custom-supplements project).
     214# These supplemental modules can be built into separate libraries.
     215#set (SUPPL_EXTRA_DIRS newsuppl1 newsuppl2 ...)
    233216
    234217# Directory in which to install the release sources per default
     
    245228#
    246229
    247 # Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
    248 # [Release]:
     230# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel [Release]:
    249231#set (CMAKE_BUILD_TYPE Debug)
    250232
    251233# Extra debugging for developers:
    252234#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
    253 ##      So Xcode can find the supplemental plug-ins during debug sessions
    254 #       add_definitions(-DXCODER)
    255 #   add_definitions(-DDEBUG_MODERN)                     # To set PPID == 0 during Xcode test
     235#   #   So Xcode can find the supplemental plug-ins during debug sessions
     236#       add_definitions(-DXCODER)                       # Handle a debug plugin directory
     237#       add_definitions(-DDEBUG_MODERN)                 # To set PPID == 0 during Xcode test
    256238#       message("Add Xcode definition for GMT")
    257239#endif()
     240# Uncomment these two statements if you are a developer debugging GMT:
    258241#add_definitions(-DDEBUG)
    259242#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
    260 #set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
     243#add_definitions(-DUSE_COMMON_LONG_OPTIONS)     # Turn on testing of upcoming long-option syntax for common GMT options
     244#add_definitions(-DUSE_MODULE_LONG_OPTIONS)     # Turn on testing of upcoming long-option syntax for module options
     245#add_definitions(-DEXPORT_GMTLIB)                               # Turn on to access normally un-exported or static gmtlib functions from external tools
     246#add_definitions(-DNO_THEMES)                   # Turn off implementation of GMT_THEME for debugging
     247# Uncomment this statement if you are a developer debugging PSL and want exact line coordinates:
     248#add_definitions(-DPSL_EXACT_LINE)
     249
     250#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement ${CMAKE_C_FLAGS}") # recommended even for release build
    261251#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
    262252#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
    263253#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
    264 if (HAVE_OPENMP)
    265         set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
    266 else (HAVE_OPENMP)
    267         set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
    268 endif (HAVE_OPENMP)
     254#if (HAVE_OPENMP)
     255#       set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
     256#else (HAVE_OPENMP)
     257#       set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
     258#endif (HAVE_OPENMP)
    269259
    270260#
     
    301291# set (GMT_DLL_RENAME gmt_w${BITAGE})
    302292# set (PSL_DLL_RENAME psl_w${BITAGE})
     293# set (SUPP_DLL_RENAME supplements_w${BITAGE})
    303294#endif(WIN32)
    304295
  • TabularUnified issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh

    r28160 r28161  
    55## Constants
    66#
    7 VER="6.0.0"
     7VER="6.5.0"
    88
    9 # Find libgfortran and libgcc so we do not have to hardcode them
     9# Find certain libraries so we do not have to hardcode them
    1010#
    1111# TODO:
     
    1818LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
    1919LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
     20echo "Finding libssl..."
     21LIBSSL=$(find /usr /opt -name libssl* 2>/dev/null | egrep -n libssl.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
    2022
    2123GDAL_EXTRA_LIBS="-lc++" # `$GDAL_ROOT/bin/gdal-config --dep-libs` does not report need to link to libc++ (see also customized configuration file ./configs/6/static/cmake/modules/FindGDAL.cmake)
     
    4446rm -rf gmt-${VER}
    4547
    46 # Copy custom configuration files
    47 cp ./configs/6/static/mac/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
    48 cp ./configs/6/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
    49 cp ./configs/6/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
    50 cp ./configs/6/static/cmake/modules/FindNETCDF.cmake ./src/cmake/modules
     48# Copy custom configuration files to source
     49cp ./src/cmake/ConfigUserAdvancedTemplate.cmake ./src/cmake/ConfigUser.cmake
     50
     51# Patch source
     52patch ./src/cmake/ConfigUser.cmake < ./configs/${VER%.*}/static/mac/cmake/ConfigUserAdvancedTemplate.cmake.patch
     53patch ./src/cmake/modules/FindGDAL.cmake < ./configs/${VER%.*}/static/cmake/modules/FindGDAL.cmake.patch
     54patch ./src/cmake/modules/FindGSHHG.cmake < ./configs/${VER%.*}/static/cmake/modules/FindGSHHG.cmake.patch
     55patch ./src/cmake/modules/FindNETCDF.cmake < ./configs/${VER%.*}/cmake/modules/FindNETCDF.cmake.patch
    5156
    5257# Configure
     
    6570        -DBLAS_LIBRARIES="${BLAS_ROOT}/lib/libfblas.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
    6671        -DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \
    67         -DCURL_LIBRARY="${CURL_ROOT}/lib/libcurl.a" \
     72        -DCURL_LIBRARY="${CURL_ROOT}/lib/libcurl.a;${LIBSSL}" \
    6873        -DGDAL_EXTRA_LIBS="${GDAL_EXTRA_LIBS}" \
    6974        -DLAPACK_LIBRARIES="${LAPACK_ROOT}/lib/libflapack.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
  • TabularUnified issm/trunk-jpl/externalpackages/petsc/install-3.20-mac-static.sh

    r28159 r28161  
    2424rm -rf petsc-${VER}
    2525
    26 # Apply patches
    27 patch src/config/BuildSystem/config/setCompilers.py < configs/3.20/mac/intel/src/config/BuildSystem/config/setCompilers.py.patch
    28 
    2926# Configure
    3027#
    3128# NOTE:
    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).
     29# - Cannot use --with-fpic option when compiling static libs,
     30#
     31#               Cannot determine compiler PIC flags if shared libraries is turned off
     32#               Either run using --with-shared-libraries or --with-pic=0 and supply the
     33#               compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
    3434#
    3535cd ${PETSC_DIR}
     
    3838        --PETSC_DIR="${PETSC_DIR}" \
    3939        --LDFLAGS="${LDFLAGS}" \
     40        --with-shared-libraries=0 \
     41        --CFLAGS="-fPIC" \
     42        --CXXFLAGS="-fPIC" \
     43        --FFLAGS="-fPIC" \
    4044        --with-debugging=0 \
    4145        --with-valgrind=0 \
    4246        --with-x=0 \
    4347        --with-ssl=0 \
    44         --with-pic=1 \
    4548        --download-fblaslapack=1 \
    4649        --download-mpich="https://www.mpich.org/static/downloads/4.2.0/mpich-4.2.0.tar.gz" \
     
    5558make install
    5659
     60# Need to make symlinks from libmpich* to libmpi*
     61ln -s ${PREFIX}/lib/libmpi.a ${PREFIX}/lib/libmpich.a
     62ln -s ${PREFIX}/lib/libmpicxx.a ${PREFIX}/lib/libmpichcxx.a
     63ln -s ${PREFIX}/lib/libmpifort.a ${PREFIX}/lib/libmpichf90.a
     64
    5765# Need to make sure classic linker is used (should be able to remove this once MPICH fixes it)
    5866if [[ ${LDFLAGS} =~ "-Wl,-ld_classic" ]]; then
  • TabularUnified issm/trunk-jpl/externalpackages/petsc/install-3.20-mac.sh

    r28141 r28161  
    2323mv petsc-${VER}/* ${PETSC_DIR}
    2424rm -rf petsc-${VER}
    25 
    26 # Apply patches
    27 patch src/config/BuildSystem/config/setCompilers.py < configs/3.20/mac/intel/src/config/BuildSystem/config/setCompilers.py.patch
    2825
    2926# Configure
  • TabularUnified issm/trunk-jpl/jenkins/mac-intel-binaries-matlab

    r28140 r28161  
    11MATLAB_PATH="/Applications/MATLAB_R2023b.app"
     2LIBGFORTRAN_PATH="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current"
     3LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/x86_64-apple-darwin21/13"
    24
    35#--------------------#
     
    2022        --disable-dependency-tracking \
    2123        --with-matlab-dir=${MATLAB_PATH} \
    22         --with-fortran-lib="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libgfortran.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libquadmath.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/gcc/x86_64-apple-darwin21/13/libgcc.a" \
     24        --with-fortran-lib="${LIBGFORTRAN_PATH}/libgfortran.a ${LIBGFORTRAN_PATH}/libquadmath.a ${LIBGCC_PATH}/libgcc.a" \
    2325        --with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
    2426        --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
     
    5860        gdal            install-3-static.sh
    5961        gshhg           install.sh
    60         gmt                     install-6-mac-intel-static.sh
     62        gmt                     install-6-mac-static.sh
    6163        gmsh            install-4-mac-static.sh
    6264        triangle        install-mac-static.sh
  • TabularUnified issm/trunk-jpl/jenkins/mac-intel-binaries-python-3

    r28140 r28161  
     1MATLAB_PATH="/Applications/MATLAB_R2023b.app"
     2LIBGFORTRAN_PATH="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current"
     3LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/x86_64-apple-darwin21/13"
     4
    15#--------------------#
    26# ISSM Configuration #
     
    2024        --with-python-dir=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9 \
    2125        --with-python-numpy-dir=/Library/Python/3.9/site-packages/numpy/core/include/numpy \
    22         --with-fortran-lib="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libgfortran.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libquadmath.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/gcc/x86_64-apple-darwin21/13/libgcc.a" \
     26        --with-fortran-lib="${LIBGFORTRAN_PATH}/libgfortran.a ${LIBGFORTRAN_PATH}/libquadmath.a ${LIBGCC_PATH}/libgcc.a" \
    2327        --with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
    2428        --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
     
    5862        gdal            install-3-python-static.sh
    5963        gshhg           install.sh
    60         gmt                     install-6-mac-intel-static.sh
     64        gmt                     install-6-mac-static.sh
    6165        gmsh            install-4-mac-static.sh
    6266        triangle        install-mac-static.sh
  • TabularUnified issm/trunk-jpl/jenkins/mac-silicon-binaries-matlab

    r28140 r28161  
    11MATLAB_PATH="/Applications/MATLAB_R2023b.app"
    2 LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/13"
    3 LIBGCC_PATH="${LIBGFORTRAN_PATH}/aarch64-apple-darwin22/13"
     2LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current"
     3LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/aarch64-apple-darwin23/13"
    44
    55#--------------------#
     
    6363        gdal            install-3-static.sh
    6464        gshhg           install.sh
    65         gmt                     install-6-mac-silicon-static.sh
     65        gmt                     install-6-mac-static.sh
    6666        gmsh            install-4-mac-static.sh
    6767        triangle        install-mac-static.sh
  • TabularUnified issm/trunk-jpl/jenkins/mac-silicon-binaries-python-3

    r28140 r28161  
    1 LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/13"
    2 LIBGCC_PATH="${LIBGFORTRAN_PATH}/aarch64-apple-darwin22/13"
     1MATLAB_PATH="/Applications/MATLAB_R2023b.app"
     2LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current"
     3LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/aarch64-apple-darwin23/13"
    34
    45#--------------------#
     
    6263        gdal            install-3-python-static.sh
    6364        gshhg           install.sh
    64         gmt                     install-6-mac-silicon-static.sh
     65        gmt                     install-6-mac-static.sh
    6566        gmsh            install-4-mac-static.sh
    6667        triangle        install-mac-static.sh
  • TabularUnified issm/trunk-jpl/m4/issm_options.m4

    r28151 r28161  
    198198                        dnl When standard Dakota installation has been updated to new
    199199                        dnl version, remove the following
    200                         export CFLAGS="-Wno-deprecated-register -Wno-return-type"
    201                         export CXXFLAGS="-Wno-deprecated-register -Wno-return-type"
     200                        if test -z "${CFLAGS}"; then
     201                                export CFLAGS="-Wno-deprecated-register -Wno-return-type"
     202                        else
     203                                export CFLAGS="${CFLAGS} -Wno-deprecated-register -Wno-return-type"
     204                        fi
     205                        if test -z "${CXXFLAGS+x}"; then
     206                                export CXXFLAGS="-Wno-deprecated-register -Wno-return-type"
     207                        else
     208                                export CXXFLAGS="${CXXFLAGS} -Wno-deprecated-register -Wno-return-type"
     209                        fi
    202210                        dnl NOTE: Commenting out the following, for now, as ISSM seems to
    203211                        dnl       compile and run fine, but certain errors (e.g. file not
     
    541549        dnl Boost libraries and header files
    542550        if test "x${HAVE_BOOST}" == "xyes"; then
     551                if test -z "${CXXFLAGS+x}"; then
     552                        export CXXFLAGS="-Wno-deprecated"
     553                else
     554                        export CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
     555                fi
    543556                BOOSTINCL="-I${BOOST_ROOT}/include"
    544557                #BOOSTLIB="-L$BOOST_ROOT/lib -lboost_python"
  • TabularUnified issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-matlab.sh

    r28120 r28161  
    1717# See also:
    1818# - packagers/linux/complete-issm-linux-binaries-matlab.sh
     19#
     20# TODO:
     21# - Make sure that all TPL licenses are copied to package
    1922################################################################################
    2023
     
    7174cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m
    7275
     76echo "Moving libgfortran to lib/"
     77cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
     78
    7379echo "Moving MPICH binaries to bin/"
    7480if [ -f ${ISSM_DIR}/externalpackages/petsc/install/bin/mpiexec ]; then
     
    109115fi
    110116
    111 echo "Moving libgfortran to lib/"
    112 cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
    113 
    114117echo "Moving GSHHG assets to share/"
    115 if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
     118if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
    116119        mkdir ${ISSM_DIR}/share 2> /dev/null
    117         cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
     120        cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
    118121else
    119122        echo "GSHHG not found"
  • TabularUnified issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-python-3.sh

    r28120 r28161  
    1717# See also:
    1818# - packagers/linux/complete-issm-linux-binaries-python-3.sh
     19#
     20# TODO:
     21# - Make sure that all TPL licenses are copied to package
    1922################################################################################
    2023
     
    6467cat generic_static.py | sed -e "s/generic_static/generic/g" > generic.py
    6568
     69echo "Moving libgfortran to lib/"
     70cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
     71
    6672echo "Moving MPICH binaries to bin/"
    6773if [ -f ${ISSM_DIR}/externalpackages/petsc/install/bin/mpiexec ]; then
     
    102108fi
    103109
    104 echo "Moving libgfortran to lib/"
    105 cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
    106 
    107110echo "Moving GSHHG assets to share/"
    108 if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
     111if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
    109112        mkdir ${ISSM_DIR}/share 2> /dev/null
    110         cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
     113        cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
    111114else
    112115        echo "GSHHG not found"
  • TabularUnified issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-matlab.sh

    r28131 r28161  
    1919# See also:
    2020# - packagers/mac/<ARCH>/complete-issm-mac-<ARCH>-binaries-matlab.sh
     21#
     22# TODO:
     23# - Make sure that all TPL licenses are copied to package
    2124################################################################################
    2225
     
    116119
    117120echo "Moving GSHHG assets to share/"
    118 if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
     121if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
    119122        mkdir ${ISSM_DIR}/share 2> /dev/null
    120         cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
     123        cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
    121124else
    122125        echo "GSHHG not found"
  • TabularUnified issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python-3.sh

    r28131 r28161  
    1818# See also:
    1919# - packagers/mac/<ARCH>/complete-issm-mac-<ARCH>-binaries-python-3.sh
     20#
     21# TODO:
     22# - Make sure that all TPL licenses are copied to package
    2023################################################################################
    2124
     
    108111
    109112echo "Moving GSHHG assets to share/"
    110 if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
     113if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
    111114        mkdir ${ISSM_DIR}/share 2> /dev/null
    112         cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
     115        cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
    113116else
    114117        echo "GSHHG not found"
Note: See TracChangeset for help on using the changeset viewer.