And on the original post I did reply with
Well, who owns the file, what are the access rights?
If that is the only issue, and if there is no hidden other issue => just delete the entire folder
rm -rf /usr/share/lazarus/2.2.2/components/buildintf/units
So, if of course he tries to compile as non-root, while the files belong to root => then that is another issue, and it wont help to delete those files.
Still deleting them should not hurt. He will just get another error, until the access right issue is gone.
Either he logs in as root, and compiles in place.
Or he has a setup, where he compiles into the shadow folders in his home dir, and if he does, the deleted files should be created there.
If you rebuild from the IDE (and the existing installation has a copy of lazbuild as it should) then the IDE will take care.
If you run make yourself, I don't know how to tell it to use the shadow folders.
But to conclude this:
@QEnnay:
if this is a new build from scratch, and you somehow installed the sources only => build it as root.
And then once you have a working copy, rebuild from the IDE.
Besides that, I recommend: If you build from sources, download the sources (as zip or tar.gz, or with git clone) and save the sources in your home folder. Then build there.
If you didn't download source only, then I don't know why you call make yourself (or did I misunderstand that?).
Anyway, maybe the issue is in the shadow files in your home.
It be highly unusual... Normally the IDE is really good at maintaining those.
Check under
There is one folder that has lots of ppu / I am not sure of the name (I don't have it, due to reasons above) => move it out of the way, and retry.