Bugfix: Remove Make ARGS from GSL installation #2438
-
Describe the ProblemWhen using Compile_MET: MAKE_ARGS causes gsl to fail. Expected BehaviorMAKE_ARGS shouldn't be required for GSL EnvironmentDescribe your runtime environment: To ReproduceUsing the compile code set MAKE_ARGS= - j ## of cores
FIX: run_cmd "./configure --prefix=${LIB_DIR} > gsl.configure.log 2>&1" to run_cmd "./configure --prefix=${LIB_DIR} > gsl.configure.log 2>&1" I have tested it without using make_args and MET installs properly. Seems to be the issue. I also vaguely remember a PR for this issue once before. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hi @HathewayWill. The link in the description does not work for me. Is the following what you intended to link to? If so, I see that GSL is not using MAKE_ARGS:
If you intended to link to the version in develop: we do use MAKE_ARGS:
This code runs successfully in our GitHub Actions automated testing using a value of "-j 5", an upgraded version of GSL, and the GNU compilers. Have you tried adding a value for the "-j" option? Please try using "5" and let us know how it goes. |
Beta Was this translation helpful? Give feedback.
-
# Compile GSL
if [ $COMPILE_GSL -eq 1 ]; then
if [ ${COMPILER_FAMILY} = "pgi" ]; then
vrs="1.11";
else
vrs="2.1";
fi
echo
echo "Compiling GSL_${vrs} at `date`"
mkdir -p ${LIB_DIR}/gsl
rm -rf ${LIB_DIR}/gsl/gsl*
tar -xf ${TAR_DIR}/gsl-${vrs}.tar.gz -C ${LIB_DIR}/gsl
cd ${LIB_DIR}/gsl/gsl*
echo "cd `pwd`"
run_cmd "./configure --prefix=${LIB_DIR} > gsl.configure.log 2>&1"
run_cmd "make ${MAKE_ARGS} > gsl.make.log 2>&1"
run_cmd "make ${MAKE_ARGS} install > gsl.make_install.log 2>&1"
fi
https://raw.githubusercontent.com/dtcenter/MET/main_v11.1/internal/scripts/installation/compile_MET_all.sh
…On Tue, Nov 21, 2023 at 7:49 PM Julie Prestopnik ***@***.***> wrote:
Hi @HathewayWill <https://github.com/HathewayWill>. The link in the
description does not work for me. Is the following what you intended to
link to?
https://raw.githubusercontent.com/dtcenter/MET/main_v11.0/internal/scripts/installation/compile_MET_all.sh
If so, I see that GSL is not using MAKE_ARGS:
echo
echo "Compiling GSL_${vrs} at `date`"
mkdir -p ${LIB_DIR}/gsl
cd ${LIB_DIR}/gsl
rm -rf gsl*
tar -xf ${TAR_DIR}/gsl-${vrs}.tar.gz
cd gsl*
echo "cd `pwd`"
echo "./configure --prefix=${LIB_DIR} > configure.log 2>&1"
./configure --prefix=${LIB_DIR} > configure.log 2>&1
ret=$?
if [ $ret != 0 ]; then
echo "configure returned with non-zero ($ret) status"
exit 1
fi
echo "make > make.log 2>&1"
make > make.log 2>&1
ret=$?
if [ $ret != 0 ]; then
echo "make returned with non-zero ($ret) status"
exit 1
fi
echo "make install > make_install.log 2>&1"
make install > make_install.log 2>&1
ret=$?
if [ $? != 0 ]; then
echo "make install returned with non-zero ($ret) status"
exit 1
fi
fi
If you intended to link to the version in develop:
https://raw.githubusercontent.com/dtcenter/MET/develop/internal/scripts/installation/compile_MET_all.sh
we do use MAKE_ARGS:
# Compile GSL
if [ $COMPILE_GSL -eq 1 ]; then
if [ ${COMPILER_FAMILY} = "pgi" ]; then
vrs="1.11";
else
vrs="2.7.1";
fi
echo
echo "Compiling GSL_${vrs} at `date`"
mkdir -p ${LIB_DIR}/gsl
rm -rf ${LIB_DIR}/gsl/gsl*
tar -xf ${TAR_DIR}/gsl-${vrs}.tar.gz -C ${LIB_DIR}/gsl
cd ${LIB_DIR}/gsl/gsl*
echo "cd `pwd`"
run_cmd "./configure --prefix=${LIB_DIR} > gsl.configure.log 2>&1"
run_cmd "make ${MAKE_ARGS} > gsl.make.log 2>&1"
run_cmd "make ${MAKE_ARGS} install > gsl.make_install.log 2>&1"
fi
This code runs successfully in our GitHub Actions automated testing using
a value of "-j 5", an upgraded version of GSL, and the GNU compilers
Have you tried adding a value for the "-j" option? Please try using "5"
and let us know how it goes.
—
Reply to this email directly, view it on GitHub
<#2438 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4FUT5Q5P4ZHJGVQHF7L3E3YFVK4BAVCNFSM6AAAAAA7VPE7SCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMMZWHE4TM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi Will. We discussed this situation and decided to proceed with leaving MAKE_ARGS in place and recommending a value of "-j 5" as now noted in our install_met_env.generic config file. Please let us know if you have any further questions or concerns, otherwise please select "Mark as answer" and I will go ahead and lock this Discussion. Thanks!