Subject: bug#46972: 28.0.50; [feature/native-comp] Emacs locks itself during native compilation because of permission denied

From: Eli Zaretskii <[email-masked]>
Date: Sun, 14 Mar 2021 15:39:01 +0200

> Date: Sun, 14 Mar 2021 12:51:06 +0200
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked]
> 
> Andrea, it looks like the inner loop in eln_load_path_final_clean_up
> isn't protected against errors?  IOW, if Fdelete_file signals an
> error, it won't be caught, is that right?

I've just had a similar situation myself, so I fixed the problem, I
hope.  Please try the latest native-comp branch and see if your
problem is solved.