[fpc-devel] make clean problem with 2.6 fixes bracnh

Marcos Douglas md at delfire.net
Tue Aug 30 14:12:49 CEST 2011


On Tue, Aug 30, 2011 at 7:57 AM, Martin <lazarus at mfriebe.de> wrote:
> Sorry, my mailer choose to send this while I was still typing....
>
> On 30/08/2011 11:55, Martin wrote:
>>
>> very weird issue;
>>
>> I have a batch fiel, that does (sucesfull):
>>
>> make.exe clean  distclean
>> make.exe all   LINKSMART=1  CREATESMART=1  OPTIMIZE=1  OPT="-gl -O3 -Or
>> -CpPENTIUMM -OpPENTIUMM"
>> make.exe install  INSTALL_PREFIX=c:\FPC\fix_2_6_0  COPYTREE=echo
>> UPXPROG=echo
>>
>> Then the makefile should execute another
>> make clean
>>
>> and that always fails. It appears to dislike the fpmake.exe in fcl-web,
>> but that was created by the above (I did delete it before I started the
>> overall process, so it was definetly reated by the above)
>>
>> The error I get:
>> { .\fpmake.exe distclean --localunitdir=../.. --globalunitdir=..
>> --os=win32 --cpu=i386 -o -Ur -o -Xs -o -O2 -o -n -o
>> -FuC:/FPC/SVN/fix_2_6/rtl -o -FuC:/FPC/SVN/fix_2_6/packages/hash -o
>> -FuC:/FPC/SVN/fix_2_6/packages/paszlib -o
>> -FuC:/FPC/SVN/fix_2_6/packages/fcl-process -o
>> -FuC:/FPC/SVN/fix_2_6/packages/fpmkunit -o -FE. -o -FUunits/i386-win32 -o
>> -di386 -o -dRELEASE --compiler=c:/FPC/SVN/ppc386_2_4_4.exe; if [ $? != "0"
>> ]; then { echo Something wrong with fpmake exectable. Remove the executable
>> and call make recursively to recover.; C:/FPC/SVN/trunk_build/
>> rm.exe -f .\fpmake.exe; make fpc_cleanall; }; fi;  }
>> '{' is not recognized as an internal or external command,
>>
>>
>> the part of the fcl-web makefile that is probably responsibel
>
> ifeq ($(FPMAKE_BIN_CLEAN),)
> distclean:    $(addsuffix _distclean,$(TARGET_DIRS)) fpc_distclean
> else
> distclean:
>    { $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=..
> $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); if [ $$? !=
> "0" ]; then { echo Something wrong with fpmake exectable. Remove the
> executable and call make recursively to recover.; $(DEL)
> $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi;  }
>    -$(DEL) $(LOCALFPMAKE)
> endif
>
> It has the leading "{"
>
>
> Note that I am only running ake clean, not make distclean?

You're right. The same problem here.
I created a hack, in my script, to compile the FPC 2.5.1 (branches_2_6):

if %myVERSION% equ 2.5.1 (
  cd %myFPC%\packages\fastcgi\
  del /s fpmake.exe *.ppu *.o

  cd %myFPC%\packages\fcl-web\
  del /s fpmake.exe *.ppu *.o
)

Marcos Douglas



More information about the fpc-devel mailing list