Sorry for not including relevant information. I am on a linux desktop, where I installed intel-oneapi tools via spack.
Here's the output of ifort --version
ifort (IFORT) 2021.2.0 20210228
Copyright (C) 1985-2021 Intel Corporation. All rights reserved.
When I use the following command
ifort -init=zero,array -qmkl -warn -fpp -Ofast -static -xHost
, I get the error. Replacing -qmkl with -mkl works, but the documentation mentions '-qmkl'.