Installing HailoRT PCIe driver fails with new kernels (>6.5)

The new kernel is compiled with gcc-12.
Installing Hailo driver requires compilation and hence will require to install gcc-12 on your device.

sudo apt install g++-12 gcc-12