
I had this issue all the kernel headers and build essentials were installed but still getting gcc errors, I fixed this on Bullseye by downloading the latest version of …
Concluzion: Debian 11 Bullseye VMWare Workstation 16 fix kernel header build essentials gcc error – [vid_tags]