It seems that the problem may be that your compiler is defining the qextname flag by default, this is a non-standard install of the compiler. You can try putting the flag into a Depends.$(machine) file - look for examples of how to do this in the Machines directory. In this way you can limit use of this flag to only the shr_sys_mod.F90 file, which is what I think you want to do.