diff --git a/package/g2clib/1.6.0/clang/install.sh b/package/g2clib/1.6.0/clang/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b38a186688434d39600978fd202da371e2551ae --- /dev/null +++ b/package/g2clib/1.6.0/clang/install.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -x +set -e +cd ${JARVIS_DOWNLOAD} +rm -rf g2clib-image +git clone https://gitee.com/linruoxuan/g2clib-image.git +cd ${JARVIS_TMP} +tar -xvf ${JARVIS_DOWNLOAD}/g2clib-image/g2clib-1.6.0-patch.tar.gz +cd g2clib-1.6.0-patch + +sed -i '22c INC=-I/glade/p/work/haley/dev/external/gnu/4.7.2/include -I${JASPER_PATH}/include -I${LIBPNG_PATH}/include/libpng16' makefile +sed -i '33c CC=clang' makefile +sed -i '8c #include "png.h"' dec_png.c +make all +mkdir $1/lib +mkdir $1/include +mv libgrib2c.a $1/lib/ +cp grib2.h $1/include/ + diff --git a/package/hdf4/4.2.15/install.sh b/package/hdf4/4.2.15/install.sh index dcadcb067c7ad9c8cbede214394f45d22178cf72..ab1465e05e7081f3b43329af7faece90a31fcfb8 100755 --- a/package/hdf4/4.2.15/install.sh +++ b/package/hdf4/4.2.15/install.sh @@ -6,6 +6,10 @@ cd ${JARVIS_TMP} rm -rf hdf-4.2.15 tar -xvf ${JARVIS_DOWNLOAD}/hdf-4.2.15.tar.gz cd hdf-4.2.15 -FFLAGS+='-fallow-argument-mismatch' ./configure --prefix=$1 --with-zlib=/usr/local --disable-fortran --with-jpeg=${LIBJPEG_PATH} --disable-netcdf +sed -i '974c #if defined(__linux__) && defined __x86_64__ && !( defined SUN) || defined(__aarch64__)' hdf/src/hdfi.h +sed -i '23660a LIBS="$LIBS -ltirpc"' configure +sed -i '23662c CPPFLAGS="$SYSCPPFLAGS -I/usr/include/tirpc"' configure +export CC=mpicc CXX=mpicxx FC=mpifort +./configure --prefix=$1 --enable-production --with-zlib=/usr/lib64 --enable-fortran --enable-hdf4-xdr --disable-shared --build=arm-linux --with-jpeg=${LIBJPEG_PATH} --disable-netcdf CFLAGS="-fPIC -Wno-error=int-conversion" CXXFLAGS="-fPIC -Wno-error=int-conversion" FFLAGS="-fPIC -fallow-argument-mismatch -Wno-error=int-conversion" make -j make install diff --git a/package/hmpi/1.3.0/install.sh b/package/hmpi/1.3.0/install.sh index 0a1f8475bfd83d542e31b54f3ee9483f880002ca..77b5467d06d16192edf0b5f3893fc8346be8fc74 100755 --- a/package/hmpi/1.3.0/install.sh +++ b/package/hmpi/1.3.0/install.sh @@ -3,15 +3,15 @@ set -x set -e hmpi_version='1.3.0' . ${DOWNLOAD_TOOL} -u https://github.com/openucx/ucx/archive/refs/tags/v1.10.1.tar.gz -f hucx-${hmpi_version}-huawei.tar.gz -. ${DOWNLOAD_TOOL} -u https://gitee.com/kunpengcompute/xucg/archive/refs/tags/v1.3.0-huawei.tar.gz -f xucg-${hmpi_version}-huawei.tar.gz -. ${DOWNLOAD_TOOL} -u https://gitee.com/kunpengcompute/hmpi/archive/refs/tags/v1.3.0-huawei.tar.gz -f hmpi-${hmpi_version}-huawei.tar.gz +. ${DOWNLOAD_TOOL} -u https://github.com/chen-shaoheng/HMPI-1.3.0/archive/refs/tags/xucg-v1.3.0.tar.gz -f xucg-${hmpi_version}-huawei.tar.gz +. ${DOWNLOAD_TOOL} -u https://github.com/chen-shaoheng/HMPI-1.3.0/archive/refs/tags/hmpi-v1.3.0.tar.gz -f hmpi-${hmpi_version}-huawei.tar.gz cd ${JARVIS_TMP} . $CHECK_ROOT && yum install -y perl-Data-Dumper autoconf automake libtool binutils flex rm ucx-1.10.1 -rf tar xf ${JARVIS_DOWNLOAD}/hucx-1.3.0-huawei.tar.gz cd ucx-1.10.1 ./autogen.sh -./contrib/configure-opt --prefix=$1/hucx --disable-numa --enable-mt CC=clang CXX=clang++ FC=flang CFLAGS="-Wno-unused-but-set-variable" CXXFLAGS="-Wno-unused-but-set-variable" +./contrib/configure-opt --prefix=$1/hucx --disable-numa --enable-mt CC=clang CXX=clang++ FC=flang CFLAGS="-Wno-unused-but-set-variable -Wno-error=int-conversion" CXXFLAGS="-Wno-unused-but-set-variable -Wno-error=int-conversion" make -j make -j install cd - @@ -19,6 +19,8 @@ export LD_LIBRARY_PATH=$1/hucx/lib:$LD_LIBRARY_PATH export C_INCLUDE_PATH=$1/hucx/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=$1/hucx/include:$CPLUS_INCLUDE_PATH +export CFLAGS="-Wno-unused-but-set-variable -Wno-error=int-conversion" CXXFLAGS="-Wno-unused-but-set-variable -Wno-error=int-conversion" FFLAGS="-Wno-error=int-conversion" + rm xucg-v1.3.0-huawei/ -rf tar xf ${JARVIS_DOWNLOAD}/xucg-1.3.0-huawei.tar.gz cd xucg-v1.3.0-huawei/