My guess, confirmed by your comment, is that your anti-virus software is blocking Delphi from writing the executable file. It is of course possible that your Delphi is infected, but more likely this is just a false positive.
If this is a false positive, and if the anti-virus software will not relent, you may need to find a different anti-virus software.