Maybe an option for specifying the explicit location of gcc version? The intel compiler has a “-gcc-toolchain” option for that.
https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-0/gcc-toolchain.html Victor.