MLNX OFED driver install failure for ubuntu-24.04 with kernel 6.8.0-1012-aws

I tried to set up GPUDirect Storage in AWS g4dn EC2 instance so I have to install MLNX_OFED. When I tried to install MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64 in AWS g4dn EC2 instance with ubuntu-24.04 and kernel 6.8.0-1012-aws, I had the below error.

The command I run is: sudo ./mlnxofedinstall --with-nvmf --with-nfsrdma --enable-gds --add-kernel-support --dkms

Error log:
/usr/bin/dpkg-buildpackage -us -uc -Pmodules
dpkg-buildpackage: info: source package mlnx-nvme
dpkg-buildpackage: info: source version 24.07.OFED.24.07.0.5.7.1-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Alaa Hleihel alaa@mellanox.com
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
debian/rules clean
dh clean
dh: warning: Compatibility levels before 10 are deprecated (level 8 in use)
dh_clean
dh_clean: warning: Compatibility levels before 10 are deprecated (level 8 in use)
dpkg-source -b .
dpkg-source: info: using source format ‘3.0 (quilt)’
dpkg-source: info: building mlnx-nvme using existing ./mlnx-nvme_24.07.OFED.24.07.0.5.7.1.orig.tar.gz
dpkg-source: info: building mlnx-nvme in mlnx-nvme_24.07.OFED.24.07.0.5.7.1-1.debian.tar.xz
dpkg-source: info: building mlnx-nvme in mlnx-nvme_24.07.OFED.24.07.0.5.7.1-1.dsc
debian/rules build
dh build
dh: warning: Compatibility levels before 10 are deprecated (level 8 in use)
dh_update_autotools_config
debian/rules override_dh_auto_build
make[1]: Entering directory ‘/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-1012-aws/mlnx_iso.1487/mlnx-nvme/mlnx-nvme-24.07.OFED.24.07.0.5.7.1’
Building for 6.8.0-1012-aws
make clean || true
make[2]: Entering directory ‘/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-1012-aws/mlnx_iso.1487/mlnx-nvme/mlnx-nvme-24.07.OFED.24.07.0.5.7.1’
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
rm -f *.o
rm -f *.ko .ko.gz
rm -f .mod.c
rm -f Module
.symvers modules
.order
make[2]: Leaving directory ‘/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-1012-aws/mlnx_iso.1487/mlnx-nvme/mlnx-nvme-24.07.OFED.24.07.0.5.7.1’
make -j8 KVER=6.8.0-1012-aws K_BUILD=/lib/modules/6.8.0-1012-aws/build CONFIG_NVME_HOST_WITHOUT_FC=
make[2]: Entering directory ‘/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-1012-aws/mlnx_iso.1487/mlnx-nvme/mlnx-nvme-24.07.OFED.24.07.0.5.7.1’
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
make -C /lib/modules/6.8.0-1012-aws/build O=/lib/modules/6.8.0-1012-aws/build M=/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-1012-aws/mlnx_iso.1487/mlnx-nvme/mlnx-nvme-24.07.OFED.24.07.0.5.7.1 CONFIG_GPU_DIRECT_STORAGE=y KBUILD_EXTRA_SYMBOLS=/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-1012-aws/mlnx_iso.1487/ofed_src/usr/src/ofa_kernel/x86_64/6.8.0-1012-aws/Module.symvers
CONFIG_NVME_HOST_WITHOUT_FC= CONFIG_NVME_TARGET=m CONFIG_NVME_TARGET_LOOP=m CONFIG_NVME_TARGET_RDMA=m CONFIG_NVME_TARGET_FC=m CONFIG_NVME_TARGET_FCLOOP=m CONFIG_NVME_TARGET_DUMMY= CONFIG_NVME_CORE=m CONFIG_BLK_DEV_NVME=m CONFIG_NVME_FABRICS=m CONFIG_NVME_FC=m CONFIG_NVME_RDMA=m CONFIG_NVME_MULTIPATH=y CONFIG_NVME_HOST_DUMMY=
CONFIG_DTRACE=
CONFIG_CTF= \