[fpc-devel] Error building compiler with -O4

Martin Frb lazarus at mfriebe.de
Sat Apr 19 20:57:43 CEST 2014

Using 2.6.4 as starting compiler.
Attempting to build 2.7.1 rev 27596

How to I prevent the option from being passed to the starting compiler?

SET FPC=c:\FPC\SVN\ppc386_2_6_4.exe
make clean
make.exe all    LINKSMART=1  CREATESMART=1  DEBUG=1 OPTIMIZE=0 OPT="-gl 

C:/FPC/SVN/trunk_build/rm.exe -f 
C:/FPC/SVN/fpc_2.7.1/rtl/units/i386-win32/typinfo.rst C:/FPC/SVN/fpc_2.7.1/r
C:/FPC/SVN/trunk_build/rm.exe -f fpcmade.i386-win32 Package.fpc ppas.bat 
script.res link.res
C:/FPC/SVN/trunk_build/rm.exe -f *.s *_ppas.bat
make.exe[7]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/rtl/win32'
make.exe[6]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/rtl'
make.exe -C C:/FPC/SVN/fpc_2.7.1/rtl 'OPT=-gl -O4  ' all
make.exe[6]: Entering directory `C:/FPC/SVN/fpc_2.7.1/rtl'
make.exe -C win32 all
make.exe[7]: Entering directory `C:/FPC/SVN/fpc_2.7.1/rtl/win32'
C:/FPC/SVN/trunk_build/gmkdir.exe -p 
c:/FPC/SVN/ppc386_2_6_4.exe -XX -CX -gl -Ur -Xs -O2 -n -O2 -Fi../inc 
-Fi../i386 -Fi../win -FE. -FUC:/FPC/SVN/fpc_2.7.1/rtl/units/i386-win32 
-gl -O4 -di386 -dDEB
UG -dRELEASE -Us -Sg system.pp -Fi../win
Error: Illegal parameter: -O4
make.exe[7]: *** [system.ppu] Error 1
make.exe[7]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/rtl/win32'
make.exe[6]: *** [win32_all] Error 2
make.exe[6]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/rtl'
make.exe[5]: *** [rtl] Error 2
make.exe[5]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/compiler'
make.exe[4]: *** [next] Error 2
make.exe[4]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/compiler'
make.exe[3]: *** [ppc1.exe] Error 2
make.exe[3]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/compiler'
make.exe[2]: *** [cycle] Error 2
make.exe[2]: Leaving directory `C:/FPC/SVN/fpc_2.7.1/compiler'
make.exe[1]: *** [compiler_cycle] Error 2
make.exe[1]: Leaving directory `C:/FPC/SVN/fpc_2.7.1'
make.exe: *** [build-stamp.i386-win32] Error 2

More information about the fpc-devel mailing list