[fpc-pascal] installing FPC 2.6.0 on OS/2

waldo kitty wkitty42 at windstream.net
Sun Jan 15 19:31:21 CET 2012


On 1/14/2012 16:49, Tomas Hajny wrote:
> Is there any difference between ppas.cmd created by fp.exe and fpc.exe if
> you add option -s to compilation from both?

i can't find a ppas.cmd when i use "fp -s" and hit F9 or ALT-F9 to compile... it 
still fails with an error linking... i am allowing the dsk file to load the 
files i had open...

here's the ppas.cmd from "fpc -s" though...

[---- fpc-ppas.cmd ----]
@echo off
SET THEFILE=satsort
echo Assembling %THEFILE%
"h:\fp\2.6.0\bin\os2\as.exe" -o satsort.o satsort.s
if errorlevel 1 goto asmend
Del satsort.s
SET THEFILE=satsort.exe
echo Linking %THEFILE%
"h:\fp\2.6.0\bin\os2\ld.exe"  -o satsort.out @link.res
if errorlevel 1 goto linkend
"h:\fp\2.6.0\bin\os2\emxbind.exe" -b -s -w  -k256 -h1 -o satsort.exe satsort.out 
-ai -s8
if errorlevel 1 goto linkend
del satsort.out
if errorlevel 1 goto linkend
goto end
:asmend
echo An error occured while assembling %THEFILE%
goto end
:linkend
echo An error occured while linking %THEFILE%
:end
[---- end ----]

> Any difference between link.res file created in the two cases?

yes...

the first thing i note is the fp link.res includes the .\ directory and the fpc 
one does not... indicated with a 1 below...

the second thing i note is the fp link.res messes up the directory we're working 
in for the program.o file being compiled whereas the fpc one doesn't say the 
directory but only the program.o... indicated with a 2 below...


[---- fp-link.res ----]
1 -L.\
   -LH:\FP\2.6.0\UNITS\OS2\RTL\
   -LH:\FP\2.6.0\UNITS\OS2\zlib\
   -LH:\FP\2.6.0\UNITS\OS2\x11\
   -LH:\FP\2.6.0\UNITS\OS2\unzip\
   -LH:\FP\2.6.0\UNITS\OS2\tcl\
   -LH:\FP\2.6.0\UNITS\OS2\symbolic\
   -LH:\FP\2.6.0\UNITS\OS2\rexx\
   -LH:\FP\2.6.0\UNITS\OS2\regexpr\
   -LH:\FP\2.6.0\UNITS\OS2\paszlib\
   -LH:\FP\2.6.0\UNITS\OS2\pasjpeg\
   -LH:\FP\2.6.0\UNITS\OS2\os2units\
   -LH:\FP\2.6.0\UNITS\OS2\libpng\
   -LH:\FP\2.6.0\UNITS\OS2\libgd\
   -LH:\FP\2.6.0\UNITS\OS2\lexyacc\
   -LH:\FP\2.6.0\UNITS\OS2\imlib\
   -LH:\FP\2.6.0\UNITS\OS2\hermes\
   -LH:\FP\2.6.0\UNITS\OS2\hash\
   -LH:\FP\2.6.0\UNITS\OS2\gtk1\
   -LH:\FP\2.6.0\UNITS\OS2\fv\
   -LH:\FP\2.6.0\UNITS\OS2\fppkg\
   -LH:\FP\2.6.0\UNITS\OS2\fpmkunit\
   -LH:\FP\2.6.0\UNITS\OS2\fpgtk\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-xml\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-res\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-registry\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-process\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-passrc\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-net\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-json\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-js\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-image\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-fpcunit\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-db\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-base\
   -LH:\FP\2.6.0\UNITS\OS2\chm\
   -LH:\FP\2.6.0\UNITS\OS2\bzip2\
   -LH:\FP\2.6.0\UNITS\OS2\
   -LH:\FP\2.6.0\BIN\OS2\
   H:\FP\2.6.0\UNITS\OS2\RTL\prt0.o
2 h:\fpc\projects\satellite\h:\fpc\projects\satellite\satsort.o
   H:\FP\2.6.0\UNITS\OS2\RTL\system.o
   H:\FP\2.6.0\UNITS\OS2\RTL\heaptrc.o
   H:\FP\2.6.0\UNITS\OS2\RTL\sysutils.o
   H:\FP\2.6.0\UNITS\OS2\RTL\strutils.o
   H:\FP\2.6.0\UNITS\OS2\RTL\objects.o
   H:\FP\2.6.0\UNITS\OS2\RTL\math.o
   H:\FP\2.6.0\UNITS\OS2\RTL\crt.o
   H:\FP\2.6.0\UNITS\OS2\RTL\dos.o
   H:\FP\2.6.0\UNITS\OS2\RTL\objpas.o
   H:\FP\2.6.0\UNITS\OS2\RTL\sysconst.o
   H:\FP\2.6.0\UNITS\OS2\RTL\doscalls.o
   H:\FP\2.6.0\UNITS\OS2\RTL\strings.o
   H:\FP\2.6.0\UNITS\OS2\RTL\system.a
   H:\FP\2.6.0\UNITS\OS2\RTL\crt.a
   H:\FP\2.6.0\UNITS\OS2\RTL\doscalls.a
[---- fp-link.res ends ----]

[---- fpc-link.res ----]
   -LH:\FP\2.6.0\UNITS\OS2\RTL\
   -LH:\FP\2.6.0\UNITS\OS2\zlib\
   -LH:\FP\2.6.0\UNITS\OS2\x11\
   -LH:\FP\2.6.0\UNITS\OS2\unzip\
   -LH:\FP\2.6.0\UNITS\OS2\tcl\
   -LH:\FP\2.6.0\UNITS\OS2\symbolic\
   -LH:\FP\2.6.0\UNITS\OS2\rexx\
   -LH:\FP\2.6.0\UNITS\OS2\regexpr\
   -LH:\FP\2.6.0\UNITS\OS2\paszlib\
   -LH:\FP\2.6.0\UNITS\OS2\pasjpeg\
   -LH:\FP\2.6.0\UNITS\OS2\os2units\
   -LH:\FP\2.6.0\UNITS\OS2\libpng\
   -LH:\FP\2.6.0\UNITS\OS2\libgd\
   -LH:\FP\2.6.0\UNITS\OS2\lexyacc\
   -LH:\FP\2.6.0\UNITS\OS2\imlib\
   -LH:\FP\2.6.0\UNITS\OS2\hermes\
   -LH:\FP\2.6.0\UNITS\OS2\hash\
   -LH:\FP\2.6.0\UNITS\OS2\gtk1\
   -LH:\FP\2.6.0\UNITS\OS2\fv\
   -LH:\FP\2.6.0\UNITS\OS2\fppkg\
   -LH:\FP\2.6.0\UNITS\OS2\fpmkunit\
   -LH:\FP\2.6.0\UNITS\OS2\fpgtk\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-xml\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-res\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-registry\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-process\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-passrc\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-net\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-json\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-js\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-image\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-fpcunit\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-db\
   -LH:\FP\2.6.0\UNITS\OS2\fcl-base\
   -LH:\FP\2.6.0\UNITS\OS2\chm\
   -LH:\FP\2.6.0\UNITS\OS2\bzip2\
   -LH:\FP\2.6.0\UNITS\OS2\
   -LH:\FP\2.6.0\BIN\OS2\
   H:\FP\2.6.0\UNITS\OS2\RTL\prt0.o
2 satsort.o
   H:\FP\2.6.0\UNITS\OS2\RTL\system.o
   H:\FP\2.6.0\UNITS\OS2\RTL\heaptrc.o
   H:\FP\2.6.0\UNITS\OS2\RTL\sysutils.o
   H:\FP\2.6.0\UNITS\OS2\RTL\strutils.o
   H:\FP\2.6.0\UNITS\OS2\RTL\objects.o
   H:\FP\2.6.0\UNITS\OS2\RTL\math.o
   H:\FP\2.6.0\UNITS\OS2\RTL\crt.o
   H:\FP\2.6.0\UNITS\OS2\RTL\dos.o
   H:\FP\2.6.0\UNITS\OS2\RTL\objpas.o
   H:\FP\2.6.0\UNITS\OS2\RTL\sysconst.o
   H:\FP\2.6.0\UNITS\OS2\RTL\doscalls.o
   H:\FP\2.6.0\UNITS\OS2\RTL\strings.o
   H:\FP\2.6.0\UNITS\OS2\RTL\system.a
   H:\FP\2.6.0\UNITS\OS2\RTL\crt.a
   H:\FP\2.6.0\UNITS\OS2\RTL\doscalls.a
[---- fpc-link.res ends ----]


> Do you see any error messages from the linker when running it from ppas.cmd
> created by fp.exe for compilation with -s?

see above... i can't get "fp -s" to make or leave a ppas.cmd behind :/



More information about the fpc-pascal mailing list