Changeset 22179


Ignore:
Timestamp:
10/20/17 15:41:53 (7 years ago)
Author:
dlcheng
Message:

CHG: Added explicit -fPIC compiler flags where applicable to allow Linux_Ubuntu_Binaries to build with mpich 3.2 and PETSc 3.7.

Location:
issm/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/mpich/install-3.2-linux64-static.sh

    r22020 r22179  
    1616rm -rf mpich-3.2
    1717
    18 #compilation flags
    19 export CXXFLAGS='-fPIC'
    20 export CFLAGS='-fPIC'
    21 export FFLAGS='-fPIC'
    22 
    2318#Configure mpich
    2419cd src
    2520./configure \
    2621        --prefix="$ISSM_DIR/externalpackages/mpich/install" \
    27         --disable-shared \
    28         --with-pic=yes
     22        --with-cxxoptflags="-fPIC"
    2923
    3024#Compile mpich (this new version supports parallel make)
  • issm/trunk/externalpackages/petsc/install-3.7-linux64-static.sh

    r21729 r22179  
    2020        --with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
    2121        --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
    22         --with-debugging=0 \
     22        --with-debugging=1 \
    2323        --with-valgrind=0 \
    2424        --with-x=0 \
     
    3030        --download-fblaslapack=1 \
    3131        --download-scalapack=1 \
    32         --with-pic=1
     32        --COPTFLAGS="-O3 -fPIC" \
     33        --CXXOPTFLAGS="-O3 -fPIC" \
     34        --FOPTFLAGS="-O3 -fPIC"
    3335
    3436#Compile and intall
  • issm/trunk/jenkins/linux64_ross_static

    r22171 r22179  
    55
    66#MATLAB path
    7 MATLAB_PATH="/usr/local/MATLAB/R2015a"
     7MATLAB_PATH="/usr/local/MATLAB/R2017b"
    88
    99#ISSM CONFIGURATION
     
    1212        --enable-standalone-executables \
    1313        --enable-standalone-libraries \
    14         --enable-standalone-modules \
    1514        --with-matlab-dir=$MATLAB_PATH \
    1615        --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
    1716        --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
    18         --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpich" \
     17        --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpi -lfmpich" \
    1918        --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install  \
    2019        --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \
     
    2423        --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
    2524        --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.9 -lgfortran" \
    26         --with-numthreads=4'
     25        --with-numthreads=4 \
     26        --with-cxxoptflags="-fPIC"'
    2727
    2828#PYTHON and MATLAB testing
     
    3737EXTERNALPACKAGES="autotools    install.sh
    3838                                                cmake        install.sh
    39                                                 mpich        install-3.0-linux64-static.sh
     39                                                mpich        install-3.2-linux64-static.sh
    4040                                                m1qn3        install.sh
    41                                                 petsc        install-3.6-linux64-static.sh
     41                                                petsc        install-3.7-linux64-static.sh
    4242                                                triangle     install-linux64.sh
    4343                                                shell2junit  install.sh"
Note: See TracChangeset for help on using the changeset viewer.