Changeset 24699


Ignore:
Timestamp:
04/07/20 17:27:32 (5 years ago)
Author:
jdquinn
Message:

CHG: Ensuring dynamic Boost libs do not get linked to

Location:
issm/trunk-jpl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/boost/install-1.72-linux-static.sh

    r24593 r24699  
    22#set -eu # Do not `run set -eu` because it causes some targets to fail
    33
    4 
    5 # NOTE:
    6 # - Stop after bootstrap step and run `b2 --debug-configuration` to figure
    7 #       out which paths Boost is using to include Python. Make sure that each of
    8 #       the listed paths is covered by Python. If not, you must create a symbolic
    9 #       link from $ISSM_DIR/externalpackages/python to the location of the file
    10 #       that Boost is expecting. There is no way to get the Boost to compile with
    11 #       Python otherwise.
    12 #
    134
    145## Constants
     
    189## Envrionment
    1910#
    20 #export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost
    21 #export CXXFLAGS='-std=c++11'
     11export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost"
    2212
    2313# Download source
     
    3828cd src
    3929./bootstrap.sh \
    40         --prefix="${ISSM_DIR}/externalpackages/boost/install" \
    41         --with-python=python2.7 \
    42         --with-python-root="${ISSM_DIR}/externalpackages/python/install"
     30        --prefix="${BOOST_ROOT}/install" \
     31        --with-python=python2.7
    4332
    4433# Modify project config to enable MPI
     
    4736# Compile and install
    4837./b2 link=static install
     38
     39# Remove any dynamic libraries that may have been compiled
     40#
     41# TODO: Reconfigure so that dynamic libraries are not compiled at all
     42#
     43rm -f $(find ${BOOST_ROOT}/install/lib -name *.so*)
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh

    r24649 r24699  
    5555        -DCMAKE_CXX_FLAGS="-fPIC" \
    5656        -DCMAKE_Fortran_FLAGS="-fPIC" \
     57        -DBoost_NO_BOOST_CMAKE=TRUE \
    5758        -DHAVE_ACRO=OFF \
    5859        -DHAVE_JEGA=OFF \
  • issm/trunk-jpl/jenkins/ross-debian_linux-binaries-with_dakota

    r24649 r24699  
    4747        cmake           install.sh
    4848        petsc           install-3.12-linux-static.sh
    49         boost           install-1.55-linux-static.sh
     49        boost           install-1.72-linux-static.sh
    5050        dakota          install-6.2-linux-static.sh
    5151        triangle        install-linux-static.sh
  • issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-with_dakota.sh

    r24698 r24699  
    122122fi
    123123
    124 # Create tarball
    125 cd ${ISSM_DIR}
    126 rm -f ${TARBALL}
    127 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package)
    128 echo "Copying assets to package: ${PACKAGE}"
    129 cp -rf bin examples lib scripts test ${PACKAGE}/
    130 echo "Cleaning up unneeded/unwanted files"
    131 python -m compileall ${PACKAGE}/bin # Precompile all Python scripts to bytecode
    132 rm -f ${PACKAGE}/bin/*.py # Remove all Python scripts
    133 rm -f ${PACKAGE}/bin/generic_static.* # Remove static versions of generic cluster classes
    134 rm -f ${PACKAGE}/lib/*.a # Remove static libraries from package
    135 rm -f ${PACKAGE}/lib/*.la # Remove libtool libraries from package
    136 echo "Creating tarball: ${TARBALL_NAME}"
    137 tar -czf ${TARBALL} ${PACKAGE}
    138 ls -lah ${ISSM_DIR}/${TARBALL}
     124# # Create tarball
     125# cd ${ISSM_DIR}
     126# rm -f ${TARBALL}
     127# svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package)
     128# echo "Copying assets to package: ${PACKAGE}"
     129# cp -rf bin examples lib scripts test ${PACKAGE}/
     130# echo "Cleaning up unneeded/unwanted files"
     131# python -m compileall ${PACKAGE}/bin # Precompile all Python scripts to bytecode
     132# rm -f ${PACKAGE}/bin/*.py # Remove all Python scripts
     133# rm -f ${PACKAGE}/bin/generic_static.* # Remove static versions of generic cluster classes
     134# rm -f ${PACKAGE}/lib/*.a # Remove static libraries from package
     135# rm -f ${PACKAGE}/lib/*.la # Remove libtool libraries from package
     136# echo "Creating tarball: ${TARBALL_NAME}"
     137# tar -czf ${TARBALL} ${PACKAGE}
     138# ls -lah ${ISSM_DIR}/${TARBALL}
    139139
    140 echo "Shipping binaries to website"
     140# echo "Shipping binaries to website"
    141141
    142 # We're using public key authentication method to upload the tarball The
    143 # following lines check to see if the SSH Agent is running. If not, then it is
    144 # started and relevant information is forwarded to a script.
    145 pgrep "ssh-agent" > /dev/null
    146 if [ $? -ne 0 ]; then
    147         echo "SSH Agent is not running. Starting it..."
    148         ssh-agent > ~/.ssh/agent.sh
    149 else
    150         echo "SSH Agent is running..."
    151 fi
     142# # We're using public key authentication method to upload the tarball The
     143# # following lines check to see if the SSH Agent is running. If not, then it is
     144# # started and relevant information is forwarded to a script.
     145# pgrep "ssh-agent" > /dev/null
     146# if [ $? -ne 0 ]; then
     147#       echo "SSH Agent is not running. Starting it..."
     148#       ssh-agent > ~/.ssh/agent.sh
     149# else
     150#       echo "SSH Agent is running..."
     151# fi
    152152
    153 source ~/.ssh/agent.sh
    154 ssh-add ~/.ssh/debian_linux-vm_to_ross
     153# source ~/.ssh/agent.sh
     154# ssh-add ~/.ssh/debian_linux-vm_to_ross
    155155
    156 scp ${TARBALL} ross.ics.uci.edu:/var/www/html/${TARBALL}
     156# scp ${TARBALL} ross.ics.uci.edu:/var/www/html/${TARBALL}
    157157
    158 if [ $? -ne 0 ]; then
    159         echo "The upload failed."
    160         echo "Perhaps the SSH Agent was started by some other means."
    161         echo "Try killing the agent and running again."
    162 fi
     158# if [ $? -ne 0 ]; then
     159#       echo "The upload failed."
     160#       echo "Perhaps the SSH Agent was started by some other means."
     161#       echo "Try killing the agent and running again."
     162# fi
Note: See TracChangeset for help on using the changeset viewer.