Skip to content

Commit a180b61

Browse files
committed
Fix
1 parent 3a476b9 commit a180b61

7 files changed

Lines changed: 11 additions & 20 deletions

File tree

toolchain/scripts/stage1/install_mpich.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ EOF
176176
if [ "${with_mpich}" != "__SYSTEM__" ]; then
177177
cat << EOF >> "${BUILDDIR}/setup_mpich"
178178
prepend_path PATH "${pkg_install_dir}/bin"
179-
prepend_path LD_LIBRARY_PATH="${pkg_install_dir}/lib":\${LD_LIBRARY_PATH}
180-
prepend_path LD_RUN_PATH="${pkg_install_dir}/lib":\${LD_RUN_PATH}
181-
prepend_path LIBRARY_PATH="${pkg_install_dir}/lib":\${LIBRARY_PATH}
182-
prepend_path CPATH="${pkg_install_dir}/include":\${CPATH}
179+
prepend_path LD_LIBRARY_PATH "${pkg_install_dir}/lib":\${LD_LIBRARY_PATH}
180+
prepend_path LD_RUN_PATH "${pkg_install_dir}/lib":\${LD_RUN_PATH}
181+
prepend_path LIBRARY_PATH "${pkg_install_dir}/lib":\${LIBRARY_PATH}
182+
prepend_path CPATH "${pkg_install_dir}/include":\${CPATH}
183183
EOF
184184
fi
185185
cat "${BUILDDIR}/setup_mpich" >> ${SETUPFILE}

toolchain/scripts/stage1/install_openmpi.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ EOF
205205
if [ "${with_openmpi}" != "__SYSTEM__" ]; then
206206
cat << EOF >> "${BUILDDIR}/setup_openmpi"
207207
prepend_path PATH "${pkg_install_dir}/bin"
208-
prepend_path LD_LIBRARY_PATH="${pkg_install_dir}/lib":\${LD_LIBRARY_PATH}
209-
prepend_path LD_RUN_PATH="${pkg_install_dir}/lib":\${LD_RUN_PATH}
210-
prepend_path LIBRARY_PATH="${pkg_install_dir}/lib":\${LIBRARY_PATH}
211-
prepend_path CPATH="${pkg_install_dir}/include":\${CPATH}
208+
prepend_path LD_LIBRARY_PATH "${pkg_install_dir}/lib":\${LD_LIBRARY_PATH}
209+
prepend_path LD_RUN_PATH "${pkg_install_dir}/lib":\${LD_RUN_PATH}
210+
prepend_path LIBRARY_PATH "${pkg_install_dir}/lib":\${LIBRARY_PATH}
211+
prepend_path CPATH "${pkg_install_dir}/include":\${CPATH}
212212
EOF
213213
fi
214214
cat "${BUILDDIR}/setup_openmpi" >> ${SETUPFILE}

toolchain/scripts/stage2/install_openblas.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ if [ "$with_openblas" != "__DONTUSE__" ]; then
175175
prepend_path LD_LIBRARY_PATH "${pkg_install_dir}/lib"
176176
prepend_path LD_RUN_PATH "${pkg_install_dir}/lib"
177177
prepend_path LIBRARY_PATH "${pkg_install_dir}/lib"
178-
prepend_path PKG_CONFIG_PATH "${pkg_install_dir}/lib/pkgconfig"
179-
prepend_path CMAKE_PREFIX_PATH "${pkg_install_dir}"
180178
prepend_path CPATH "${pkg_install_dir}/include"
181179
EOF
182180
cat "${BUILDDIR}/setup_openblas" >> $SETUPFILE
@@ -189,8 +187,6 @@ export OPENBLAS_LIBS="${OPENBLAS_LIBS}"
189187
export MATH_CFLAGS="\${MATH_CFLAGS} ${OPENBLAS_CFLAGS}"
190188
export MATH_LDFLAGS="\${MATH_LDFLAGS} ${OPENBLAS_LDFLAGS}"
191189
export MATH_LIBS="\${MATH_LIBS} ${OPENBLAS_LIBS}"
192-
export PKG_CONFIG_PATH="${pkg_install_dir}/lib/pkgconfig"
193-
export CMAKE_PREFIX_PATH="${pkg_install_dir}"
194190
prepend_path PKG_CONFIG_PATH "${pkg_install_dir}/lib/pkgconfig"
195191
prepend_path CMAKE_PREFIX_PATH "${pkg_install_dir}"
196192
EOF

toolchain/scripts/stage4/install_libcomm.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ source "${INSTALLDIR}"/toolchain.env
4141

4242
[ -f "${BUILDDIR}/setup_libcomm" ] && rm "${BUILDDIR}/setup_libcomm"
4343

44-
libcomm_CFLAGS=""
4544
! [ -d "${BUILDDIR}" ] && mkdir -p "${BUILDDIR}"
4645
cd "${BUILDDIR}"
4746

@@ -120,7 +119,7 @@ EOF
120119
cat "${BUILDDIR}/setup_libcomm" >> $SETUPFILE
121120
fi
122121
cat << EOF >> "${BUILDDIR}/setup_libcomm"
123-
export LIBCOMM_CFLAGS="${libcomm_CFLAGS}"
122+
export LIBCOMM_CFLAGS="${LIBCOMM_CFLAGS}"
124123
export LIBCOMM_ROOT="${pkg_install_dir}"
125124
EOF
126125
fi

toolchain/scripts/stage4/install_libri.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ source "${INSTALLDIR}"/toolchain.env
3939

4040
[ -f "${BUILDDIR}/setup_libri" ] && rm "${BUILDDIR}/setup_libri"
4141

42-
libri_CFLAGS=""
4342
! [ -d "${BUILDDIR}" ] && mkdir -p "${BUILDDIR}"
4443
cd "${BUILDDIR}"
4544

@@ -119,7 +118,7 @@ EOF
119118
cat "${BUILDDIR}/setup_libri" >> $SETUPFILE
120119
fi
121120
cat << EOF >> "${BUILDDIR}/setup_libri"
122-
export LIBRI_CFLAGS="${libri_CFLAGS}"
121+
export LIBRI_CFLAGS="${LIBRI_CFLAGS}"
123122
export LIBRI_ROOT="${pkg_install_dir}"
124123
EOF
125124
fi

toolchain/scripts/stage4/install_libtorch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ prepend_path LD_RUN_PATH "${pkg_install_dir}/lib"
111111
prepend_path LIBRARY_PATH "${pkg_install_dir}/lib"
112112
prepend_path PKG_CONFIG_PATH "${pkg_install_dir}/lib/pkgconfig"
113113
prepend_path CMAKE_PREFIX_PATH "${pkg_install_dir}"
114+
prepend_path CPATH "${pkg_install_dir}/include"
114115
EOF
115116
fi
116117
if [ "$ENABLE_CUDA" = "__TRUE__" ]; then

toolchain/scripts/stage4/install_rapidjson.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ if [ "$with_rapidjson" != "__DONTUSE__" ]; then
121121
cat << EOF > "${BUILDDIR}/setup_rapidjson"
122122
prepend_path CPATH "${pkg_install_dir}/include"
123123
prepend_path CMAKE_PREFIX_PATH "${pkg_install_dir}"
124-
EOF
125-
else
126-
cat << EOF > "${BUILDDIR}/setup_rapidjson"
127-
export RAPIDJSON_ROOT="${pkg_install_dir}"
128124
EOF
129125
fi
130126
cat "${BUILDDIR}/setup_rapidjson" >> $SETUPFILE

0 commit comments

Comments
 (0)