diff --git a/dev/gluten-build-info.sh b/dev/gluten-build-info.sh index 5a33eb06a935..9c995ec840fb 100755 --- a/dev/gluten-build-info.sh +++ b/dev/gluten-build-info.sh @@ -39,7 +39,7 @@ echo_build_properties() { echo url=$(git config --get remote.origin.url) if [ "$BACKEND_TYPE" = "velox" ]; then - echo gcc_version=$(gcc --version | head -n 1) + echo gcc_version=$(readelf -p .comment $GLUTEN_ROOT/cpp/build/releases/libgluten.so | grep GCC | head -n 1 | sed -n 's/.*\(GCC.*\)/\1/p') echo velox_branch=$(git -C $BACKEND_HOME rev-parse --abbrev-ref HEAD) echo velox_revision=$(git -C $BACKEND_HOME rev-parse HEAD) echo velox_revision_time=$(git -C $BACKEND_HOME show -s --format=%ci HEAD)