I got the log, I'm not sure why this is happening, I am using debian bookworm with gcc 12, I installed gcc 11 and it did not change anything!
Log
Assuming that this is during install, you may need a patch for the 6.10 kernel. Maybe need to have a look here:
https://github.com/mkubecek/vmware-host-modules/blob/master/INSTALL