[Lazarus] make clean all fails... (was: Re: lazbuild build IDE profiles)

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Apr 3 00:21:39 CEST 2012


On Mon, 02 Apr 2012 16:25:10 -0400
waldo kitty <wkitty42 at windstream.net> wrote:

> 
> i've brought this back over to the list for this part...
> 
> On 4/1/2012 03:20, Mattias Gaertner wrote:
> > BTW, after a svn update a "make clean all" should be made, so that
> > startlazarus and required tools like svn2revisioninc are updated.
> 
> i do see where those are built and actually done several times during the run of 
> my script before i started checking errorlevels and aborting the rest if 
> errorlevel was greater than zero... so i added "make clean all" after the svn 
> update and get this failure...
> 
> make -C ide ide
> make[1]: Entering directory `C:/freepascal/laz/ide'
> ../tools/svn2revisioninc.exe .. revision.inc
> Created C:\freepascal\laz\ide\revision.inc for revision: 36528
> make --assume-new=lazarus.pp lazarus.exe OPT=' -WG '
> make[2]: Entering directory `C:/freepascal/laz/ide'
> c:/freepascal/fpc/2.4.5/bin/i386-win32/ppc386.exe -gl -Sci -dlclwin32 
> -Fu../lcl/units/i386-win32 -Fu../lcl/units/i386-win32/win32 
> -Fu../components/codetools/units/i386-win32 
> -Fu../components/lazutils/lib/i386-win32 
> -Fu../components/synedit/units/i386-win32/win32 
> -Fu../components/lazcontrols/lib/i386-win32/win32 -Fu../components/custom 
> -Fu../ideintf/units/i386-win32/win32 -Fu../designer -Fu../debugger 
> -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames 
> -Fu../packager/units/i386-win32 -Fu../units/i386-win32/win32 -Fuframes -Fu. 
> -Fiinclude -Fiinclude/win32 -Fi../images -FE.. -FU../units/i386-win32/win32 -WG 
>   -di386 lazarus.pp
> Free Pascal Compiler version 2.4.5 [2011/06/01] for i386
> Copyright (c) 1993-2010 by Florian Klaempfl
> Target OS: Win32 for i386
> Compiling lazarus.pp
> Compiling lazconf.pp
> [...]
> Compiling restrictionbrowser.pas
> Compiling projectwizarddlg.pas
> Compiling resource ..\units\i386-win32\win32\lazarus.or
> Linking ..\lazarus.exe
> lazarus.pp(133,1) Error: Can't create object file: ..\lazarus.exe

Check if you have a Lazarus running.
Windows locks exe files while they are executed.


> lazarus.pp(133,1) Fatal: Can't create executable ..\lazarus.exe
> Fatal: Compilation aborted
> make[2]: *** [lazarus.exe] Error 1
> make[2]: Leaving directory `C:/freepascal/laz/ide'
> make[1]: *** [ide] Error 2
> make[1]: Leaving directory `C:/freepascal/laz/ide'
> make: *** [ide] Error 2
> 
> 
> i don't know why it cannot overwrite C:\freepascal\laz\lazarus.exe... and 
> actually, is it supposed to be compiling lazarus after a svn update when we 
> haven't yet specifically (re)built lazbuild which is the next step in the script 
> i've been working on? after that, we do the lazbuild command thing to actually 
> build lazarus... i'm kinda confused :?

"make all" builds a default IDE.

 
> stripping all the fancy out, here's my script in its rawest form and a few 
> questions...
> 
> 1. "cleanbigide" before svn update and again building lazbuild?

"make clean" is enough. cleanbigide now simply executes clean.


> 2. is "clean all" really needed after the svn update in this script?

Yes, if it should be stable.
No, if you want the optimal way, that means building only those things
you need.

 
>[...]

Mattias




More information about the Lazarus mailing list