cancel
Showing results for 
Search instead for 
Did you mean: 

PC Drivers & Software

Pinghigh
Journeyman III

Can't compile linux kernel with AOCC 4

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.

2 Replies
mtodorov69
Journeyman III

Same here, with the Linux kernel 6.4-rc1.

The kernel compiled and build was successful with GCC.

 

0 Likes
dbernhard
Journeyman III

You can disable this module with `scripts/config -d CONFIG_DRM_AMDGPU` before building.

0 Likes