diff --git a/.github/scripts/utils_build.bash b/.github/scripts/utils_build.bash index dc6afb3f6b..e42a1296eb 100644 --- a/.github/scripts/utils_build.bash +++ b/.github/scripts/utils_build.bash @@ -89,10 +89,10 @@ __conda_install_gcc () { # shellcheck disable=SC2155,SC2086 local cxx_path=$(conda run ${env_prefix} printenv CXX) - print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/cc" - print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/gcc" - print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/c++" - print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/g++" + print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/cc" + print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/gcc" + print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/c++" + print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/g++" } __conda_install_clang () { @@ -114,10 +114,10 @@ __conda_install_clang () { # shellcheck disable=SC2155,SC2086 local cxx_path=$(conda run ${env_prefix} which clang++) - print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/cc" - print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/gcc" - print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/c++" - print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/g++" + print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/cc" + print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/gcc" + print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/c++" + print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/g++" echo "[INSTALL] Updating LD_LIBRARY_PATH ..." # shellcheck disable=SC2155,SC2086 @@ -201,6 +201,7 @@ install_cxx_compiler () { # NOTE: We unconditionally install libstdc++ here because CUDA only supports # libstdc++, even if host compiler is set to Clang: # https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#host-compiler-support-policy + # https://forums.developer.nvidia.com/t/cuda-issues-with-clang-compiler/177589/8 __conda_install_gcc # Install the C/C++ compiler