Closed leandron closed 3 years ago
cc @icemelon9 @tqchen
Currently, we are using "10.0". I don't see there's any problem
Currently, we are using "10.0". I don't see there's any problem
I tried rebuilding the Docker image and it seems it crashes because the -lt
operator only accepts integer values (match with docs at https://pubs.opengroup.org/onlinepubs/9699919799.2016edition/utilities/test.html).
Am I missing something? Please correct me of I’m wrong.
This is a reproducer of the issue I see:
$ cat test.sh
set -e
LLVM_VERSION_MAJOR=10.0
if [ ${LLVM_VERSION_MAJOR} -lt 9 ]; then
echo "${LLVM_VERSION_MAJOR} is lt 9"
else
echo "${LLVM_VERSION_MAJOR} is NOT lt 9"
fi
When running it:
$ bash test.sh
test.sh: line 5: [: 10.0: integer expression expected
10.0 is NOT lt 9
$
Edit: I was wrong about 10.1
, but still I think we can fix th bash warning.
I agree this is a minor problem - we can live with it for now.
Using MAJOR.MINOR string in Dockerfile.package-cpu crashes due to a numeric comparison made by
scripts/centos_install_llvm.sh
.This simply set LLVM version from
10.0
to10
.~Note: I couldn't find a LLVM released under
10.1.x
(in https://releases.llvm.org/), so I assume the current returned value10.0.1
is correct.~Edit: This is moving from 10.0 to 10.