When I try compile linux kernel with flag "-O3 -march=znver2 -mtune=znver2",'make' returned that
OBJCOPY modules.builtin.modinfo
GEN modules.builtin
MODPOST Module.symvers
ERROR: modpost: "qsort" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:126: Module.symvers] Error 1
make: *** [Makefile:1942: modpost] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I can compile it with GCC/LLVM14 with the same config and patch.