I was getting this error during the build operation of a new project:
Free Pascal Compiler version 3.0.0 [2016/02/14] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Win32 for i386
(3104) Compiling project1.lpr
(3104) Compiling unit1.pas
(9022) Compiling resource U:\Micheus\lib\i386-win32\project1.or
(9015) Linking project1.exe
U:\Micheus\project1.lpr(20,1) Error: (9003) Can't create object file: project1.exe (error code: 5)
U:\Micheus\project1.lpr(20,1) Fatal: Can't create executable project1.exe
Fatal: (1018) Compilation aborted
By looking at the forum I found this comment in a thread which was related to the same error:
Before we go to far here, I just found something that is intriguing. I copied the project files to a different folder, renamed them, saved them from the Lazarus environment to the new folder and now the project compiles, creates the exe and runs. Is my project name the issue??
Then I thought the error would be related to the place where I'm storing the project.
I was initially using a mapped hard driver (U:\ - pointing to a folder in another PC), but after I read that post I moved my project to my local hard driver (C:\) and it compiled without error.
As a side note, the U:\ is a shared folder in local and external hard driver, so I also used the real path (z:\users\Micheus\project1.lpr) and it compiled fine too.
So, Not be able to build in a "remote" folder is an correct/acceptable behavior?