Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-08

make clean problem with 2.6 fixes bracnh

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin
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

Reply by email

Martin
to Martin

Sorry, my mailer choose to send this while I was still typing....

Martin wrote 33 lines
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?

Reply by email

Marcos Douglas
to Martin: Sorry, my mailer choose to send this while I was still typing.... ifeq…
Martin wrote 53 lines
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

Reply by email

Marcos Douglas
to Martin: very weird issue; I have a batch fiel, that does (sucesfull): make.exe clean distclean…
Martin wrote 21 lines
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

The problem continues.
There is a bugtrack for this?
I found this http://bugs.freepascal.org/view.php?id=19140

Marcos Douglas

Reply by email

Vincent Snijders
to Marcos Douglas

2011/9/5 Marcos Douglas :

Show quoted text 26 lines
On Tue, Aug 30, 2011 at 7:55 AM, 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 The problem continues. There is a bugtrack for this? I found this http://bugs.freepascal.org/view.php?id=19140

What is your PATH environment variable? Make sure that it contains at least one semicolon (;), otherwise the Makefile considers your target a unix like target.

Vincent

Reply by email

Marcos Douglas
to Vincent Snijders

2011/9/5 Marcos Douglas :

Show quoted text 7 lines
> The problem continues. > There is a bugtrack for this? > I found this http://bugs.freepascal.org/view.php?id=19140 What is your PATH environment variable? Make sure that it contains at least one semicolon (;), otherwise the Makefile considers your target a unix like target.

My PATH is change only inside the script like this: set PATH=%myBINUTILS_PATH%;%myFPC%\bin\%myTARGET%

As you can see, there is one semicolon... but not at the end. Should have?

Marcos Douglas

Reply by email

Vincent Snijders
to Martin: very weird issue; I have a batch fiel, that does (sucesfull): make.exe clean distclean…

2011/8/30, Martin :

Show quoted text 15 lines
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

Revision 18097 should be merged to fixes_2_6, because revision 18090 is merged; revision 18097 fixes revision r18090.

Vincent

Reply by email