[Lazarus] make clean all fails... (was: Re: lazbuild build IDE profiles)
waldo kitty
wkitty42 at windstream.net
Mon Apr 2 22:25:10 CEST 2012
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
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 :?
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?
2. is "clean all" really needed after the svn update in this script?
@echo off
:setvars
if "%myFPCver%" == "" set myFPCver=2.4.5
if "%myFPCpath%" == "" set myFPCpath=c:\freepascal\fpc\%myFPCver%
if "%myLAZpath%" == "" set myLAZpath=c:\freepascal\laz
if "%myFPCbinutils%" == "" set myFPCbinutils=c:\freepascal\binutils
if "%myFPCpathset%" == "TRUE" goto pathok
set PATH=%myFPCbinutils%\i386-win32;%myFPCpath%\bin\i386-win32;%PATH%
set myFPCpathset=TRUE
:pathok
cd %myLAZpath%
make cleanbigide
if errorlevel 1 goto error
TortoiseProc /command:update /path:"%myLAZpath%"
cd %myLAZpath%
make clean all
if errorlevel 1 goto error
cd %myLAZpath%
make cleanbigide lazbuild
if errorlevel 1 goto error
lazbuild.exe --build-ide="-vut" --build-mode="debug ide"
if errorlevel 1 goto error
copy lazarus.exe lazarus-debug.exe
goto end
:error
echo.
echo ***************************************************************************
echo * ERROR * ERROR * ERROR * ERROR * ERROR * ERROR * ERROR * ERROR * ERROR *
echo ***************************************************************************
echo.
goto end
:end
echo %0 execution complete!
More information about the Lazarus
mailing list