Offending line:
https://github.com/archspec/archspec-json/blob/master/cpu/microarchitectures.json#L1110
Should this be -mtune={name} instead of generic? Or at least, -mtune={skylake}, in case aocc does not explicitly support skylake_avx512 for -mtune (in the unusual case that skylake_avx512 was supported for -march but not for -mtune)
Other microarchitectures in the skylake (and newer) cpus have both -march={name} -mtune={name} for aocc - e.g., cannonlake + aocc, cascadelake + aocc and icelake + aocc.
Related: Don't see an entry for aocc with sapphirerapids - perhaps aocc does not support sapphirerapids?