The more serious bug is fixed with this commit: 8ec8decd9f of 2022-11-20 Avoid native compiler setting user-init-file to warnings.el (bug#59358) I'll open a new bug report with the first issue (the native compiler being unable to compile .emacs).