Recent

Author Topic: Unable Compile FPC trunk (r29373)  (Read 1868 times)

Fahmy Rofiq

  • Jr. Member
  • **
  • Posts: 67
Unable Compile FPC trunk (r29373)
« on: January 03, 2015, 06:12:36 am »
Hi,
Please help, I'm unable to compile FPC trunk (r29373):

Build log:
Code: [Select]
make -C utils all
make[2]: Entering directory `d:/Development/freepascal/fpc/trunk/utils'
d:/Development/freepascal/fpc/trunk/compiler/ppc386.exe fpmake.pp  -Fud:/Development/freepascal/fpc/trunk/rtl/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/paszlib/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/fcl-process/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/hash/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/libtar/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/fpmkunit/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/fcl-json/units/i386-win32  -gl -dSAX_HTML_DEBUG -dUSE_MINGW_GDB
./fpmake.exe compile --localunitdir=.. --globalunitdir=../packages --os=win32 --cpu=i386 -o -Ur -o -Xs -o -O2 -o -n -o -Fud:/Development/freepascal/fpc/trunk/rtl/units/i386-win32 -o -Fud:/Development/freepascal/fpc/trunk/packages/paszlib/units/i386-win32 -o -Fud:/Development/freepascal/fpc/trunk/packages/fcl-process/units/i386-win32 -o -Fud:/Development/freepascal/fpc/trunk/packages/hash/units/i386-win32 -o -Fud:/Development/freepascal/fpc/trunk/packages/libtar/units/i386-win32 -o -Fud:/Development/freepascal/fpc/trunk/packages/fpmkunit/units/i386-win32 -o -Fud:/Development/freepascal/fpc/trunk/packages/fcl-json/units/i386-win32 -o -gl -o -dSAX_HTML_DEBUG -o -dUSE_MINGW_GDB -o -di386 -o -dRELEASE --compiler=d:/Development/freepascal/fpc/trunk/compiler/ppc386.exe -bu
Start compiling package utils for target i386-win32.
       Compiling BuildUnit_utils.pp
       Compiling usubst.pp
       Compiling ptopu.pp
       Compiling ptop.pp
The installer encountered the following error:
External command "d:/Development/freepascal/fpc/trunk/compiler/ppc386.exe -Twin32 -FEbin\i386-win32 -FUunits\i386-win32\ -Fud:\Development\freepascal\fpc\trunk\rtl\units\i386-win32\ -Fud:\Development\freepascal\fpc\trunk\units\i386-win32\fcl-base -Fud:\Development\freepascal\fpc\trunk\units\i386-win32\paszlib -Fud:\Development\freepascal\fpc\trunk\units\i386-win32\hash -Ur -Xs -O2 -n -Fud:/Development/freepascal/fpc/trunk/rtl/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/paszlib/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/fcl-process/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/hash/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/libtar/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/fpmkunit/units/i386-win32 -Fud:/Development/freepascal/fpc/trunk/packages/fcl-json/units/i386-win32 -gl -dSAX_HTML_DEBUG -dUSE_MINGW_GDB -di386 -dRELEASE -viq ptop.pp" failed with exit code 1. Console output:
Target OS: Win32 for i386
Compiling ptop.pp
PPU Loading D:\Development\freepascal\fpc\trunk\units\i386-win32\fcl-base\custapp.ppu
PPU Source: custapp.pp not available
Recompiling CustApp, checksum changed for System
ptop.pp(21,29) Fatal: Can't find unit CustApp used by PtoP
Fatal: Compilation aborted

Batch script:
Code: [Select]
@echo on
set BASEDRV=d:
set SRCDIR=%BASEDRV%\development\freepascal\fpc\trunk
set PPCNAME=ppc386
set FPCSTART=d:\development\freepascal\fpc\2.6.4\bin\i386-win32\%PPCNAME%
set LOGDIR=%BASEDRV%\development\freepascal
set INSTALLDIR=%BASEDRV%\development\freepascal\fpc\trunk
REM some random opts.
set OPTS=-gl -dSAX_HTML_DEBUG -dUSE_MINGW_GDB
set COMMONOPTS=UPXPROG=echo COPYTREE=echo OPT="%OPTS%" GINSTALL=ginstall.exe
rem === invariant part ===
cd /d %SRCDIR%
REM the building
make clean all %COMMONOPTS% FPC=%FPCSTART% 1> %LOGDIR%\buildlog.txt 2>&1
REM separate install step for crossversion purposes (and under Unix sudo) (on one line)
make install %COMMONOPTS% INSTALL_PREFIX=%INSTALLDIR% FPC=%SRCDIR%\compiler\%PPCNAME% 1> %LOGDIR%\installlog.txt 2>&1
make clean crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 %COMMONOPTS% INSTALL_PREFIX=%INSTALLDIR% FPC=%FPCSTART% 1> %LOGDIR%\buildcrosslog.txt 2>&1
PAUSE

Btw, cross build is success.
Full build log is attached.

Thanks.
Lazarus + FPC Trunk
Windows 10 x64